debian/0000755000000000000000000000000012222577211007167 5ustar debian/watch0000644000000000000000000000031411653257474010233 0ustar version=3 opts="downloadurlmangle=s#(.*)#http://old.zope.org/Members/ivo/QuotaFolder/$1#" \ http://old.zope.org/Members/ivo/QuotaFolder/swpackage_releases \ [\d\.]+/QuotaFolder-([\d\.]+)\.tar\.gz debian/links0000644000000000000000000000051211653263022010227 0ustar usr/share/zope/Products/QuotaFolder/DESIGN usr/share/doc/zope-quotafolder/DESIGN usr/share/zope/Products/QuotaFolder/README.txt usr/share/doc/zope-quotafolder/README usr/share/zope/Products/QuotaFolder/KNOWNBUGS usr/share/doc/zope-quotafolder/KNOWNBUGS usr/share/zope/Products/QuotaFolder/TODO usr/share/doc/zope-quotafolder/TODO debian/dzproduct0000644000000000000000000000010111653265677011141 0ustar Name: QuotaFolder Package: zope-quotafolder ZopeVersion: >= 2.12 debian/rules0000755000000000000000000000131011653527435010254 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode export DH_VERBOSE=1 build-indep: build-stamp build-arch: build-stamp build: build-stamp build-stamp: touch build-stamp clean: dh_testdir dh_testroot -rm -f build-stamp dh_clean install: build dh_testdir dh_testroot dh_clean -k dh_installdirs dh_link # -X .pc is only useful with zope-debhelper <= 0.3.15 dh_installzope -X LICENSE -X .pc . binary-arch: build install binary-indep: build install dh_testdir dh_testroot dh_installdocs dh_installchangelogs dh_compress dh_fixperms dh_installdeb dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-arch binary-indep binary install debian/copyright0000644000000000000000000000412311653261164011126 0ustar Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=202 Upstream-Name: QuotaFolder Upstream-Contact: Ivo van der Wijk, Amaze Internet Services Source: http://old.zope.org/Members/ivo/QuotaFolder/ Files: debian/* Copyright: Copyright 2005 Joel Aelwyn Copyright 2011 Arnaud Fontaine License: GPL-2 On Debian systems the full text of the GNU General Public License v2 can be found in the `/usr/share/common-licenses/GPL-2' file. Files: * Copyright: (c) 2002 Ivo van der Wijk, Amaze Internet Services (ivo@amaze.nl) License: BSD-3-clause All rights reserved. . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . 3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/source/0000755000000000000000000000000011653645427010503 5ustar debian/source/format0000644000000000000000000000001411653250763011704 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000011653645427010632 5ustar debian/patches/python2.6.patch0000644000000000000000000000471511653530011013407 0ustar Index: zope-quotafolder-0.1.1/QuotaFolder.py =================================================================== --- zope-quotafolder-0.1.1.orig/QuotaFolder.py 2011-10-31 23:25:20.685209978 +0900 +++ zope-quotafolder-0.1.1/QuotaFolder.py 2011-10-31 23:25:33.537210467 +0900 @@ -36,7 +36,7 @@ from Globals import DTMLFile from OFS.Folder import Folder from Acquisition import aq_base, aq_parent, Acquired, Implicit -from AccessControl import getSecurityManager, SpecialUsers +from AccessControl import getSecurityManager, SpecialUsers, Unauthorized from zLOG import LOG, WARNING @@ -71,7 +71,9 @@ manage_addQuotaFolderForm=DTMLFile('manage_addQuotaFolderForm', globals()) -QuotaExceededException='Quota Exceeded' +class QuotaExceededException(Exception): + def __str__(self): + return "Quota Exceeded: %s" % self.args[0] class QuotaFolder(Folder, Persistent, Implicit): """ A QuotaFolder """ @@ -135,19 +137,19 @@ self._quota_filecount + filechange > self._quota_objects \ > 0: raise QuotaExceededException, \ - "Too many files, this operation would require a quotum " + \ + "Too many files, this operation would require a quotum " \ "of %d files, your current quotum is %d files" % \ (self._quota_filecount + filechange, self._quota_objects) if not emergency and \ sizechange > 0 and \ self._quota_size + sizechange > self._quota_bytes > 0: raise QuotaExceededException, \ - "Too much space, this operation would require a " + \ + "Too much space, this operation would require a " \ "quotum of %d bytes, your current quotum is %d bytes" % \ (self._quota_size + sizechange, self._quota_bytes) if not emergency and objsize > self._quota_maxsize > 0: raise QuotaExceededException, \ - "The object is too large. It requires %d bytes, " + \ + "The object is too large. It requires %d bytes, " \ "your maximum object size limit is %d bytes" % \ (objsize, self._quota_maxsize) @@ -220,7 +222,7 @@ return '' if not self.authorized_to_edit(): - raise "Unauthorized", \ + raise Unauthorized, \ "You are not authorized to edit this quota folder" if quota != -1: debian/patches/zope_2.12.patch0000644000000000000000000000332511653530011013253 0ustar Index: zope-quotafolder-0.1.1/QuotaFolder.py =================================================================== --- zope-quotafolder-0.1.1.orig/QuotaFolder.py 2002-03-22 20:33:46.000000000 +0900 +++ zope-quotafolder-0.1.1/QuotaFolder.py 2011-10-31 23:25:20.685209978 +0900 @@ -40,11 +40,11 @@ from zLOG import LOG, WARNING -def manage_addQuotaFolder(self, id, title, quota_bytes=0, quota_objects=0, - quota_maxsize=0, REQUEST=None): +def manage_addQuotaFolder(self, id, title, quota=0, numberFiles=0, + filesize=0, REQUEST=None): """ Add a new QuotaFolder """ - o = QuotaFolder(id, title, quota_bytes, quota_maxsize, quota_objects, REQUEST) + o = QuotaFolder(id, title, quota, numberFiles, filesize, REQUEST) self._setObject(id, o) o = self._getOb(id) @@ -250,4 +250,4 @@ Folder.manage_afterAdd(self, item, container) -Globals.default__class_init__(QuotaFolder) +App.class_init.default__class_init__ (QuotaFolder) Index: zope-quotafolder-0.1.1/__init__.py =================================================================== --- zope-quotafolder-0.1.1.orig/__init__.py 2002-03-22 20:33:46.000000000 +0900 +++ zope-quotafolder-0.1.1/__init__.py 2011-10-31 23:23:03.000000000 +0900 @@ -223,8 +223,9 @@ ## getSize is deprecated, but if it's all there is... return 1, object.getSize() else: - LOG('QuotaProduct', BLATHER, "Can't get size for %s/%s" % \ - (getid(object.id), object.meta_type)) + if hasattr(object, 'id') and hasattr(object, 'meta_type'): + LOG('QuotaProduct', BLATHER, "Can't get size for %s/%s" % \ + (getid(object.id), object.meta_type)) return 1, 0 ## debian/patches/series0000644000000000000000000000004011653530011012017 0ustar zope_2.12.patch python2.6.patch debian/compat0000644000000000000000000000000211650200710010354 0ustar 5 debian/control0000644000000000000000000000160511653251434010577 0ustar Source: zope-quotafolder Maintainer: Debian Zope Team Uploaders: Jérémy Bobbio Section: zope Priority: extra Build-Depends: debhelper (>= 5.0.0) Build-Depends-Indep: zope-debhelper Standards-Version: 3.9.2 Vcs-Svn: svn://svn.debian.org/pkg-zope/zope-quotafolder/trunk Vcs-Browser: http://svn.debian.org/wsvn/pkg-zope/zope-quotafolder/trunk/ Homepage: http://old.zope.org/Members/ivo/QuotaFolder/ Package: zope-quotafolder Architecture: all Depends: ${misc:Depends}, ${zope:Depends} Description: folder based quota system for Zope This Zope Product provides a folder-like Zope object which can enforce restrictions on objects stored within it, including objects stored in sub-folders. . These restrictions can limit the total number of objects, the maximum size of any single object, and the total size of all objects together. debian/changelog0000644000000000000000000000511012222577211011036 0ustar zope-quotafolder (1:0.1.1fakesync-1) saucy; urgency=low * Fake sync due to mismatching orig tarball (LP: #1033720). -- Logan Rosen Tue, 01 Oct 2013 17:55:35 +0100 zope-quotafolder (1:0.1.1-1) unstable; urgency=low * Team upload. Closes: #613358. * debian/control: + Remove XS prefix for Vcs-*, dpkg supports them now. + Add Homepage field. + Change section from web to zope. + Add ${misc:Depends} to Depends. + Bump Standards-Version to 3.9.2. No change needed. * Switch to 3.0 (quilt) source format. * Migrate debian/copyright to DEP5 format. * Update debian/watch. * Add required build-arch and build-indep rules in debian/rules. * Add patch for Zope 2.12. Thanks to Gaël Le Mignot. + Bump minimum supported version of Zope as it has only been tested with that version so far. * Add patch for Python 2.6 support. -- Arnaud Fontaine Sun, 30 Oct 2011 22:22:12 +0900 zope-quotafolder (0.1.1+0-1) unstable; urgency=low * Now maintained by the Debian Zope team. (Closes: #423360) * Switch to debhelper 5 * Update Standards-Version to 3.7.2.2. * Drop debconf questions and relevant translations. (Closes: #415190, #417250, #419241, #420371) * Redo the packaging with debhelper and zope-debhelper instead of cdbs. (Closes: #399213) * Now use upstream tarball directly. * Add watch file. * Add XS-Vcs-* fields to debian/control. -- Jérémy Bobbio Mon, 14 May 2007 14:22:18 +0200 zope-quotafolder (0.1.1-2.1) unstable; urgency=low * Non-maintainer upload to at least fix the pending l10n bugs. * Debconf tempaltes translations: - Portuguese. Closes: #400999 - Japanese. Closes: #312529 - Czech. Closes: #315998 - Vietnamese. Closes: #324425 - German. Closes: #407688 - Brazilian Portuguese (sent in #312529) * Move debhelper and cdbs stuff to Build-Depends as they're used in the clean target -- Christian Perrier Sun, 28 Jan 2007 10:49:19 +0100 zope-quotafolder (0.1.1-2) unstable; urgency=low * Adjust Depends to allow debconf-2.0 to satisfy the Debconf dependancy (No bug; fixed in early January, 2005, but never uploaded - d'oh!). * Allow Zope 2.7 or 2.8 to satisfy the Zope dependancy, as well as Zope 2.6. * Updated to Standards-Version 3.6.2.0 (no changes except as above). -- Joel Aelwyn Thu, 29 Sep 2005 00:35:06 -0600 zope-quotafolder (0.1.1-1) unstable; urgency=low * Initial packaging (closes: #266777) -- Joel Aelwyn Mon, 3 Jan 2005 19:40:27 -0700