Back to index

plone3  3.1.7
Static Public Attributes | Private Member Functions | Static Private Attributes
CMFCore.exportimport.tests.test_contenttyperegistry._ContentTypeRegistrySetup Class Reference
Inheritance diagram for CMFCore.exportimport.tests.test_contenttyperegistry._ContentTypeRegistrySetup:
Inheritance graph
[legend]
Collaboration diagram for CMFCore.exportimport.tests.test_contenttyperegistry._ContentTypeRegistrySetup:
Collaboration graph
[legend]

List of all members.

Static Public Attributes

list MAJOR_MINOR_ID = _TEST_PREDICATES[0]
list MAJOR = _TEST_PREDICATES[0]
list MINOR = _TEST_PREDICATES[0]
list MAJOR_MINOR_TYPENAME = _TEST_PREDICATES[0]
list EXTENSION_ID = _TEST_PREDICATES[1]
list EXTENSIONS = _TEST_PREDICATES[1]
list EXTENSION_TYPENAME = _TEST_PREDICATES[1]
list MIMETYPE_REGEX_ID = _TEST_PREDICATES[2]
list MIMETYPE_REGEX = _TEST_PREDICATES[2]
list MIMETYPE_REGEX_TYPENAME = _TEST_PREDICATES[2]
list NAME_REGEX_ID = _TEST_PREDICATES[3]
list NAME_REGEX = _TEST_PREDICATES[3]
list NAME_REGEX_TYPENAME = _TEST_PREDICATES[3]

Private Member Functions

def _initSite

Static Private Attributes

string _EMPTY_EXPORT
string _WITH_POLICY_EXPORT

Detailed Description

Definition at line 93 of file test_contenttyperegistry.py.


Member Function Documentation

Definition at line 150 of file test_contenttyperegistry.py.

00150 
00151     def _initSite(self, mit_predikat=False):
00152         from Products.CMFCore.ContentTypeRegistry import ContentTypeRegistry
00153 
00154         self.root.site = Folder(id='site')
00155         site = self.root.site
00156         ctr = ContentTypeRegistry()
00157         site._setObject( ctr.getId(), ctr )
00158 
00159         if mit_predikat:
00160             for (predicate_id, predicate_type, edit_args, content_type_name
00161                 ) in _TEST_PREDICATES:
00162                 ctr.addPredicate(predicate_id, predicate_type) 
00163                 predicate = ctr.getPredicate(predicate_id)
00164                 predicate.edit(*edit_args)
00165                 ctr.assignTypeName(predicate_id, content_type_name)
00166 
00167         return site
00168 


Member Data Documentation

Initial value:
"""\
<?xml version="1.0"?>
<object name="content_type_registry" meta_type="Content Type Registry"/>
"""

Definition at line 109 of file test_contenttyperegistry.py.

Initial value:
"""\
<?xml version="1.0"?>
<object name="content_type_registry" meta_type="Content Type Registry">
 <predicate name="%s" content_type_name="%s"
predicate_type="major_minor">
  <argument value="%s"/>
  <argument value="%s"/>
 </predicate>
 <predicate name="%s" content_type_name="%s"
predicate_type="extension">
  <argument value="%s"/>
 </predicate>
 <predicate name="%s" content_type_name="%s"
predicate_type="mimetype_regex">
  <argument value="%s"/>
 </predicate>
 <predicate name="%s" content_type_name="%s"
predicate_type="name_regex">
  <argument value="%s"/>
 </predicate>
</object>
"""

Definition at line 114 of file test_contenttyperegistry.py.

Definition at line 99 of file test_contenttyperegistry.py.

Definition at line 101 of file test_contenttyperegistry.py.

Definition at line 100 of file test_contenttyperegistry.py.

Definition at line 96 of file test_contenttyperegistry.py.

Definition at line 95 of file test_contenttyperegistry.py.

Definition at line 98 of file test_contenttyperegistry.py.

Definition at line 103 of file test_contenttyperegistry.py.

Definition at line 102 of file test_contenttyperegistry.py.

Definition at line 104 of file test_contenttyperegistry.py.

Definition at line 97 of file test_contenttyperegistry.py.

Definition at line 106 of file test_contenttyperegistry.py.

Definition at line 105 of file test_contenttyperegistry.py.

Definition at line 107 of file test_contenttyperegistry.py.


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