Changeset 100
- Timestamp:
- 27 Oct 2005, 09:27:23 (19 years ago)
- Location:
- waeup_product/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/Extensions/install.py
r96 r100 138 138 139 139 ########################################## 140 # studentactions ###(140 # main_tab actions ###( 141 141 ########################################## 142 142 actions = ( { 'tool' : 'portal_actions', 143 'id' : ' checkadmission',144 'name' : ' Check Admission',145 'action' : 'string:${ object/absolute_url}/check_admission',143 'id' : 'student_administration', 144 'name' : 'Student Administration', 145 'action' : 'string:${portal_url}/sections/waeup/students', 146 146 'permission': (View, ), 147 'condition' : 'python: not member', 148 'category' : 'student', 149 'visible' : 1, 150 }, 151 ## { 'tool' : 'portal_actions', 152 ## 'id' : 'new_student', 153 ## 'name' : 'Add Student', 154 ## 'action' : 'string:${object/absolute_url}/create_student_form', 155 ## 'permission': (View), 156 ## 'condition' : 'python: 0 and member and here.portal_type == "StudentsFolder"', 157 ## 'category' : 'student', 158 ## 'visible' : 1, 159 ## }, 160 { 'tool' : 'portal_actions', 161 'id' : 'edit_student', 162 'name' : 'Edit Student', 163 'action' : 'cpsdocument_edit_form', 164 'permission': ( ), 165 'condition' : 'python: 0 and member and here.portal_type == "Student"', 166 'category' : 'student', 147 'category' : 'main_tabs', 167 148 'visible' : 1, 168 149 }, 169 150 { 'tool' : 'portal_actions', 170 'id' : 'add_jamb', 171 'name' : 'Add Student JAMB', 172 'action' : 'string:${object/absolute_url}/create_jamb', 173 'permission': (), 174 'condition' : 'python: member and here.portal_type in ("StudentsFolder",) and "StudentManager" in member.getGroups()', 175 'category' : 'student', 151 'id' : 'faculties', 152 'name' : 'Faculties', 153 'action' : 'string:${portal_url}/sections/waeup/faculties', 154 'permission': (View ), 155 'category' : 'main_tabs', 176 156 'visible' : 1, 177 157 }, 178 { 'tool' : 'portal_actions', 179 'id' : 'add_faculty', 180 'name' : 'Add New Faculty', 181 'action' : 'string:${object/absolute_url}/addFaculty', 182 'permission': (), 183 'condition' : 'python: member and here.portal_type in ("University",) and "StudentManager" in member.getGroups()', 184 'category' : 'student', 185 'visible' : 1, 186 }, 187 { 'tool' : 'portal_actions', 188 'id' : 'add_department', 189 'name' : 'Add New Department', 190 'action' : 'string:${object/absolute_url}/addDepartment', 191 'permission': (), 192 'condition' : 'python: member and here.portal_type in ("Faculty",) and "StudentManager" in member.getGroups()', 193 'category' : 'student', 194 'visible' : 1, 195 }, 196 { 'tool' : 'portal_actions', 197 'id' : 'add_course', 198 'name' : 'Add New Course', 199 'action' : 'string:${object/absolute_url}/addCourse', 200 'permission': (), 201 'condition' : 'python: member and here.portal_type in ("Department",) and "StudentManager" in member.getGroups()', 202 'category' : 'student', 203 'visible' : 1, 204 }, 205 { 'tool' : 'portal_actions', 206 'id' : 'add_personal', 207 'name' : 'Add personal Data', 208 'action' : 'string:${object/absolute_url}/create_personal_form', 209 'permission': (), 210 'condition' : 'python: 0 and member and not here.portal_type in ("Jamb","StudentsFolder") and not "StudentManager" in member.getGroups()', 211 'category' : 'student', 212 'visible' : 1, 213 }, 214 { 'tool' : 'portal_actions', 215 'id' : 'edit_jamb', 216 'name' : 'Edit Jamb Data', 217 'action' : 'cpsdocument_edit_form', 218 'permission': ( ), 219 'condition' : 'python: member and here.portal_type in ("Student",) and "StudentManager" in member.getGroups()', 220 'category' : 'student', 221 'visible' : 1, 222 }, 158 ## { 'tool' : 'portal_actions', 159 ## 'id' : 'add_jamb', 160 ## 'name' : 'Add Student JAMB', 161 ## 'action' : 'string:${object/absolute_url}/create_jamb', 162 ## 'permission': (), 163 ## 'condition' : 'python: member and here.portal_type in ("StudentsFolder",) and "StudentManager" in member.getGroups()', 164 ## 'category' : 'student', 165 ## 'visible' : 1, 166 ## }, 167 ## { 'tool' : 'portal_actions', 168 ## 'id' : 'add_faculty', 169 ## 'name' : 'Add New Faculty', 170 ## 'action' : 'string:${object/absolute_url}/addFaculty', 171 ## 'permission': (), 172 ## 'condition' : 'python: member and here.portal_type in ("University",) and "StudentManager" in member.getGroups()', 173 ## 'category' : 'student', 174 ## 'visible' : 1, 175 ## }, 176 ## { 'tool' : 'portal_actions', 177 ## 'id' : 'add_department', 178 ## 'name' : 'Add New Department', 179 ## 'action' : 'string:${object/absolute_url}/addDepartment', 180 ## 'permission': (), 181 ## 'condition' : 'python: member and here.portal_type in ("Faculty",) and "StudentManager" in member.getGroups()', 182 ## 'category' : 'student', 183 ## 'visible' : 1, 184 ## }, 185 ## { 'tool' : 'portal_actions', 186 ## 'id' : 'add_course', 187 ## 'name' : 'Add New Course', 188 ## 'action' : 'string:${object/absolute_url}/addCourse', 189 ## 'permission': (), 190 ## 'condition' : 'python: member and here.portal_type in ("Department",) and "StudentManager" in member.getGroups()', 191 ## 'category' : 'student', 192 ## 'visible' : 1, 193 ## }, 194 ## { 'tool' : 'portal_actions', 195 ## 'id' : 'add_personal', 196 ## 'name' : 'Add personal Data', 197 ## 'action' : 'string:${object/absolute_url}/create_personal_form', 198 ## 'permission': (), 199 ## 'condition' : 'python: 0 and member and not here.portal_type in ("Jamb","StudentsFolder") and not "StudentManager" in member.getGroups()', 200 ## 'category' : 'student', 201 ## 'visible' : 1, 202 ## }, 203 ## { 'tool' : 'portal_actions', 204 ## 'id' : 'edit_jamb', 205 ## 'name' : 'Edit Jamb Data', 206 ## 'action' : 'cpsdocument_edit_form', 207 ## 'permission': ( ), 208 ## 'condition' : 'python: member and here.portal_type in ("Student",) and "StudentManager" in member.getGroups()', 209 ## 'category' : 'student', 210 ## 'visible' : 1, 211 ## }, 223 212 ) 224 213 self.verifyActions(actions) … … 342 331 # 343 332 portlets = ( 344 {'identifier': 'waeup_main_tabs',345 'type': 'Custom Portlet',346 'slot': 'main_tabs',347 'order': 0,348 'render_method': 'portlet_main_navigation',349 'Title': 'main tabs',350 },333 ## {'identifier': 'waeup_main_tabs', 334 ## 'type': 'Custom Portlet', 335 ## 'slot': 'main_tabs', 336 ## 'order': 0, 337 ## 'render_method': 'portlet_main_navigation', 338 ## 'Title': 'main tabs', 339 ## }, 351 340 {'identifier': 'waeup_breadcrumbs', 352 341 'type': 'Breadcrumbs Portlet', … … 359 348 'order': 0, 360 349 }, 350 {'identifier': 'waeup_main_tab_actions', 351 'type': 'Actions Portlet', 352 'slot': 'main_tabs', 353 'order': 0, 354 'categories': ['main_tabs',], 355 'Title': 'waep_main_tab_actions', 356 }, 361 357 {'identifier': 'waeup_object_actions', 362 358 'type': 'Actions Portlet', 363 359 'slot': 'waeup_object_actions', 364 360 'order': 0, 365 'categories': ['object' ],361 'categories': ['object',], 366 362 'Title': 'waep_manager_actions', 367 363 }, -
waeup_product/trunk/skins/waeup_default/getWAeUPTypes.py
r99 r100 211 211 ###) 212 212 213 course_type = { ###( 214 'title': 'WAeUP Course', 215 'description': '', 216 'content_icon': 'student.gif', 217 'content_meta_type': 'Course', 218 'product': 'WAeUP', 219 'factory': 'addCourse', 220 'immediate_view': 'cpsdocument_view', 221 'global_allow': True, 222 'filter_content_types': True, 223 'allowed_content_types': (), 224 'allow_discussion': False, 225 'cps_is_searchable': True, 226 'cps_proxy_type': 'document', 227 'cps_display_as_document_in_listing': True, 228 'schemas': ['metadata','common','course'], 229 'layouts': ['course',], 230 'flexible_layouts': (), 231 'layout_clusters': ['metadata:metadata','coursetotal:metadata,course'], 232 'cps_section_wf': 'waeup_section_wf', 233 'use_content_status_history': 0, 234 'actions': ( 235 {'id': 'view', 236 'name': 'action_view', 237 'action': 'string:${object_url}/course_index_html', 238 'condition': '', 239 'permission': ('View',), 240 'category': 'object', 241 'visible': True,}, 242 {'id': 'edit', 243 'name': 'action_edit', 244 'action': 'string:${object_url}/waeup_edit_form', 245 'condition': '', 246 'permission': (CourseManage,), 247 'category': 'object', 248 'visible': True,}, 249 {'id': 'contents', 250 'name': 'action_folder_contents', 251 'action': 'folder_contents', 252 'condition': "python:member and 'Manager' in member.getRoles()", 253 'permissions': (ModifyPortalContent,UniversityManage,)}, 254 {'id': 'edit', 255 'name': 'action_edit', 256 'action': 'cpsdocument_edit_form', 257 'condition': "python:member and 'Manager' in member.getRoles()", 258 'permissions': (ModifyPortalContent,UniversityManage,)}, 259 {'id': 'metadata', 260 'name': 'action_metadata', 261 'action': 'cpsdocument_metadata', 262 'condition': "python:member and 'Manager' in member.getRoles()", 263 'permissions': (ModifyPortalContent,)}, 264 {'id': 'localroles', 265 'name': 'action_local_roles', 266 'action': 'folder_localrole_form', 267 'condition': 'python:0', 268 'permissions': (ModifyPortalContent,)}, 269 ) 270 } 271 ###) 272 213 273 jamb_type = { ###( 214 274 'title': "JAMB data",
Note: See TracChangeset for help on using the changeset viewer.