Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
CMFCore.exportimport.tests.test_skins.DummySkinsTool Class Reference
Inheritance diagram for CMFCore.exportimport.tests.test_skins.DummySkinsTool:
Inheritance graph
[legend]
Collaboration diagram for CMFCore.exportimport.tests.test_skins.DummySkinsTool:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def getId
def getSkinPaths
def addSkinSelection
def manage_skinLayers

Static Public Attributes

string meta_type = 'Dummy Skins Tool'
string default_skin = 'default_skin'
string request_varname = 'request_varname'
 allow_any = False
 cookie_persistence = False
 getSkinSelections = _getSelections

Private Member Functions

def _getSelections

Private Attributes

 _selections

Detailed Description

Definition at line 172 of file test_skins.py.


Constructor & Destructor Documentation

def CMFCore.exportimport.tests.test_skins.DummySkinsTool.__init__ (   self,
  selections = None,
  fsdvs = () 
)

Definition at line 182 of file test_skins.py.

00182 
00183     def __init__(self, selections=None, fsdvs=()):
00184         self._selections = selections or {}
00185 
00186         for id, obj in fsdvs:
00187             self._setObject(id, obj)


Member Function Documentation

Definition at line 188 of file test_skins.py.

00188 
00189     def _getSelections(self):
00190         return self._selections

Here is the caller graph for this function:

def CMFCore.exportimport.tests.test_skins.DummySkinsTool.addSkinSelection (   self,
  skinname,
  skinpath,
  test = 0,
  make_default = 0 
)

Definition at line 201 of file test_skins.py.

00201 
00202     def addSkinSelection(self, skinname, skinpath, test=0, make_default=0):
00203         self._selections[skinname] = skinpath

Here is the call graph for this function:

Definition at line 193 of file test_skins.py.

00193 
00194     def getId(self):
00195         return 'portal_skins'

Definition at line 196 of file test_skins.py.

00196 
00197     def getSkinPaths(self):
00198         result = list(self._selections.items())
00199         result.sort()
00200         return result

def CMFCore.exportimport.tests.test_skins.DummySkinsTool.manage_skinLayers (   self,
  chosen = (),
  add_skin = 0,
  del_skin = 0,
  skinname = '',
  skinpath = '',
  REQUEST = None 
)

Definition at line 205 of file test_skins.py.

00205 
00206                           skinname='', skinpath='', REQUEST=None):
00207         if del_skin:
00208             for skin_name in chosen:
00209                 del self._selections[skin_name]
00210 

Here is the caller graph for this function:


Member Data Documentation

Definition at line 183 of file test_skins.py.

Definition at line 179 of file test_skins.py.

Definition at line 180 of file test_skins.py.

Definition at line 177 of file test_skins.py.

Definition at line 191 of file test_skins.py.

Definition at line 176 of file test_skins.py.

Definition at line 178 of file test_skins.py.


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