Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
ResourceRegistries.tools.BaseRegistry.Resource Class Reference
Inheritance diagram for ResourceRegistries.tools.BaseRegistry.Resource:
Inheritance graph
[legend]
Collaboration diagram for ResourceRegistries.tools.BaseRegistry.Resource:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def copy
def getId
def getQuotedId
def getExpression
def setExpression
def getEnabled
def setEnabled
def getCookable
def setCookable
def getCacheable
def setCacheable

Static Public Attributes

tuple security = ClassSecurityInfo()

Private Member Functions

def _setId

Private Attributes

 _data

Detailed Description

Definition at line 68 of file BaseRegistry.py.


Constructor & Destructor Documentation

def ResourceRegistries.tools.BaseRegistry.Resource.__init__ (   self,
  id,
  kwargs 
)

Definition at line 71 of file BaseRegistry.py.

00071 
00072     def __init__(self, id, **kwargs):
00073         self._data = PersistentMapping()
00074         self._data['id'] = id
00075         self._data['expression'] = kwargs.get('expression', '')
00076         self._data['enabled'] = kwargs.get('enabled', True)
00077         self._data['cookable'] = kwargs.get('cookable', True)
00078         self._data['cacheable'] = kwargs.get('cacheable', True)


Member Function Documentation

def ResourceRegistries.tools.BaseRegistry.Resource._setId (   self,
  id 
) [private]

Definition at line 93 of file BaseRegistry.py.

00093 
00094     def _setId(self, id):
00095         self._data['id'] = id

Here is the caller graph for this function:

Definition at line 79 of file BaseRegistry.py.

00079 
00080     def copy(self):
00081         result = self.__class__(self.getId())
00082         for key, value in self._data.items():
00083             if key != 'id':
00084                 result._data[key] = value
00085         return result

Definition at line 121 of file BaseRegistry.py.

00121 
00122     def getCacheable(self):
00123         # as this is a new property, old instance might not have that value, so
00124         # return True as default
00125         return self._data.get('cacheable', True)

Definition at line 113 of file BaseRegistry.py.

00113 
00114     def getCookable(self):
00115         return self._data['cookable']

Definition at line 105 of file BaseRegistry.py.

00105 
00106     def getEnabled(self):
00107         return bool(self._data['enabled'])

Definition at line 97 of file BaseRegistry.py.

00097 
00098     def getExpression(self):
00099         return self._data['expression']

Definition at line 87 of file BaseRegistry.py.

00087 
00088     def getId(self):
00089         return self._data['id']

Definition at line 90 of file BaseRegistry.py.

00090 
00091     def getQuotedId(self):
00092         return quote_plus(self._data['id'])

Definition at line 127 of file BaseRegistry.py.

00127 
00128     def setCacheable(self, cacheable):
00129         self._data['cacheable'] = cacheable
00130 
00131 InitializeClass(Resource)
00132 

Definition at line 117 of file BaseRegistry.py.

00117 
00118     def setCookable(self, cookable):
00119         self._data['cookable'] = cookable

Definition at line 109 of file BaseRegistry.py.

00109 
00110     def setEnabled(self, enabled):
00111         self._data['enabled'] = enabled

Definition at line 101 of file BaseRegistry.py.

00101 
00102     def setExpression(self, expression):
00103         self._data['expression'] = expression


Member Data Documentation

Definition at line 72 of file BaseRegistry.py.

tuple ResourceRegistries.tools.BaseRegistry.Resource.security = ClassSecurityInfo() [static]

Definition at line 69 of file BaseRegistry.py.


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