Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes
ResourceRegistries.tools.CSSRegistry.Stylesheet Class Reference
Inheritance diagram for ResourceRegistries.tools.CSSRegistry.Stylesheet:
Inheritance graph
[legend]
Collaboration diagram for ResourceRegistries.tools.CSSRegistry.Stylesheet:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def getMedia
def setMedia
def getRel
def setRel
def getTitle
def setTitle
def getRendering
def setRendering
def getCompression
def setCompression

Static Public Attributes

tuple security = ClassSecurityInfo()

Detailed Description

Definition at line 19 of file CSSRegistry.py.


Constructor & Destructor Documentation

def ResourceRegistries.tools.CSSRegistry.Stylesheet.__init__ (   self,
  id,
  kwargs 
)

Definition at line 22 of file CSSRegistry.py.

00022 
00023     def __init__(self, id, **kwargs):
00024         Resource.__init__(self, id, **kwargs)
00025         self._data['media'] = kwargs.get('media', '')
00026         self._data['rel'] = kwargs.get('rel', 'stylesheet')
00027         self._data['title'] = kwargs.get('title', '')
00028         self._data['rendering'] = kwargs.get('rendering', 'import')
00029         self._data['compression'] = kwargs.get('compression', 'safe')

Here is the call graph for this function:


Member Function Documentation

Definition at line 69 of file CSSRegistry.py.

00069 
00070     def getCompression(self):
00071         # as this is a new property, old instance might not have that value, so
00072         # return 'safe' as default
00073         compression = self._data.get('compression', 'safe')
00074         if compression in config.CSS_COMPRESSION_METHODS:
00075             return compression
00076         return 'none'

Definition at line 31 of file CSSRegistry.py.

00031 
00032     def getMedia(self):
00033         result = self._data['media']
00034         if result == "":
00035             result = None
00036         return result

Here is the call graph for this function:

Definition at line 42 of file CSSRegistry.py.

00042 
00043     def getRel(self):
00044         return self._data['rel']

Here is the call graph for this function:

Definition at line 61 of file CSSRegistry.py.

00061 
00062     def getRendering(self):
00063         return self._data['rendering']

Here is the call graph for this function:

Definition at line 50 of file CSSRegistry.py.

00050 
00051     def getTitle(self):
00052         result = self._data['title']
00053         if result == "":
00054             result = None
00055         return result

Here is the call graph for this function:

Definition at line 78 of file CSSRegistry.py.

00078 
00079     def setCompression(self, compression):
00080         self._data['compression'] = compression
00081 
00082 InitializeClass(Stylesheet)
00083 

Here is the call graph for this function:

Definition at line 38 of file CSSRegistry.py.

00038 
00039     def setMedia(self, media):
00040         self._data['media'] = media

Here is the call graph for this function:

Definition at line 46 of file CSSRegistry.py.

00046 
00047     def setRel(self, rel):
00048         self._data['rel'] = rel

Here is the call graph for this function:

Definition at line 65 of file CSSRegistry.py.

00065 
00066     def setRendering(self, rendering):
00067         self._data['rendering'] = rendering

Here is the call graph for this function:

Definition at line 57 of file CSSRegistry.py.

00057 
00058     def setTitle(self, title):
00059         self._data['title'] = title

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

tuple ResourceRegistries.tools.CSSRegistry.Stylesheet.security = ClassSecurityInfo() [static]

Definition at line 20 of file CSSRegistry.py.


The documentation for this class was generated from the following file: