Back to index

plone3  3.1.7
Static Public Attributes | Private Member Functions | Static Private Attributes
CMFFormController.tests.test_exportimport._CMFFormControllerSetup Class Reference
Inheritance diagram for CMFFormController.tests.test_exportimport._CMFFormControllerSetup:
Inheritance graph
[legend]
Collaboration diagram for CMFFormController.tests.test_exportimport._CMFFormControllerSetup:
Collaboration graph
[legend]

List of all members.

Static Public Attributes

string V_OBJECT_ID = 'v_object_id'
string V_CONTEXT_TYPE = 'v_context_type'
string V_BUTTON = 'v_button'
list V_VALIDATORS = ['validator1', 'validator2']
string A_OBJECT_ID = 'a_object_id'
string A_STATUS = 'a_status'
string A_CONTEXT_TYPE = 'a_context_type'
string A_BUTTON = 'a_button'
string A_ACTION_TYPE = 'redirect_to'
string A_ACTION_ARG = 'string:action_arg'

Private Member Functions

def _initSite

Static Private Attributes

string _EMPTY_EXPORT
string _WITH_INFO_EXPORT
string _WITH_PARTIAL_INFO_EXPORT

Detailed Description

Definition at line 23 of file test_exportimport.py.


Member Function Documentation

def CMFFormController.tests.test_exportimport._CMFFormControllerSetup._initSite (   self,
  with_info = False 
) [private]

Definition at line 95 of file test_exportimport.py.

00095 
00096     def _initSite(self, with_info=False):
00097         from OFS.Folder import Folder
00098         from Products.CMFFormController.FormController import FormController
00099 
00100         self.root.site = Folder(id='site')
00101         site = self.root.site
00102         mgr = FormController()
00103         site._setObject( mgr.getId(), mgr )
00104 
00105         if with_info:
00106             fc = getattr(site, mgr.getId())
00107 
00108             fc.actions.set(FormAction(self.A_OBJECT_ID, self.A_STATUS, self.A_CONTEXT_TYPE, self.A_BUTTON, self.A_ACTION_TYPE, self.A_ACTION_ARG))
00109             fc.validators.set(FormValidator(self.V_OBJECT_ID, self.V_CONTEXT_TYPE, self.V_BUTTON, ','.join(self.V_VALIDATORS)))
00110 
00111         return site
00112 


Member Data Documentation

Initial value:
"""\
<?xml version="1.0"?>
<cmfformcontroller>
</cmfformcontroller>
"""

Definition at line 37 of file test_exportimport.py.

Initial value:
"""\
<?xml version="1.0"?>
<cmfformcontroller>
   <action
 object_id="%s"
 status="%s"
 context_type="%s"
 button="%s"
 action_type="%s"
 action_arg="%s"
 />
   <validator
 object_id="%s"
 context_type="%s"
 button="%s"
 validators="%s"
 />
</cmfformcontroller>
"""

Definition at line 43 of file test_exportimport.py.

Initial value:
"""\
<?xml version="1.0"?>
<cmfformcontroller>
   <action
 object_id="%s"
 status="%s"
 action_type="%s"
 action_arg="%s"
 />
   <validator
 object_id="%s"
 validators="%s"
 />
</cmfformcontroller>
"""

Definition at line 73 of file test_exportimport.py.

Definition at line 35 of file test_exportimport.py.

Definition at line 34 of file test_exportimport.py.

Definition at line 33 of file test_exportimport.py.

Definition at line 32 of file test_exportimport.py.

Definition at line 30 of file test_exportimport.py.

Definition at line 31 of file test_exportimport.py.

Definition at line 27 of file test_exportimport.py.

Definition at line 26 of file test_exportimport.py.

Definition at line 25 of file test_exportimport.py.

Definition at line 28 of file test_exportimport.py.


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