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.ParentsPasswordMandate(days=1, mandate_id=None)[source]

Bases: waeup.kofa.mandates.mandate.Mandate

__doc__ = None
__module__ = 'waeup.kofa.mandates.mandate'
_setPassword()[source]
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.

REDIRECT_WITH_MANDATE_ID = True
__doc__ = 'This is a mandate which can unlock a `RefereeReportAddFormPage`.\n The mandate is not automatically deleted.\n '
__module__ = 'waeup.kofa.mandates.mandate'
execute()[source]