[Zope-PTK] PTK quotas
Christopher Petrilli
petrilli@digicool.com
Tue, 22 Feb 2000 16:35:04 -0500
On 2/22/00 4:24 PM, Lalo Martins at lalo@hackandroll.org wrote:
> Still, it would be cool to have quotas for a folder. This could
> easily be done with a ZClass subclassing Folder, except that
> there is no way to get the size of an object (or is there?).
More importantly, you have all the revisions of an object, how do you
account for that? You could easily create a 500K object (say your limit is
1MB), and then "update" it 100x and have used 50MB :-) But how do you count
this? And since you can't pack just a section of the database, this is
difficult to do.
Not impossible mind you, just a bit harder than it looks at first glance.
Chris
--
| Christopher Petrilli Python Powered Digital Creations, Inc.
| petrilli@digicool.com http://www.digicool.com