Products.MightyCal.Tags (version 1.25)
index
/home/zope/lib/python/Products/MightyCal/Tags.py

Tag objects act as intelligent handlers for the Intermediate-language tags that
admins use to define their Calendar display & editing templates.  Tag object provide
a number of facilities, including the ability to decide whether they are legal in
a particular context, and to find other embedded Intermediate templates that are implied
by a particular tag's usage.

 
Modules
            
Acquisition
Products.MightyCal.Const
Dumper
Products.MightyCal.EventCatalog
Products.MightyCal.EventType
Products.MightyCal.Template
Products.MightyCal.Utils
zLOG

 
Classes
            
Acquisition.Acquirer
AbstractBaseTag(Persistence.Persistent, Acquisition.ExplicitAcquirer, Acquisition.Acquirer, OFS.SimpleItem.Item)
AbstractCalendarContextTag
EventListingTag
MonthDisplayTag
SingleEventTag
AbstractEventMatrixTag
EventDetailTag
EventEditTag
BRTag
BTag
BackButtonTag
ButtonSetTag
CalendarHeaderTag
CellTag
DisplayTemplateTag
EditButtonTag
EventHyperlinkTag
FieldEditorTag
FieldNameTag
FieldTag
FieldValueTag
FooterTag
H1Tag
H2Tag
H3Tag
IndentTag
NavWidgetTag
PropertyTag
RowTag
SubmitButtonTag
TableTag
exceptions.Exception
IllegalTagException
Acquisition.ExplicitAcquirer
AbstractBaseTag(Persistence.Persistent, Acquisition.ExplicitAcquirer, Acquisition.Acquirer, OFS.SimpleItem.Item)
AbstractCalendarContextTag
EventListingTag
MonthDisplayTag
SingleEventTag
AbstractEventMatrixTag
EventDetailTag
EventEditTag
BRTag
BTag
BackButtonTag
ButtonSetTag
CalendarHeaderTag
CellTag
DisplayTemplateTag
EditButtonTag
EventHyperlinkTag
FieldEditorTag
FieldNameTag
FieldTag
FieldValueTag
FooterTag
H1Tag
H2Tag
H3Tag
IndentTag
NavWidgetTag
PropertyTag
RowTag
SubmitButtonTag
TableTag
OFS.SimpleItem.Item(ExtensionClass.Base, webdav.Resource.Resource, OFS.CopySupport.CopySource, App.Management.Tabs, OFS.Traversable.Traversable, OFS.ZDOM.Element, AccessControl.Owned.Owned, App.Undo.UndoSupport)
AbstractBaseTag(Persistence.Persistent, Acquisition.ExplicitAcquirer, Acquisition.Acquirer, OFS.SimpleItem.Item)
AbstractCalendarContextTag
EventListingTag
MonthDisplayTag
SingleEventTag
AbstractEventMatrixTag
EventDetailTag
EventEditTag
BRTag
BTag
BackButtonTag
ButtonSetTag
CalendarHeaderTag
CellTag
DisplayTemplateTag
EditButtonTag
EventHyperlinkTag
FieldEditorTag
FieldNameTag
FieldTag
FieldValueTag
FooterTag
H1Tag
H2Tag
H3Tag
IndentTag
NavWidgetTag
PropertyTag
RowTag
SubmitButtonTag
TableTag
Persistence.Persistent
AbstractBaseTag(Persistence.Persistent, Acquisition.ExplicitAcquirer, Acquisition.Acquirer, OFS.SimpleItem.Item)
AbstractCalendarContextTag
EventListingTag
MonthDisplayTag
SingleEventTag
AbstractEventMatrixTag
EventDetailTag
EventEditTag
BRTag
BTag
BackButtonTag
ButtonSetTag
CalendarHeaderTag
CellTag
DisplayTemplateTag
EditButtonTag
EventHyperlinkTag
FieldEditorTag
FieldNameTag
FieldTag
FieldValueTag
FooterTag
H1Tag
H2Tag
H3Tag
IndentTag
NavWidgetTag
PropertyTag
RowTag
SubmitButtonTag
TableTag

 
class AbstractBaseTag
      A base class for other Tag classes
 
  
__init__(self)
expand(self, node, contextObject, tagAttrDict)
Perform a custom expansion on the node, rather than simply replicating it into the result tree
getEmbeddedTemplates(self, context, tagAttrDict)
Discover any embedded Intermediate language templates that are implied by the current context
isLegal(self, contextObject)
Only legal in the context of Calendars

 
class AbstractCalendarContextTag
      A base class for tags that have Calendars as their contexts
 
  
expand(self, node, contextObject, tagAttrDict, DOM)
Recursively find and render any child templates implied by the current tag.  Tags in a Calendar context may have more than one implied child template, so we need to group them in the output DOM under a '<event-type-descriptor-list>' node
getEmbeddedTemplates(self, contextObject, tagAttrDict)
Discover any Intermediate language templates that are implied by the current context. For an EventListingTag, this means looking for EventTypes that are owned by the Calendar given as the contextObject

 
class AbstractEventMatrixTag
      Handles <event-detail> and <event-edit> tags
 
  
expand(self, node, contextObject, tagAttrDict, DOM)
Create a display matrix for the Event

 
class BRTag
      Handles <br> tags
 
  

 
class BTag
      Handles <b> tags
 
  

 
class BackButtonTag
      Handles <back-button> tags, which generate a button that will redirect the user back to the previous page.
 
  

 
class ButtonSetTag
      Handles <button-set> tags, which generate a <div> wrapper that allows buttons to be positioned and styled in a group.
 
  

 
class CalendarHeaderTag
      Handles <calendar-header> tags
 
  

 
class CellTag
      Handles <cell> tags
 
  

 
class DisplayTemplateTag
      Handles <display-template> tags
 
  

 
class EditButtonTag
      Handles <edit-button> tags, which generate a button that will redirect the user to the event editing template specified in the 'edit-template' attribute
 
  

 
class EventDetailTag
      Handles <event-detail> tags
 
  

 
class EventEditTag
      Handles <event-edit> tags
 
  

 
class EventHyperlinkTag
      Handles <event-hyperlink> tags
 
  

 
class EventListingTag
      Handles <event-listing> tags
 
  

 
class FieldEditorTag
      Handles <field-editor> tags
 
  

 
class FieldNameTag
      Handles <field-name> tags
 
  

 
class FieldTag
      Handles <field> tags
 
  
expand(self, node, contextObject, tagAttrDict, DOM)
Recursively find and render a single Field template implied by the current tag
getEmbeddedTemplates(self, contextObject, tagAttrDict)
Discover any Intermediate language templates that are implied by the current context. For an FieldTag, this means looking for FieldSpecs that are owned by the EventType given as the contextObject

 
class FieldValueTag
      Handles <field-value> tags
 
  

 
class FooterTag
      Handles <footer> tags
 
  

 
class H1Tag
      Handles <h1> tags
 
  

 
class H2Tag
      Handles <h2> tags
 
  

 
class H3Tag
      Handles <h3> tags
 
  

 
class IllegalTagException
      # Indicates a tag is not legal in the given context
 
  
__init__(self, value)
__str__(self)

 
class IndentTag
      Handles <indent> tags
 
  

 
class MonthDisplayTag
      Handles <month-display> tags
 
  

 
class NavWidgetTag
      Handles <nav-widget> tags
 
  

 
class PropertyTag
      Handles <property> tags
 
  
expand(self, node, contextObject, tagAttrDict, DOM)
Find the named property of the Calendar object, and create a TEXT node to hold it

 
class RowTag
      Handles <row> tags
 
  

 
class SingleEventTag
      Handles <single-event> tags
 
  

 
class SubmitButtonTag
      Handles <submit-button> tags, which generate to submit the current form.
 
  

 
class TableTag
      Handles <table> tags
 
  

 
Data
             DISPLAY_TEMPLATETag = 'display-template'

EVENT_TYPEDescriptorListTag = 'event-type-descriptor-list'

EVENT_TYPEDescriptorTag = 'event-type-descriptor'

FIELD_SPECDescriptorTag = 'fieldspec-descriptor'

FIELD_SPECTag = 'field-spec'

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

__name__ = 'Products.MightyCal.Tags'

__version__ = '$Revision: 1.25 $'

cAnyContext = 'AnyContext'

cBRTag = 'br'

cBTag = 'b'

cBackButtonTag = 'back-button'

cButtonSetTag = 'button-set'

cCalendarHeaderTag = 'calendar-header'

cCellTagName = 'cell'

cContentTypeTag = 'content-type'

cEditButtonTag = 'edit-button'

cEventDetailTag = 'event-detail'

cEventEditTag = 'event-edit'

cEventEntryForm = 'event-entry-form'

cEventHyperlinkTag = 'event-hyperlink'

cEventListTag = 'event-list'

cEventListingTag = 'event-listing'

cEventTag = 'event'

cFieldEditorTag = 'field-editor'

cFieldNameTag = 'field-name'

cFieldTag = 'field'

cFieldValueTag = 'field-value'

cFooterTag = 'footer'

cFormattedValueTag = 'formatted-value'

cH1Tag = 'h1'

cH2Tag = 'h2'

cH3Tag = 'h3'

cIndentTag = 'indent'

cIntermediateMarkupTag = 'intermediate-markup-language'

cMonthDisplayTag = 'month-display'

cNBSP = '&#160;'

cNavWidgetTag = 'nav-widget'

cPropertyTag = 'property'

cReadOnlyDisplay = 'read-only-display'

cResultTree = 'ResultTree'

cRowTagName = 'row'

cSingleEventTag = 'single-event'

cSubmitButtonTag = 'submit-button'

cTableTagName = 'table'

cTextNode = 'TEXT_NODE'

cTwoNBSP = '&#160;&#160;'

cWidgetTag = 'widget'

cXMLStartTag = '<?xml version="1.0" ?>'