Products.MightyCal.Style.StyleElement (version 1.6)
index
/home/zope/lib/python/Products/MightyCal/Style/StyleElement.py

StyleElement objects hold the property-value pairs that constitute CSS elements.  They
are able to render themselves as complete CSS element statements, or in XML format.

 
Modules
            
Dumper
os

 
Classes
            
exceptions.Exception
IllegalStyleElementException
Products.MightyCal.SItem.SItem(OFS.SimpleItem.Item, Acquisition.Acquirer, Acquisition.ExplicitAcquirer, OFS.PropertyManager.PropertyManager, App.PersistentExtra.Persistent, AccessControl.Role.RoleManager)
StyleElement

 
class IllegalStyleElementException
      # Indicates an element is incorrectly formed (e.g. bad property values)
 
  
__init__(self, value)
__str__(self)

 
class StyleElement
      The StyleElement class stores the properties associated with a particular CSS element; i.e. the property-value pairs that would normally go between the braces '{}' in a CSS text stylesheet
 
  
__init__(self, id, properties)
The properties parameter needs to be a Dictionary of property/value pairs
getProperties(self, REQUEST=None)
Returns the properties in a list of (key, value) pairs
manage_addProperty(self, id, value, REQUEST)
Add a new property/value pair to this StyleElement
manage_delProperties(self, ids, REQUEST)
Delete the marked properties from this StyleElement
manage_editProperties(self, REQUEST)
Update the property values for this StyleElement
renderAsCSS(self)
Render the StyleElement as CSS element text (e.g. 'H2 { font-face: Verdana; }' )
renderAsXML(self)
Render the StyleElement as an XML fragment, usable by the Cocoon XSLT processor to attach properties to the XSL-FO elements that generate a PDF (or RTF) calendar view

 
Functions
            
manage_addStyleElement(container, id)
# Not available via ZMI
manage_addStyleElementForm()
# Not available via ZMI

 
Data
             ATTRIBUTE_SET_TAG = 'xsl:attribute-set'

ATTRIBUTE_TAG = 'xsl:attribute'

BLANK_CSS = 'blank.css'

DTML_DIR = 'dtml'

INFO = 0

STYLESHEET_OBJECT = 'Stylesheet'

STYLE_ELEMENT = 'StyleElement'

STYLE_POLICY = 'Policy for Stylesheet and related objects'

VALUE_OF_TAG = 'xsl:value-of'

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

XSL_STYLESHEET_TAG = 'style-attribute-sets'

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

__name__ = 'Products.MightyCal.Style.StyleElement'

__version__ = '$Revision: 1.6 $'

permViewMgmtScreen = 'View management screens'