Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes | Private Attributes | Static Private Attributes
Marshall.expression.Expression Class Reference
Inheritance diagram for Marshall.expression.Expression:
Inheritance graph
[legend]
Collaboration diagram for Marshall.expression.Expression:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def __call__

Static Public Attributes

tuple security = ClassSecurityInfo()

Private Attributes

 _text

Static Private Attributes

string _text = ''
 _v_compiled = None

Detailed Description

A Persistent TALES Expression

Definition at line 32 of file expression.py.


Constructor & Destructor Documentation

def Marshall.expression.Expression.__init__ (   self,
  text 
)

Definition at line 40 of file expression.py.

00040 
00041     def __init__(self, text):
00042         self._text = text
00043         self._v_compiled = getEngine().compile(text)


Member Function Documentation

def Marshall.expression.Expression.__call__ (   self,
  econtext 
)

Definition at line 44 of file expression.py.

00044 
00045     def __call__(self, econtext):
00046         compiled = self._v_compiled
00047         if compiled is None:
00048             compiled = self._v_compiled = getEngine().compile(self._text)
00049         res = compiled(econtext)
00050         if isinstance(res, Exception):
00051             raise res
00052         return res
00053 
00054 InitializeClass(Expression)

Here is the caller graph for this function:


Member Data Documentation

string Marshall.expression.Expression._text = '' [static, private]

Definition at line 35 of file expression.py.

Definition at line 41 of file expression.py.

Definition at line 36 of file expression.py.

tuple Marshall.expression.Expression.security = ClassSecurityInfo() [static]

Definition at line 38 of file expression.py.


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