Changeset 87 for waeup_product
- Timestamp:
- 26 Oct 2005, 06:35:43 (19 years ago)
- Location:
- waeup_product/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/Extensions/install.py
r84 r87 30 30 self.log("Starting %(product_name)s install" % vars() ) 31 31 32 # Roles and Permissions 32 # Roles and Permissions ###( 33 33 # 34 34 self.verifyRoles(( … … 43 43 # A role that can manage a Course. 44 44 'CourseManager', 45 # The Student Role 46 'Student', 45 47 )) 46 48 waeup_perms = { … … 62 64 } 63 65 self.setupPortalPermissions(waeup_perms) 66 67 ###) 64 68 65 69 ########################################## … … 131 135 self.verifyAction('portal_discussion', **action) 132 136 133 ###)134 135 # portlets ###(136 #137 portlets = (138 {'identifier': 'waeup_main_tabs',139 'type': 'Custom Portlet',140 'slot': 'main_tabs',141 'order': 0,142 'render_method': 'portlet_main_navigation',143 'Title': 'main tabs',144 },145 {'identifier': 'waeup_breadcrumbs',146 'type': 'Breadcrumbs Portlet',147 'slot': 'waeup_breadcrumbs',148 'first_item': 2,149 'display_site_root': 0,150 'Title': 'waeup_breadcrumbs',151 'display': 'horizontal_trail',152 'display_hidden_folders': 0,153 'order': 0,154 },155 {'identifier': 'waeup_object_actions',156 'type': 'Actions Portlet',157 'slot': 'waeup_object_actions',158 'order': 0,159 'categories': ['object'],160 'Title': 'waep_manager_actions',161 },162 {'identifier': 'waeup_left_top',163 'type': 'Custom Portlet',164 'slot': 'left_top',165 'order': 0,166 'render_method': 'portlet_session_info',167 'Title': 'Session Info',168 },169 )170 self.verifyPortletContainer(self.portal.sections.waeup)171 self.verifyPortlets(portlets, self.portal.sections.waeup)172 173 137 ###) 174 138 … … 367 331 member_role='SectionReviewer', 368 332 ) 369 sections.waeup.folder_localrole_add(member_ids=('group:StudentManager',),370 member_role='SectionManager',371 )333 ## sections.waeup.folder_localrole_add(member_ids=('group:StudentManager',), 334 ## member_role='SectionManager', 335 ## ) 372 336 sections.waeup.students.manage_setLocalGroupRoles(groupid = 'Students',roles=('Contributor',)) 373 337 sections.waeup.manage_setLocalGroupRoles(groupid = 'role:Anonymous',roles=('SectionReader',)) 338 # portlets ###( 339 # 340 portlets = ( 341 {'identifier': 'waeup_main_tabs', 342 'type': 'Custom Portlet', 343 'slot': 'main_tabs', 344 'order': 0, 345 'render_method': 'portlet_main_navigation', 346 'Title': 'main tabs', 347 }, 348 {'identifier': 'waeup_breadcrumbs', 349 'type': 'Breadcrumbs Portlet', 350 'slot': 'waeup_breadcrumbs', 351 'first_item': 2, 352 'display_site_root': 0, 353 'Title': 'waeup_breadcrumbs', 354 'display': 'horizontal_trail', 355 'display_hidden_folders': 0, 356 'order': 0, 357 }, 358 {'identifier': 'waeup_object_actions', 359 'type': 'Actions Portlet', 360 'slot': 'waeup_object_actions', 361 'order': 0, 362 'categories': ['object'], 363 'Title': 'waep_manager_actions', 364 }, 365 {'identifier': 'waeup_left_top', 366 'type': 'Custom Portlet', 367 'slot': 'left_top', 368 'order': 0, 369 'render_method': 'portlet_session_info', 370 'Title': 'Session Info', 371 }, 372 ) 373 installer.verifyPortletContainer(self.portal.sections.waeup) 374 installer.verifyPortlets(portlets, self.portal.sections.waeup) 375 376 ###) 377 374 378 return installer.logResult() -
waeup_product/trunk/Students.py
r60 r87 26 26 ob = StudentsFolder(id, **kw) 27 27 return CPSBase_adder(container, ob, REQUEST=REQUEST) 28 ###29 28 ###) 30 31 29 32 30 student_fti = { ###( -
waeup_product/trunk/University.py
r84 r87 14 14 # 15 15 16 class University(BaseBTreeFolder ,CPSDocument):16 class University(BaseBTreeFolder): 17 17 """ 18 18 Container for the various WAeUP containers -
waeup_product/trunk/skins/waeup_default/getWAeUPTypes.py
r84 r87 17 17 'product': 'WAeUP', 18 18 'factory': 'addUniversity', 19 'immediate_view': ' folder_view',19 'immediate_view': 'university_view', 20 20 'global_allow': 1, 21 21 'filter_content_types': 1, … … 29 29 'layout_clusters': ['metadata:metadata'], 30 30 'cps_section_wf': 'waeup_section_wf', 31 'actions _add': ({'id': 'view',31 'actions': ({'id': 'view', 32 32 'name': 'action_view', 33 33 'action': 'university_view', 34 'permissions': ( UniversityManage,)},34 'permissions': (View,)}, 35 35 {'id': 'addFaculty', 36 36 'name': 'Add a Faculty', 37 37 'action': 'folder_factories', 38 'permissions': ( UniversityManage,)},38 'permissions': (ModifyPortalContent,UniversityManage,)}, 39 39 {'id': 'contents', 40 40 'name': 'action_folder_contents', 41 41 'action': 'folder_contents', 42 'permissions': ( UniversityManage,)},42 'permissions': (ModifyPortalContent,UniversityManage,)}, 43 43 {'id': 'edit', 44 44 'name': 'action_edit', 45 45 'action': 'cpsdocument_edit_form', 46 46 #'action': 'cpsdocument_edit_form', 47 'permissions': ( UniversityManage,)},47 'permissions': (ModifyPortalContent,UniversityManage,)}, 48 48 {'id': 'metadata', 49 49 'name': 'action_metadata', 50 50 'action': 'cpsdocument_metadata', 51 51 'condition': 'not:portal/portal_membership/isAnonymousUser', 52 'permissions': ( View,)},52 'permissions': (ModifyPortalContent,)}, 53 53 {'id': 'localroles', 54 54 'name': 'action_local_roles', … … 82 82 'name': 'Students', 83 83 'action': 'students_folder_view', 84 'permissions': ( UniversityManage,)},84 'permissions': (View,)}, 85 85 { 86 86 'id' : 'add_content', … … 92 92 'name' : 'Add Student JAMB', 93 93 'action' : 'string:${object/absolute_url}/create_jamb', 94 'permissions': (UniversityManage, )},95 {'id': 'contents',96 'name': 'action_folder_contents',97 'action': 'folder_contents',98 'permissions': (UniversityManage,)},99 {'id': 'edit',100 'name': 'action_edit',101 'action': 'cpsdocument_edit_form',102 'permissions': (UniversityManage,)},103 {'id': 'metadata',104 'name': 'action_metadata',105 'action': 'cpsdocument_metadata',106 'permissions': (UniversityManage,)},107 {'id': 'localroles',108 'name': 'action_local_roles',109 'action': 'folder_localrole_form',110 'permissions': (UniversityManage,)},94 'permissions': (UniversityManage,StudentManage)}, 95 ## {'id': 'contents', 96 ## 'name': 'action_folder_contents', 97 ## 'action': 'folder_contents', 98 ## 'permissions': (UniversityManage,)}, 99 ## {'id': 'edit', 100 ## 'name': 'action_edit', 101 ## 'action': 'cpsdocument_edit_form', 102 ## 'permissions': (UniversityManage,)}, 103 ## {'id': 'metadata', 104 ## 'name': 'action_metadata', 105 ## 'action': 'cpsdocument_metadata', 106 ## 'permissions': (UniversityManage,)}, 107 ## {'id': 'localroles', 108 ## 'name': 'action_local_roles', 109 ## 'action': 'folder_localrole_form', 110 ## 'permissions': (UniversityManage,)}, 111 111 ) 112 112 } -
waeup_product/trunk/skins/waeup_default/university_view.py
r84 r87 6 6 7 7 member = context.portal_membership.getAuthenticatedMember() 8 #return context.folder_view() 8 9 if member: 9 10 if 'Manager' in member.getRoles():
Note: See TracChangeset for help on using the changeset viewer.