This product adds quota support to archetypes containers.
[instance] eggs += ftw.quota
Add the marker interface ftw.quota.interfaces.IQuotaSupport to any archetypes container that you want to have quota support.
Containers with quota support will get additional fields for quota setup. You can setup quota limits in the edit form.
To make all archetypes objects quota aware e.g. you can use the following zcml directive:
>>> <class class="Products.Archetypes.BaseObject.BaseObject"> ... <implements interface="ftw.quota.interfaces.IQuotaAware" /> ... </class>
The quota configuration is stored using additional fields (schema extender) and can be accessed easily:
>>> container.Schema().getField('quota').get(container) ... ... # quota in bytes >>> container.Schema().getField('usage').get(container) ... ... # usage in bytes >>> container.Schema().getField('enforce').get(container) ... True # when True it is not possible to add content when quota is exceeded
Nested quota containers are not supported at the moment.
This package is copyright by 4teamwork.
ftw.quota is licensed under GNU General Public License, version 2.
TODO: Figure out how to actually get changelog content.
Changelog content for this version goes here.