Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions
plone.app.viewletmanager.tests.test_exportimport._ViewletSettingsStorageSetup Class Reference
Inheritance diagram for plone.app.viewletmanager.tests.test_exportimport._ViewletSettingsStorageSetup:
Inheritance graph
[legend]
Collaboration diagram for plone.app.viewletmanager.tests.test_exportimport._ViewletSettingsStorageSetup:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def setUp

Public Attributes

 site
 storage

Static Public Attributes

 layer = Layer

Private Member Functions

def _populateSite

Detailed Description

Definition at line 175 of file test_exportimport.py.


Member Function Documentation

def plone.app.viewletmanager.tests.test_exportimport._ViewletSettingsStorageSetup._populateSite (   self,
  order = {},
  hidden = {} 
) [private]

Definition at line 191 of file test_exportimport.py.

00191 
00192     def _populateSite(self, order={}, hidden={}):
00193         storage = self.storage
00194         for skinname in order.keys():
00195             for manager in order[skinname].keys():
00196                 self.storage.setOrder(manager, skinname,
00197                                             order[skinname][manager])
00198 
00199         for skinname in hidden.keys():
00200             for manager in hidden[skinname].keys():
00201                 self.storage.setHidden(manager, skinname,
00202                                             hidden[skinname][manager])
00203 

Here is the caller graph for this function:

Definition at line 179 of file test_exportimport.py.

00179 
00180     def setUp(self):
00181         BaseRegistryTests.setUp(self)
00182         setHooks()
00183         self.root.site = Folder(id='site')
00184         self.site = self.root.site
00185         gen = PloneGenerator()
00186         gen.enableSite(self.site)
00187         setSite(self.site)
00188         sm = getSiteManager(self.site)
00189         sm.registerUtility(ViewletSettingsStorage(), IViewletSettingsStorage)
00190         self.storage = getUtility(IViewletSettingsStorage)


Member Data Documentation

Definition at line 177 of file test_exportimport.py.

Definition at line 183 of file test_exportimport.py.

Definition at line 189 of file test_exportimport.py.


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