Products.MightyCal.Template (version 1.4) | index /home/zope/lib/python/Products/MightyCal/Template/__init__.py |
Template subpackage of the MightyCal package. Contains the following modules: * Template: Holds a segment of Intermediate-language markup, along with routines for parsing and rendering the markup. The Intermediate language is an HTML-like language that allows administrators to define the general layout that a particular object should have in a given situation, but in general enough terms that Cocoon can make the needed decisions about how to display the object in a specific destination format. * TemplateCollection: Holds a set of Templates, and can be attached to another object as a child. Each object which needs Templates (and this includes EventType, FieldSpec and Calendar, will have an associated TemplateCollection. TemplateCollection has an administrative interface for browsing, adding and modifying the Templates. * The Tag object intelligently handles the tags found in an Intermediate Template during parsing. Right now a Tag object can report whether it is legal in a particular context, and can report whether its usage implies any embedded children Templates (along with a list of those Templates) * The TagRegistry is a read-only Folder that contains instances of each of the Tag classes. The only thing an admin can do with the TagRegistry is refresh it, in case the Tags.py module has had Tag classes added. The TagRegistry makes it possible to use the functionality of the Tag classes without reinstantiating them for every usage. Because Tags sometimes have to access the ZODB, the Registry is necessary so that the Tags themselves have a place in the ZODB; this allows the use of Acquisition from Tag objects. * Const: Constants definitions for the above modules.
Package Contents | ||||||
|
Data | ||
__all__ = ['Const', 'Template', 'TemplateCollection', 'Tags', 'TagRegistry'] __file__ = '/home/zope/lib/python/Products/MightyCal/Template/__init__.pyc' __name__ = 'Products.MightyCal.Template' __path__ = ['/home/zope/lib/python/Products/MightyCal/Template'] __version__ = '$Revision: 1.4 $' |