You are here: Home Plone products quota

quota (0.1)

1
by Olha Pelishok last modified 2008-05-20
0.0
0.0
0.0
0.0
Released on 2007-11-20 by Enrique Pablo Perez Arnaud for Plone 3.0 under GPL - GNU General Public License available for All platforms.
Software development stage: beta
A product to add quota support to containers in a plone site.

This is a product (tested with plone-3.0, there is also a branch in the repository for plone-2.5) that allows site managers to set quotas on containers. By default it comes with a special content type, quota folder, derived from ATFolder, usable as a quota aware replacement for ATFolder and also useful as an example to make other container types quota aware. Basically, what is needed to make a container type quota aware is for it to implement the IQuotaAware interface.

The quota can be set globally (through a configlet in the plone control panel) or locally in the metadata (properties) tab of any quota aware container. There are two settings: max size and size threshold. If the contained size of a quota aware container goes up between max size and max size + size threshold, the user will get a warning; if it goes up over max size + size threshold, the user will get an error.

Additionally, in the control panel you can check "enforce quota", so that any local settings that set a higher quota than the global quota will be overridden by the global settings. If "enforce quota" is not checked, the global quota will only be used for those quota aware containers that have
no local settings.

Caveat: non AT content will not be properly sized. In order to take into account the size of non archetype content, custom IQuotaSizer adapters should
be developed for those content types. For an example, see ATQuotaSizer in adapters.py.

Document Actions
Powered by Plone