Back to index

plone3  3.1.7
Functions
plone.contentrules.rule.metaconfigure Namespace Reference

Functions

def ruleConditionDirective
def ruleActionDirective

Function Documentation

def plone.contentrules.rule.metaconfigure.ruleActionDirective (   _context,
  name,
  title,
  addview,
  editview = None,
  description = "",
  for_ = Interface,
  event = Interface,
  schema = None,
  factory = None 
)
Register a utility for IRuleAction based on the parameters in the 
zcml directive

Definition at line 27 of file metaconfigure.py.

00027 
00028     description="", for_=Interface, event=Interface, schema=None, factory=None):
00029     """Register a utility for IRuleAction based on the parameters in the 
00030     zcml directive
00031     """
00032     
00033     action = RuleAction()
00034     action.title = title
00035     action.addview = addview
00036     action.editview = editview
00037     action.description = description
00038     action.for_ = for_
00039     action.event = event
00040     action.schema = schema
00041     action.factory = factory
00042     
    utility(_context, provides=IRuleAction, component=action, name=name)

Here is the caller graph for this function:

def plone.contentrules.rule.metaconfigure.ruleConditionDirective (   _context,
  name,
  title,
  addview,
  editview = None,
  description = "",
  for_ = Interface,
  event = Interface,
  schema = None,
  factory = None 
)
Register a utility for IRuleCondition based on the parameters in the 
zcml directive

Definition at line 8 of file metaconfigure.py.

00008 
00009         description="", for_=Interface, event=Interface, schema=None, factory=None):
00010     """Register a utility for IRuleCondition based on the parameters in the 
00011     zcml directive
00012     """
00013     
00014     condition = RuleCondition()
00015     condition.title = title
00016     condition.addview = addview
00017     condition.editview = editview
00018     condition.description = description
00019     condition.for_ = for_
00020     condition.event = event
00021     condition.schema = schema
00022     condition.factory = factory
00023     
00024     utility(_context, provides=IRuleCondition, component=condition, name=name)
00025     
    

Here is the call graph for this function: