Changeset 119 for waeup_product/trunk/Extensions
- Timestamp:
- 28 Oct 2005, 19:44:25 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/Extensions/install.py
r115 r119 29 29 product_name = self.product_name 30 30 self.log("Starting %(product_name)s install" % vars() ) 31 31 32 32 # Roles and Permissions ###( 33 33 # … … 48 48 waeup_perms = { 49 49 UniversityManage: 50 ('Manager', 'SectionManager','UniversityManager', 50 ('Manager', 'SectionManager','UniversityManager', 51 51 ), 52 52 StudentManage: 53 ('Manager', 'SectionManager','UniversityManager', 'StudentManager' 53 ('Manager', 'SectionManager','UniversityManager', 'StudentManager' 54 54 ), 55 55 FacultyManage: 56 ('Manager', 'SectionManager','UniversityManager', 'FacultyManager' 56 ('Manager', 'SectionManager','UniversityManager', 'FacultyManager' 57 57 ), 58 58 DepartmentManage: 59 ('Manager', 'SectionManager','UniversityManager', 'DepartmentManager' 59 ('Manager', 'SectionManager','UniversityManager', 'DepartmentManager' 60 60 ), 61 61 CourseManage: 62 ('Manager', 'SectionManager','UniversityManager', 'CourseManager' 62 ('Manager', 'SectionManager','UniversityManager', 'CourseManager' 63 63 ), 64 64 } … … 68 68 69 69 ########################################## 70 # Actions 70 # Actions 71 71 ########################################## 72 72 waeup_ptypes = "'University','StudentsFolder','Student','Jamb','Faculty','Department','Course'" 73 waeup_ptypes += ",'AccoFolder','Accommodation','StudentPersonal','Academics '"73 waeup_ptypes += ",'AccoFolder','Accommodation','StudentPersonal','AcademicsFolder'" 74 74 if CPSSubscriptions: ###( 75 75 76 76 ptypes = "('Portal', 'CPSMailAccess Message', 'CPSMailAccess Box', 'CPSMailAccess Folder',"\ 77 77 + waeup_ptypes + ")" 78 78 condition = "object.portal_type not in %s" % ptypes 79 79 80 80 action = {'id' : 'notify_content', 81 81 'name' : 'action_notify_content', … … 89 89 if CPSForum: 90 90 condition = "object.portal_type not in (%s)" % waeup_ptypes 91 91 92 92 action = {'id' : 'activate_comments', 93 93 'name': 'action_activate_comments', … … 136 136 } 137 137 self.verifyAction('portal_discussion', **action) 138 138 139 139 ###) 140 140 … … 144 144 actions = ( { 'tool' : 'portal_actions', 145 145 'id' : 'student_administration', 146 'name' : 'Student Administration',146 'name' : 'Students', 147 147 'action' : 'string:${portal_url}/sections/waeup/students', 148 148 'permission': (View, ), … … 161 161 'id' : 'accomodation', 162 162 'name' : 'Accommodation', 163 'action' : 'string:${portal_url}/sections/waeup/ Accommodation/accommodation_index_html',163 'action' : 'string:${portal_url}/sections/waeup/accommodation/accommodation_index_html', 164 164 'permissions': (View), 165 165 #'permissions': (ModifyPortalContent,UniversityManage,StudentManage), … … 226 226 ###) 227 227 228 # skins 228 # skins 229 229 ########################################## 230 230 self.log("Verifying %(product_name)s skinss" % vars()) … … 235 235 self.verifySkins(wskins) 236 236 self.resetSkinCache() 237 237 238 238 ########################################## 239 239 # portal types … … 265 265 # Groups 266 266 ########################################## 267 267 268 268 self.installCustomWorkflows() 269 269 self.verifyWorkflowAssociation() 270 270 271 271 self.log("End of specific %(product_name)s install" % vars()) 272 272 self.finalize() 273 273 274 274 275 275 def installCustomWorkflows(self): … … 285 285 """Verify workflow association 286 286 """ 287 ws_chains = { 287 ws_chains = { 288 288 'Student': 'waeup_workspace_wf', 289 289 'Jamb': 'waeup_workspace_wf', … … 319 319 for delEntry in ('StudentManager',): 320 320 if delEntry in groups.listEntryIds(): 321 groups.deleteEntry(delEntry) 321 groups.deleteEntry(delEntry) 322 322 for newEntry in ('Students',): 323 323 if newEntry not in groups.listEntryIds(): 324 groups.createEntry({'group': newEntry, 325 'members': []}) 324 groups.createEntry({'group': newEntry, 325 'members': []}) 326 326 #groups.manage_setLocalGroupRoles(groupid = 'StudentManager',roles=('Manager',)) 327 327 #groups.manage_setLocalGroupRoles(groupid = 'Students',roles=('Contributor',))
Note: See TracChangeset for help on using the changeset viewer.