Logo Search packages:      
Sourcecode: zope-cmf1.5 version File versions  Download package

def CMFSetup::registry::ExportStepRegistry::registerStep (   self,
  id,
  handler,
  title = None,
  description = None 
)

Register an export step.

o 'id' is the unique identifier for this step

o 'step' should implement IExportPlugin.

o 'title' is a one-line UI description for this step.
  If None, the first line of the documentation string of the step
  is used, or the id if no docstring can be found.

o 'description' is a one-line UI description for this step.
  If None, the remaining line of the documentation string of
  the step is used, or default to ''.

Definition at line 343 of file registry.py.

00343                                                                        :

        """ Register an export step.

        o 'id' is the unique identifier for this step

        o 'step' should implement IExportPlugin.

        o 'title' is a one-line UI description for this step.
          If None, the first line of the documentation string of the step
          is used, or the id if no docstring can be found.

        o 'description' is a one-line UI description for this step.
          If None, the remaining line of the documentation string of
          the step is used, or default to ''.
        """
        if title is None or description is None:

            t, d = _extractDocstring( handler, id, '' )

            title = title or t
            description = description or d

        info = { 'id'           : id
               , 'handler'      : _getDottedName( handler )
               , 'title'        : title
               , 'description'  : description
               }

        self._registered[ id ] = info

    security.declarePrivate( 'parseXML' )
    def parseXML( self, text, encoding=None ):


Generated by  Doxygen 1.6.0   Back to index