Back to index

plone3  3.1.7
Private Member Functions
CMFCore.exportimport.tests.test_properties._SitePropertiesSetup Class Reference
Inheritance diagram for CMFCore.exportimport.tests.test_properties._SitePropertiesSetup:
Inheritance graph
[legend]
Collaboration diagram for CMFCore.exportimport.tests.test_properties._SitePropertiesSetup:
Collaboration graph
[legend]

List of all members.

Private Member Functions

def _initSite

Detailed Description

Definition at line 97 of file test_properties.py.


Member Function Documentation

def CMFCore.exportimport.tests.test_properties._SitePropertiesSetup._initSite (   self,
  foo = 2,
  bar = 2 
) [private]

Definition at line 99 of file test_properties.py.

00099 
00100     def _initSite(self, foo=2, bar=2):
00101         from Products.CMFCore.PortalObject import PortalObjectBase
00102 
00103         self.root.site = PortalObjectBase('foo_site')
00104         site = self.root.site
00105 
00106         if foo > 0:
00107             site._setProperty('foo', '', 'string')
00108         if foo > 1:
00109             site._updateProperty('foo', 'Foo')
00110 
00111         if bar > 0:
00112             site._setProperty( 'bar', (), 'tokens' )
00113             site._setProperty( 'moo', (), 'tokens' )
00114         if bar > 1:
00115             site._updateProperty( 'bar', ('Bar',) )
00116             site.moo = ['Moo']
00117 
00118         return site
00119 


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