[Zope] Zope QuotaFolder -- scripting API ?
Dieter Maurer
dieter@handshake.de
Tue, 4 Feb 2003 19:30:03 +0100
cmulcahy@avenirsolutions.com wrote at 2003-2-3 15:16 -0500:
> I love your QuotaFolder product and I would like to user it in a python
> script. ( Please forgive me, I am new to zope )
>
> I installed QuotaFolder and I can create new QuotaFolder objects from the
> ZMI,
> but I would like to use it in a script like:
>
> try:
> context.manage_addQuotaFolder(username,"Portfolio of %s" %
> username,quota_bytes=10485760,quota_objects=1000,quota_maxsize=0,REQUEST=Non
The modern way is
context.manage_addProduct[<ProductName>].<constructor>(...)
in your case, probably:
context.manage_addProduct['QuotaFolder'].manage_addQuotaFolder(...)
Dieter