Changeset 45 for waeup_product/trunk/Extensions
- Timestamp:
- 11 Oct 2005, 12:10:17 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/Extensions/install.py
r28 r45 29 29 if CPSSubscriptions: 30 30 ptypes = "('Portal', 'CPSMailAccess Message', 'CPSMailAccess Box', 'CPSMailAccess Folder',"\ 31 + "' StudentFolder', 'Student', 'Jamb')"31 + "'University', 'StudentsFolder', 'Student', 'Jamb')" 32 32 condition = "object.portal_type not in %s" % ptypes 33 33 … … 42 42 self.verifyAction('portal_subscriptions', **action) 43 43 if CPSForum: 44 ptypes = "(' StudentFolder', 'Student', 'Jamb')"44 ptypes = "('University', 'StudentsFolder', 'Student', 'Jamb')" 45 45 condition = "object.portal_type not in %s" % ptypes 46 46 … … 70 70 'id' : 'new_student', 71 71 'name' : 'Add Student', 72 'action' : 'string:${object/absolute_url}/create_student ',72 'action' : 'string:${object/absolute_url}/create_student_form', 73 73 'permission': (View), 74 'condition' : 'python: member and here.portal_type == "Student Folder"',74 'condition' : 'python: member and here.portal_type == "StudentsFolder"', 75 75 'category' : 'student', 76 76 'visible' : 1, … … 88 88 'id' : 'add_jamb', 89 89 'name' : 'Add Jamb Data', 90 'action' : 'string:${object/absolute_url}/create_jamb ',90 'action' : 'string:${object/absolute_url}/create_jamb_form', 91 91 'permission': (), 92 92 'condition' : 'python:here.portal_type != "Jamb" and len(object.contentItems()) == 0', … … 119 119 dtypes = portal.getWAeUPTypes() 120 120 self.verifyFlexibleTypes(dtypes) 121 self.allowContentTypes(' StudentFolder', ('Workspace','Section',))121 self.allowContentTypes('University', ('Workspace','Section',)) 122 122 #self.allowContentTypes('Student', ('Workspace', 'Section')) 123 ptypes = { 124 'StudentFolder' : { 125 'allowed_content_types': ('Student',), 126 'typeinfo_name': 'WAeUP: StudentFolder', 127 'add_meta_type': 'Factory-based Type Information', 128 }, 129 'Student' : { 130 'allowed_content_types': ('Jamb',), 131 'typeinfo_name': 'WAeUP: Student', 132 'add_meta_type': 'Factory-based Type Information', 133 }, 134 } 135 self.verifyContentTypes(ptypes) 123 ## ptypes = { 124 ## 'University' : { 125 ## 'allowed_content_types': ('StudentsFolder',), 126 ## 'typeinfo_name': 'University', 127 ## 'add_meta_type': 'Factory-based Type Information', 128 ## }, 129 ## 'StudentsFolder' : { 130 ## 'allowed_content_types': ('Student',), 131 ## 'typeinfo_name': 'StudentFolder', 132 ## 'add_meta_type': 'Factory-based Type Information', 133 ## }, 134 ## 'Student' : { 135 ## 'allowed_content_types': ('Jamb',), 136 ## 'typeinfo_name': 'Student', 137 ## 'add_meta_type': 'Factory-based Type Information', 138 ## }, 139 ## } 140 ## self.verifyContentTypes(ptypes) 136 141 ########################################## 137 142 # Schemas … … 179 184 } 180 185 181 se_chains = { 'StudentFolder': 'waeup_section_wf', 186 se_chains = { 'University': 'waeup_section_wf', 187 'StudentsFolder': 'waeup_section_wf', 182 188 'Student': 'waeup_section_wf', 183 189 'Jamb': 'waeup_section_wf',
Note: See TracChangeset for help on using the changeset viewer.