Back to index

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

List of all members.

Private Member Functions

def _initSite

Detailed Description

Definition at line 315 of file test_typeinfo.py.


Member Function Documentation

Definition at line 317 of file test_typeinfo.py.

00317 
00318     def _initSite(self, foo=0):
00319         self.root.site = Folder(id='site')
00320         site = self.root.site
00321         ttool = site.portal_types = TypesTool()
00322 
00323         if foo == 1:
00324             fti = _TI_LIST[0].copy()
00325             ttool._setObject(fti['id'], FactoryTypeInformation(**fti))
00326             sti = _TI_LIST[1].copy()
00327             ttool._setObject(sti['id'], ScriptableTypeInformation(**sti))
00328         elif foo == 2:
00329             fti = _TI_LIST_WITH_FILENAME[0].copy()
00330             ttool._setObject(fti['id'], FactoryTypeInformation(**fti))
00331             sti = _TI_LIST_WITH_FILENAME[1].copy()
00332             ttool._setObject(sti['id'], ScriptableTypeInformation(**sti))
00333 
00334         return site
00335 


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