Logo Search packages:      
Sourcecode: zope-archetypes version File versions

def Archetypes::ArchetypeTool::ArchetypeTool::registerTemplate (   self,
  name = None 

Template Management Views can be pretty generic by iterating the schema so we don't register by type anymore, we just create per site selection lists.

we keep two lists, all register templates and their names/titles and the mapping of type to template bindings both are persistent

Definition at line 401 of file ArchetypeTool.py.

00401                                                    :
        # Lookup the template by name
        obj = self.unrestrictedTraverse(template, None)
        if obj:
            if not name:
                name = obj.title_or_id()
            name = template

        self._registeredTemplates[template] = name


Generated by  Doxygen 1.6.0   Back to index