Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
plone.app.contentrules.conditions.portaltype.PortalTypeConditionExecutor Class Reference

List of all members.

Public Member Functions

def __init__
def __call__

Public Attributes

 context
 element
 event

Detailed Description

The executor for this condition.

This is registered as an adapter in configure.zcml

Definition at line 51 of file portaltype.py.


Constructor & Destructor Documentation

def plone.app.contentrules.conditions.portaltype.PortalTypeConditionExecutor.__init__ (   self,
  context,
  element,
  event 
)

Definition at line 59 of file portaltype.py.

00059 
00060     def __init__(self, context, element, event):
00061         self.context = context
00062         self.element = element
00063         self.event = event

Here is the caller graph for this function:


Member Function Documentation

Definition at line 64 of file portaltype.py.

00064 
00065     def __call__(self):
00066         obj = aq_inner(self.event.object)
00067         if not hasattr(aq_base(obj), 'getTypeInfo'):
00068             return False
00069         return obj.getTypeInfo().getId() in self.element.check_types
        

Here is the caller graph for this function:


Member Data Documentation

Definition at line 60 of file portaltype.py.

Definition at line 61 of file portaltype.py.

Definition at line 62 of file portaltype.py.


The documentation for this class was generated from the following file: