Back to index

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

List of all members.

Private Member Functions

def _extract
def _encode

Static Private Attributes

tuple _MARKER = object()

Detailed Description

Definition at line 46 of file registry.py.


Member Function Documentation

def GenericSetup.registry._HandlerBase._encode (   self,
  content 
) [private]

Definition at line 58 of file registry.py.

00058 
00059     def _encode(self, content):
00060         if self._encoding is None:
00061             return content
00062 
00063         return content.encode(self._encoding)
00064 

Here is the caller graph for this function:

def GenericSetup.registry._HandlerBase._extract (   self,
  attrs,
  key 
) [private]

Definition at line 50 of file registry.py.

00050 
00051     def _extract(self, attrs, key):
00052         result = attrs.get(key, self._MARKER)
00053 
00054         if result is self._MARKER:
00055             return None
00056 
00057         return self._encode(result)

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

tuple GenericSetup.registry._HandlerBase._MARKER = object() [static, private]

Definition at line 48 of file registry.py.


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