Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
plone.app.contentrules.actions.logger.LoggerActionExecutor Class Reference

List of all members.

Public Member Functions

def __init__
def __call__

Public Attributes

 context
 element
 event

Detailed Description

The executor for this action.

This is registered as an adapter in configure.zcml

Definition at line 58 of file logger.py.


Constructor & Destructor Documentation

def plone.app.contentrules.actions.logger.LoggerActionExecutor.__init__ (   self,
  context,
  element,
  event 
)

Definition at line 66 of file logger.py.

00066 
00067     def __init__(self, context, element, event):
00068         self.context = context
00069         self.element = element
00070         self.event = event

Here is the caller graph for this function:


Member Function Documentation

Definition at line 71 of file logger.py.

00071 
00072     def __call__(self):
00073         logger = logging.getLogger(self.element.targetLogger)
00074         processedMessage = self.element.message.replace("&e", "%s.%s" % (self.event.__class__.__module__, self.event.__class__.__name__))
00075         if IObjectEvent.providedBy(self.event):
00076             processedMessage = processedMessage.replace("&c", repr(self.event.object))
00077         logger.log(self.element.loggingLevel, processedMessage)
00078         return True 
        

Here is the caller graph for this function:


Member Data Documentation

Definition at line 67 of file logger.py.

Definition at line 68 of file logger.py.

Definition at line 69 of file logger.py.


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