Changeset 119 for waeup_product/trunk/skins
- Timestamp:
- 28 Oct 2005, 19:44:25 (19 years ago)
- Location:
- waeup_product/trunk/skins
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/skins/waeup_default/getWAeUPTypes.py
r113 r119 51 51 'action': 'folder_contents', 52 52 'condition': "python:member and 'Manager' in member.getRoles()", 53 'condition': "",54 53 'permissions': (ModifyPortalContent,)}, 55 54 {'id': 'edit', … … 106 105 { 107 106 'id' : 'add_jamb', 108 'name' : 'Add Student JAMB',107 'name' : 'Add JAMB Data', 109 108 'action' : 'string:${object/absolute_url}/create_jamb', 110 109 'permissions': (UniversityManage,StudentManage)}, 111 {'id': 'localroles', 112 'name': 'delegate', 113 'action': 'folder_localrole_form', 114 'permissions': (UniversityManage,) 115 }, 110 { 111 'id': 'localroles', 112 'name': 'delegate', 113 'action': 'folder_localrole_form', 114 'permissions': (ModifyPortalContent), 115 'visible' : 0, 116 }, 116 117 ## {'id': 'contents', 117 118 ## 'name': 'action_folder_contents', … … 159 160 'permissions': (View,)}, 160 161 {'id': 'add_faculty', 161 'name': 'Add aFaculty',162 'name': 'Add Faculty', 162 163 'condition': "python:member and 'UniversityManager'in member.getRoles()", 163 164 'action' : 'string:${object/absolute_url}/create_common?type_name=Faculty', … … 208 209 'condition': "python:member and 'Manager' in member.getRoles()", 209 210 'permissions': (UniversityManage,)}, 210 211 {'id': 'localroles', 211 212 'name': 'delegate', 212 213 'action': 'folder_localrole_form', 213 'permissions': (UniversityManage,) 214 'permissions': (ModifyPortalContent), 215 'visible' : 0, 214 216 }, 215 217 ) … … 306 308 'permission': (ModifyPortalContent,StudentManage), 307 309 }, 308 310 {'id': 'localroles', 309 311 'name': 'delegate', 310 312 'action': 'folder_localrole_form', 311 'permissions': (UniversityManage,) 313 'permissions': (ModifyPortalContent), 314 'visible' : 0, 312 315 }, 313 316 { … … 407 410 'visible': True,}, 408 411 {'id': 'add_department', 409 'name': 'Add aDepartment',412 'name': 'Add Department', 410 413 'action' : 'string:${object/absolute_url}/create_common?type_name=Department', 411 414 'permissions': (ModifyPortalContent,UniversityManage,)}, … … 428 431 'name': 'delegate', 429 432 'action': 'folder_localrole_form', 430 'permissions': (UniversityManage,) 433 'permissions': (ModifyPortalContent), 434 'visible' : 0, 431 435 }, 432 436 ) … … 469 473 'visible': True,}, 470 474 {'id': 'create_course', 471 'name': 'Add aCourse',475 'name': 'Add Course', 472 476 'action' : 'string:${object/absolute_url}/create_course', 473 477 'permissions': (ModifyPortalContent,UniversityManage,)}, … … 490 494 'name': 'delegate', 491 495 'action': 'folder_localrole_form', 492 'permissions': (UniversityManage,) 493 }, 494 ) 495 } 496 ###) 497 498 course_type = { ###( 496 'permissions': (ModifyPortalContent), 497 'visible' : 0, 498 }, 499 ) 500 } 501 ###) 502 503 course_type = { ###( 499 504 'title': 'WAeUP Course', 500 505 'description': '', … … 550 555 'name': 'delegate', 551 556 'action': 'folder_localrole_form', 552 'permissions': (UniversityManage,) 557 'permissions': (ModifyPortalContent), 558 'visible' : 0, 553 559 }, 554 560 ) … … 586 592 'visible': True,}, 587 593 {'id': 'add_accommodation', 588 'name': 'Add anAccommodation Hall',589 'condition': "python:member and not 'Student'in member.getRoles()",594 'name': 'Add Accommodation Hall', 595 'condition': "python:member and 'UniversityManager'in member.getRoles()", 590 596 'action' : 'add_accommodation', 591 597 #'action': 'folder_factories', … … 606 612 ###) 607 613 608 accommodation = { ###( 614 accommodation = { ###( 609 615 'title': 'WAeUP Accommodation', 610 616 'description': '', -
waeup_product/trunk/skins/waeup_faculty/academics_view_all.pt
r114 r119 15 15 <metal:block fill-slot="main" 16 16 tal:define="items here/contentValues"> 17 <h2> The Faculties</h2>17 <h2>Academics (Faculties)</h2> 18 18 <table cellspacing="0" cellpadding="0"> 19 19 <tal:block condition="python: len(items)"> -
waeup_product/trunk/skins/waeup_student/accommodation_index_html.py
r103 r119 3 3 # $Id$ 4 4 5 """Default view for the Accommodation. 5 """Default view for the Accommodation. 6 6 """ 7 7 … … 10 10 roles = member.getRoles() 11 11 if 'Manager' in roles: 12 return context. folder_view()12 return context.accommodation_view_manager(psm=psm) 13 13 elif 'StudentManager' in roles: 14 14 return context.accommodation_view_manager(psm=psm) -
waeup_product/trunk/skins/waeup_student/accommodation_view_all.pt
r103 r119 12 12 tal:define="items here/contentValues" 13 13 > 14 <h2> <span tal:content="context/id" /></h2>14 <h2>Accomodation</h2> 15 15 <table cellspacing="0" cellpadding="0"> 16 16 <tal:block condition="python: len(items)"> … … 19 19 <a href="jamb" 20 20 tal:attributes="href item/absolute_url" 21 tal:content="item/ title_or_id"></a>21 tal:content="item/heading"></a> 22 22 </td> 23 23 </tr> -
waeup_product/trunk/skins/waeup_student/accommodation_view_manager.pt
r103 r119 12 12 tal:define="items here/contentValues" 13 13 > 14 <h2> <span tal:content="context/id" /></h2>14 <h2>Accomodation</h2> 15 15 <table cellspacing="0" cellpadding="0"> 16 16 <tal:block condition="python: len(items)"> … … 19 19 <a href="jamb" 20 20 tal:attributes="href item/absolute_url" 21 tal:content="item/ title_or_id"></a>21 tal:content="item/heading"></a> 22 22 </td> 23 23 </tr> -
waeup_product/trunk/skins/waeup_student/accommodation_view_student.pt
r103 r119 12 12 tal:define="items here/contentValues" 13 13 > 14 <h2> <span tal:content="context/title_or_id" /></h2>14 <h2>Accomodation</h2> 15 15 <table cellspacing="0" cellpadding="0"> 16 16 <tal:block condition="python: len(items)"> … … 19 19 <a href="jamb" 20 20 tal:attributes="href item/absolute_url" 21 tal:content="item/ title_or_id"></a>21 tal:content="item/heading"></a> 22 22 </td> 23 23 </tr> -
waeup_product/trunk/skins/waeup_student/add_accommodation.py
r107 r119 16 16 lt = context.portal_layouts 17 17 18 accofolder = getattr(context,"Accommodation",None)19 if accofolder is None:20 context.invokeFactory('AccoFolder','Accommodation')21 accofolder = getattr(context,"Accommodation")22 context.notifyCPSDocumentCreation(ob=accofolder)23 24 25 18 res,psm,ds = lt.renderLayout(layout_id= 'accommodation', 26 19 schema_id = 'accommodation', … … 45 38 elif psm == 'valid': 46 39 oid = "%s" % ds.get('heading').replace(' ','') 47 accofolder.invokeFactory(type_name,oid)48 object = getattr( accofolder,oid)40 context.invokeFactory(type_name,oid) 41 object = getattr(context,oid) 49 42 object.getContent().edit(mapping=ds) 50 43 context.notifyCPSDocumentCreation(ob=object) 51 44 psm = 'new %s created' % oid 52 context_ti = context.portal_types[context.portal_type] 45 context_ti = context.portal_types[context.portal_type] 53 46 index = context_ti.getActionById('view','university_view') 54 47 return getattr(context,index)(psm=psm)
Note: See TracChangeset for help on using the changeset viewer.