Back to index

plone3  3.1.7
_archetypetool.py
Go to the documentation of this file.
00001 from zope.interface import Attribute, Interface
00002 
00003 class IArchetypeTool(Interface):
00004     """This tool manages various kinds of behaviour for Archetype based
00005     content types. """
00006 
00007     id = Attribute('id', 'Must be set to "archetype_tool"')
00008 
00009     def listRegisteredTypes(inProject=False):
00010         """Return the list of sorted types.
00011         """
00012 
00013 
00014     def setCatalogsByType(meta_type, catalogList):
00015         """ associate catalogList with meta_type. (unfortunally not portal_type).
00016         
00017             catalogList is a list of strings with the ids of the catalogs.
00018             Each catalog is has to be a tool, means unique in site root.
00019         """
00020 
00021 
00022     def getCatalogsByType(meta_type):
00023         """Return the catalog objects assoicated with a given type.
00024         """
00025 
00026 
00027     def getCatalogsInSite(self):
00028         """Return a list of ids for objects implementing ZCatalog.
00029         """
00030