Back to index

plone3  3.1.7
Private Member Functions | Static Private Attributes
GenericSetup.utils.HandlerBase Class Reference
Inheritance diagram for GenericSetup.utils.HandlerBase:
Inheritance graph
[legend]
Collaboration diagram for GenericSetup.utils.HandlerBase:
Collaboration graph
[legend]

List of all members.

Private Member Functions

def _extract
def _extractBoolean
def _encode

Static Private Attributes

 _encoding = None
tuple _MARKER = object()

Detailed Description

Definition at line 160 of file utils.py.


Member Function Documentation

def GenericSetup.utils.HandlerBase._encode (   self,
  content 
) [private]

Definition at line 184 of file utils.py.

00184 
00185     def _encode( self, content ):
00186 
00187         if self._encoding is None:
00188             return content
00189 
00190         return content.encode( self._encoding )
00191 

Here is the caller graph for this function:

def GenericSetup.utils.HandlerBase._extract (   self,
  attrs,
  key,
  default = None 
) [private]

Definition at line 165 of file utils.py.

00165 
00166     def _extract( self, attrs, key, default=None ):
00167 
00168         result = attrs.get( key, self._MARKER )
00169 
00170         if result is self._MARKER:
00171             return default
00172 
00173         return self._encode( result )

Here is the call graph for this function:

def GenericSetup.utils.HandlerBase._extractBoolean (   self,
  attrs,
  key,
  default 
) [private]

Definition at line 174 of file utils.py.

00174 
00175     def _extractBoolean( self, attrs, key, default ):
00176 
00177         result = attrs.get( key, self._MARKER )
00178 
00179         if result is self._MARKER:
00180             return default
00181 
00182         result = result.lower()
00183         return result in ( '1', 'yes', 'true' )


Member Data Documentation

GenericSetup.utils.HandlerBase._encoding = None [static, private]

Definition at line 162 of file utils.py.

tuple GenericSetup.utils.HandlerBase._MARKER = object() [static, private]

Definition at line 163 of file utils.py.


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