Changeset 87 for waeup_product/trunk/Extensions
- Timestamp:
- 26 Oct 2005, 06:35:43 (19 years ago)
- File:
-
- 1 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()
Note: See TracChangeset for help on using the changeset viewer.