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

def CMFSetup::registry::ProfileRegistry::registerProfile (   self,
  name,
  title,
  description,
  path,
  product = None,
  profile_type = BASE 
)

See IProfileRegistry.

Definition at line 555 of file registry.py.

                        :
        """ See IProfileRegistry.
        """
        profile_id = '%s:%s' % (product or 'other', name)
        if self._profile_info.get( profile_id ) is not None:
            raise KeyError, 'Duplicate profile ID: %s' % profile_id

        self._profile_ids.append( profile_id )

        info = { 'id' : profile_id
               , 'title' : title
               , 'description' : description
               , 'path' : path
               , 'product' : product
               , 'type': profile_type
               }

        self._profile_info[ profile_id ] = info

    security.declarePrivate( 'clear' )
    def clear( self ):


Generated by  Doxygen 1.6.0   Back to index