[Zope-CMF] Finding size of portal
Ivo van der Wijk
ivo@amaze.nl
Mon, 16 Dec 2002 18:31:18 +0100
On Mon, Dec 16, 2002 at 06:20:50PM +0100, Gitte Wange wrote:
> Hello,
>
> Is there anyone out there who have created a method that returns the size of
> a CMF Portal ? (The size in MB or something?)
> Or have any good ideas how I can create such a method ?
>
You could use QuotaFolder for this. However, QuotaFolder currently doesn't
count FilesystemDirectoryViews correctly, so the numbers may not be
correct - we're working on this (actually, we're making QuotaFolder completely
CMF aware so it can even serve as a restricted Member folder)
Also, it's impossible to get an exact size of zope objects (and their
properties, older versions, etc), but QuotaFolder gives you a picture of the
size of the content, and a way to restrict it.
Cheers
Ivo
--
Drs. I.R. van der Wijk -=-
Brouwersgracht 132 Amaze Internet Services V.O.F.
1013 HA Amsterdam, NL -=-
T +31-20-4688336 F +31-20-4688337 Linux/Web/Zope/SQL/MMBase
W http://www.amaze.nl E info@amaze.nl Network Solutions
W http://vanderwijk.info E ivo@amaze.nl Consultancy
PGP http://vanderwijk.info/pgp -=-