Back to index

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

List of all members.

Public Member Functions

def __init__
def startElement

Static Public Attributes

tuple security = ClassSecurityInfo()

Private Attributes

 _encoding
 _required
 _forbidden

Detailed Description

Definition at line 65 of file registry.py.


Constructor & Destructor Documentation

def GenericSetup.registry._ToolsetParser.__init__ (   self,
  encoding 
)

Definition at line 71 of file registry.py.

00071 
00072     def __init__( self, encoding ):
00073 
00074         self._encoding = encoding
00075         self._required = {}
00076         self._forbidden = []


Member Function Documentation

def GenericSetup.registry._ToolsetParser.startElement (   self,
  name,
  attrs 
)

Definition at line 77 of file registry.py.

00077 
00078     def startElement( self, name, attrs ):
00079 
00080         if name == 'tool-setup':
00081             pass
00082 
00083         elif name == 'forbidden':
00084 
00085             tool_id = self._extract( attrs, 'tool_id' )
00086 
00087             if tool_id not in self._forbidden:
00088                 self._forbidden.append( tool_id )
00089 
00090         elif name == 'required':
00091 
00092             tool_id = self._extract( attrs, 'tool_id' )
00093             dotted_name = self._extract( attrs, 'class' )
00094             self._required[ tool_id ] = dotted_name
00095 
00096         else:
00097             raise ValueError, 'Unknown element %s' % name
00098 
00099 InitializeClass( _ToolsetParser )

Here is the call graph for this function:


Member Data Documentation

Definition at line 73 of file registry.py.

Definition at line 75 of file registry.py.

Definition at line 74 of file registry.py.

tuple GenericSetup.registry._ToolsetParser.security = ClassSecurityInfo() [static]

Definition at line 67 of file registry.py.


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