Products.MightyCal.Template.TagRegistry (version 1.5)
index
/home/zope/lib/python/Products/MightyCal/Template/TagRegistry.py

TagRegistry Class.  This is a Folder-based class that automatically populates
itself with all the available Tag classes found in Tags.py.  Its management interface provides
a listing of the currently loaded classes, as well as a Refresh button for repopulating
the Registry in case a Tag class gets added.  This last ability avoids the need to delete
and re-add the whole MightyCal instance when a new Tag gets added by a programmer.

 
Modules
            
Acquisition
Dumper
Products.MightyCal.Template.Tags
os
re

 
Classes
            
Acquisition.Acquirer
TagRegistry(Products.MightyCal.SFolder.SFolder, Acquisition.Acquirer, Acquisition.ExplicitAcquirer)
Acquisition.ExplicitAcquirer
TagRegistry(Products.MightyCal.SFolder.SFolder, Acquisition.Acquirer, Acquisition.ExplicitAcquirer)
Products.MightyCal.SFolder.SFolder(OFS.Folder.Folder, Acquisition.ExplicitAcquirer, Acquisition.Acquirer)
TagRegistry(Products.MightyCal.SFolder.SFolder, Acquisition.Acquirer, Acquisition.ExplicitAcquirer)

 
class TagRegistry
      TagRegistry Class.  Holds instances of all the available Tag classes
 
  
__init__(self)
Construct a new instance of TagRegistry
deleteTags(self)
Delete all Tags in preparation for a refresh
hasTag(self, tagName)
Convenience function that reports whether we manage a particular tag or not
manage_refresh(self, REQUEST=None)
Refresh our list of Tags in case a new tag has been added
populate(self)
Finds all non-abstract classes in Tags, and creates instances of them in the TagRegistry

 
Data
             DEFAULT_POLICY = 'Default Security Policy'

DTML_DIR = 'dtml'

INFO = 0

TAG_REGISTRY = 'TagRegistry'

__file__ = '/home/zope/lib/python/Products/MightyCal/Template/TagRegistry.pyc'

__name__ = 'Products.MightyCal.Template.TagRegistry'

__version__ = '$Revision: 1.5 $'

permViewMgmtScreen = 'View management screens'