Back to index

plone3  3.1.7
element.py
Go to the documentation of this file.
00001 from zope.interface import implements, Interface 
00002 
00003 from plone.contentrules.rule.interfaces import IRuleElement, IRuleCondition, IRuleAction
00004 
00005 class RuleElement(object):
00006     """A rule element.
00007     
00008     Ordinarily, rule elements will be created via ZCML directives, which will
00009     register them as utilities.
00010     """
00011     
00012     implements(IRuleElement)
00013 
00014     title = u''
00015     description = u''
00016     for_ = Interface
00017     event = None
00018     addview = None
00019     editview = None
00020     schema = None
00021     factory = None
00022     
00023 class RuleCondition(RuleElement):
00024     """A rule condition.
00025     
00026     Rule conditions are just rule elements, but are registered under a more
00027     specific interface to enable the UI to differentate between different types
00028     of elements.
00029     """
00030     implements(IRuleCondition)
00031     
00032 class RuleAction(RuleElement):
00033     """A rule action.
00034     
00035     Rule action are just rule elements, but are registered under a more
00036     specific interface to enable the UI to differentate between different types
00037     of elements.
00038     """
00039     implements(IRuleAction)