Products.MightyCal.StyleElement (version 1.10)
index
/home/zope/lib/python/Products/MightyCal/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
            
Acquisition
Products.MightyCal.Const
Dumper
os
zLOG

 
Classes
            
Acquisition.Acquirer
StyleElement(Persistence.Persistent, Acquisition.ExplicitAcquirer, Acquisition.Acquirer, AccessControl.Role.RoleManager, OFS.SimpleItem.Item)
exceptions.Exception
IllegalStyleElementException
Acquisition.ExplicitAcquirer
StyleElement(Persistence.Persistent, Acquisition.ExplicitAcquirer, Acquisition.Acquirer, AccessControl.Role.RoleManager, OFS.SimpleItem.Item)
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)
StyleElement(Persistence.Persistent, Acquisition.ExplicitAcquirer, Acquisition.Acquirer, AccessControl.Role.RoleManager, OFS.SimpleItem.Item)
Persistence.Persistent
StyleElement(Persistence.Persistent, Acquisition.ExplicitAcquirer, Acquisition.Acquirer, AccessControl.Role.RoleManager, OFS.SimpleItem.Item)
AccessControl.Role.RoleManager(ExtensionClass.Base, AccessControl.PermissionMapping.RoleManager)
StyleElement(Persistence.Persistent, Acquisition.ExplicitAcquirer, Acquisition.Acquirer, AccessControl.Role.RoleManager, OFS.SimpleItem.Item)

 
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
             __file__ = '/home/zope/lib/python/Products/MightyCal/StyleElement.pyc'

__name__ = 'Products.MightyCal.StyleElement'

__version__ = '$Revision: 1.10 $'

permViewMgmtScreen = 'View management screens'