Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
CMFPlone.exportimport.tests.testFactoryTool.PortalFactoryXMLAdapterTests Class Reference
Inheritance diagram for CMFPlone.exportimport.tests.testFactoryTool.PortalFactoryXMLAdapterTests:
Inheritance graph
[legend]
Collaboration diagram for CMFPlone.exportimport.tests.testFactoryTool.PortalFactoryXMLAdapterTests:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def setUp

Public Attributes

 site

Private Member Functions

def _getTargetClass
def _populate

Private Attributes

 _obj
 _BODY

Detailed Description

Definition at line 39 of file testFactoryTool.py.


Member Function Documentation

Definition at line 41 of file testFactoryTool.py.

00041 
00042     def _getTargetClass(self):
00043         from Products.CMFPlone.exportimport.factorytool \
00044                     import PortalFactoryXMLAdapter
00045         return PortalFactoryXMLAdapter

Definition at line 46 of file testFactoryTool.py.

00046 
00047     def _populate(self, obj):
00048         obj.manage_setPortalFactoryTypes(listOfTypeIds=('Folder', 'Document'))

Here is the caller graph for this function:

Definition at line 49 of file testFactoryTool.py.

00049 
00050     def setUp(self):
00051         setHooks()
00052         self.site = Folder('site')
00053         gen = PloneGenerator()
00054         gen.enableSite(self.site)
00055         setSite(self.site)
00056         sm = getSiteManager()
00057         self.site.portal_types = DummyTypesTool()
00058         sm.registerUtility(self.site.portal_types, ITypesTool)
00059         self.site.portal_factory = FactoryTool()
00060 
00061         self._obj = self.site.portal_factory
00062         self._BODY = _FACTORYTOOL_XML
00063 


Member Data Documentation

Definition at line 61 of file testFactoryTool.py.

Definition at line 60 of file testFactoryTool.py.

Definition at line 51 of file testFactoryTool.py.


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