Products.MightyCal.Stylesheet (version 1.12)
index
/home/zope/lib/python/Products/MightyCal/Stylesheet.py

Stylesheet:  Holds and manages a named set of CSS elements.  Each CSS element is instantiated
as a separate object, and the Stylesheet acts like a Zope Folder in containing the tags.  When
the Stylesheet is asked, it will take the CSS elements objects it contains and produce a complete
CSS stylesheet in standard text format, dynamically.
 
Stylesheets are primarily used by user agents that handle HTML documents, but they can also be used
to style a variety of other XML-based documents, in particular VoiceXML.  Also, the XSL-FO properties
were deliberately made very similar to CSS, so that a Stylesheet object can be used to contain
properties for styling PDF documents as well as HTML.

 
Modules
            
Acquisition
Products.MightyCal.Const
Dumper
os
re
string
zLOG

 
Classes
            
Acquisition.Acquirer
Stylesheet(Persistence.Persistent, Acquisition.Acquirer, Acquisition.ExplicitAcquirer, AccessControl.Role.RoleManager, OFS.Folder.Folder)
Acquisition.ExplicitAcquirer
Stylesheet(Persistence.Persistent, Acquisition.Acquirer, Acquisition.ExplicitAcquirer, AccessControl.Role.RoleManager, OFS.Folder.Folder)
OFS.Folder.Folder(OFS.ObjectManager.ObjectManager, OFS.PropertyManager.PropertyManager, AccessControl.Role.RoleManager, webdav.Collection.Collection, OFS.SimpleItem.Item, OFS.FindSupport.FindSupport)
Stylesheet(Persistence.Persistent, Acquisition.Acquirer, Acquisition.ExplicitAcquirer, AccessControl.Role.RoleManager, OFS.Folder.Folder)
Persistence.Persistent
Stylesheet(Persistence.Persistent, Acquisition.Acquirer, Acquisition.ExplicitAcquirer, AccessControl.Role.RoleManager, OFS.Folder.Folder)
AccessControl.Role.RoleManager(ExtensionClass.Base, AccessControl.PermissionMapping.RoleManager)
Stylesheet(Persistence.Persistent, Acquisition.Acquirer, Acquisition.ExplicitAcquirer, AccessControl.Role.RoleManager, OFS.Folder.Folder)

 
class Stylesheet
      Stylesheet class : defines a stylesheet's contents using StyleElement objects
 
  
_Stylesheet__createStyleElement = __createStyleElement(self, rawElement)
Take a raw chunk of a stylesheet and create a StyleElement out of it
_Stylesheet__parseStylesheetText = __parseStylesheetText(self, text)
Split the stylesheet into elements, and create a StyleElement object for each one, which contains all of the property/value pairs associated with that StyleElement.  Also, if a Title: comment is present, set our title attribute to its value.  Same for Description: comments.
__init__(self, id, stylesheetText, parentObject)
Construct a new instance of an Stylesheet
addStyleElement(self, id, propertyNames, propertyValues, REQUEST=None)
Adds a new style element to the Stylesheet.  The Add Element form provides the ability to specify the ID for the new Element, as well as some initial properties and their values
deleteStyleElements(self, ids, REQUEST=None)
Delete the given list of StyleElements from our registry
renderAsCSS(self, skipStyleTags=None)
Generate a CSS-formatted version of the stylesheet, for use by HTML and XML-based user agents that understand CSS styling.
renderAsXML(self, renderForViewing=None)
Routine callable by Cocoon, which gets the completely expanded Stylesheet in XML text. The XML version of the stylesheet can then be integrated into the Cocoon stylesheet that produces PDF (or any stylesheet that uses XSL-FO, such as the RTF renderer)
tpValues(self, REQUEST=None)
Return the children stylesheet objects referred to in the current stylesheet text

 
Functions
            
manage_addStylesheet(container, id)
# Not available via ZMI
manage_addStylesheetForm()
# Not available via ZMI

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

__name__ = 'Products.MightyCal.Stylesheet'

__version__ = '$Revision: 1.12 $'

cAttributeSetTag = 'xsl:attribute-set'

cAttributeTag = 'xsl:attribute'

cValueOfTag = 'xsl:value-of'

cXSLNamespaceAttribute = 'xmlns:xsl="http://www.w3.org/1999/XSL/Transform"'

cXSLStylesheetTag = 'style-attribute-sets'

permViewMgmtScreen = 'View management screens'