Back to index

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

List of all members.

Public Member Functions

def __init__
def getInline
def setInline
def getCompression
def setCompression

Static Public Attributes

tuple security = ClassSecurityInfo()

Detailed Description

Definition at line 20 of file JSRegistry.py.


Constructor & Destructor Documentation

def ResourceRegistries.tools.JSRegistry.JavaScript.__init__ (   self,
  id,
  kwargs 
)

Definition at line 23 of file JSRegistry.py.

00023 
00024     def __init__(self, id, **kwargs):
00025         Resource.__init__(self, id, **kwargs)
00026         self._data['inline'] = kwargs.get('inline', False)
00027         self._data['compression'] = kwargs.get('compression', 'safe')

Here is the call graph for this function:


Member Function Documentation

Definition at line 37 of file JSRegistry.py.

00037 
00038     def getCompression(self):
00039         # as this is a new property, old instance might not have that value, so
00040         # return 'safe' as default
00041         compression = self._data.get('compression', 'safe')
00042         if compression in config.JS_COMPRESSION_METHODS:
00043             return compression
00044         return 'none'

Definition at line 29 of file JSRegistry.py.

00029 
00030     def getInline(self):
00031         return self._data['inline']

Here is the call graph for this function:

Definition at line 46 of file JSRegistry.py.

00046 
00047     def setCompression(self, compression):
00048         self._data['compression'] = compression
00049 
00050 InitializeClass(JavaScript)
00051 

Here is the call graph for this function:

Definition at line 33 of file JSRegistry.py.

00033 
00034     def setInline(self, inline):
00035         self._data['inline'] = inline

Here is the call graph for this function:


Member Data Documentation

tuple ResourceRegistries.tools.JSRegistry.JavaScript.security = ClassSecurityInfo() [static]

Definition at line 21 of file JSRegistry.py.


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