mandates.mandate - Mandate Components

These are the mandates.

class waeup.kofa.mandates.mandate.Mandate(days=1, mandate_id=None)[source]

Bases: grokcore.content.components.Model

This is a mandate.

REDIRECT_WITH_MANDATE_ID = False
__doc__ = 'This is a mandate.\n '
__implemented__ = <implementedBy waeup.kofa.mandates.mandate.Mandate>
__init__(days=1, mandate_id=None)[source]
__module__ = 'waeup.kofa.mandates.mandate'
__provides__

Special descriptor for class __provides__

The descriptor caches the implementedBy info, so that we can get declarations for objects without instance-specific interfaces a bit quicker.

For example:

>>> from zope.interface import Interface
>>> class IFooFactory(Interface):
...     pass
>>> class IFoo(Interface):
...     pass
>>> class C(object):
...     implements(IFoo)
...     classProvides(IFooFactory)
>>> [i.getName() for i in C.__provides__]
['IFooFactory']
>>> [i.getName() for i in C().__provides__]
['IFoo']
execute()[source]
class waeup.kofa.mandates.mandate.PasswordMandate(days=1, mandate_id=None)[source]

Bases: waeup.kofa.mandates.mandate.Mandate

This is a mandate which can set a password.

__doc__ = 'This is a mandate which can set a password.\n '
__module__ = 'waeup.kofa.mandates.mandate'
_setPassword()[source]
execute()[source]
class waeup.kofa.mandates.mandate.RefereeReportMandate(days=1, mandate_id=None)[source]

Bases: waeup.kofa.mandates.mandate.Mandate

This is a mandate which can unlock a RefereeReportAddFormPage. The mandate is not automatically deleted. This has to be done by the submit method of the add form page.

REDIRECT_WITH_MANDATE_ID = True
__doc__ = 'This is a mandate which can unlock a `RefereeReportAddFormPage`.\n The mandate is not automatically deleted. This has to be done\n by the submit method of the add form page.\n '
__module__ = 'waeup.kofa.mandates.mandate'
execute()[source]