Changeset 124 for waeup_product
- Timestamp:
- 29 Oct 2005, 10:45:10 (19 years ago)
- Location:
- waeup_product/trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/Extensions/install.py
r119 r124 145 145 'id' : 'student_administration', 146 146 'name' : 'Students', 147 'action' : 'string:$ {portal_url}/sections/waeup/students',147 'action' : 'string:$folder_url/students', 148 148 'permission': (View, ), 149 149 'category' : 'main_tabs', … … 153 153 'id' : 'Academics', 154 154 'name' : 'Academics', 155 'action' : 'string:${portal_url}/sections/waeup/academics/academics_view', 155 #'action' : 'string:${portal_url}/sections/waeup/academics/academics_view', 156 'action' : 'string:$folder_url/academics', 156 157 'permission': (View ), 157 158 'category' : 'main_tabs', … … 161 162 'id' : 'accomodation', 162 163 'name' : 'Accommodation', 163 'action' : 'string:${portal_url}/sections/waeup/accommodation/accommodation_index_html', 164 #'action' : 'string:${portal_url}/sections/waeup/accommodation/accommodation_index_html', 165 'action' : 'string:$folder_url/accommodation', 164 166 'permissions': (View), 165 167 #'permissions': (ModifyPortalContent,UniversityManage,StudentManage), -
waeup_product/trunk/VERSION
r19 r124 1 0.1 1 0.1-devel (SVN/Unreleased) -
waeup_product/trunk/skins/waeup_default/getWAeUPTypes.py
r119 r124 30 30 'cps_section_wf': 'waeup_section_wf', 31 31 'actions': ({'id': 'view', 32 'name': 'action_view', 33 'action': 'university_view', 34 'condition': "python:member and 'Manager' in member.getRoles()", 32 'name': 'Standard View', 33 #'action': 'university_view', 34 'action': 'temporary_view_all', 35 #'condition': "python:member and 'Manager' in member.getRoles()", 35 36 'permissions': (View,)}, 36 37 ## {'id': 'add_accommodation', … … 93 94 'cps_section_wf': 'waeup_section_wf', 94 95 'actions': ({'id': 'view', 95 'name': 'Students', 96 'action': 'students_folder_view', 96 'name': 'Standard View', 97 #'action': 'students_folder_view', 98 'action': 'temporary_view_all', 97 99 #'condition': "python:member and 'Manager' in member.getRoles()", 98 100 'permissions': (View,)}, … … 108 110 'action' : 'string:${object/absolute_url}/create_jamb', 109 111 'permissions': (UniversityManage,StudentManage)}, 112 { 113 'id' : 'my_admission', 114 'name' : 'My Admission Status', 115 'action' : 'string:${object/absolute_url}/check_admission', 116 'condition': 'object/portal_membership/isAnonymousUser', 117 'permission': (View,)}, 118 { 119 'id' : 'admission_list', 120 'name' : 'Admission List', 121 'action' : 'string:${object/absolute_url}/admission_status', 122 'condition': 'object/portal_membership/isAnonymousUser', 123 'permission': (View,)}, 110 124 { 111 125 'id': 'localroles', … … 155 169 'cps_section_wf': 'waeup_section_wf', 156 170 'actions': ({'id': 'view', 157 'name': 'Academics', 158 'action': 'academics_view', 171 'name': 'Standard View', 172 #'action': 'academics_view', 173 'action': 'temporary_view_all', 159 174 'condition': "", 160 175 'permissions': (View,)}, … … 197 212 'actions': ( 198 213 {'id': 'view', 199 'name': ' action_view',200 'action': 'string:${object_url}/student_index_html',201 #'action': 'string:${object_url}/cpsdocument_view',214 'name': 'Standard View', 215 #'action': 'string:${object_url}/student_index_html', 216 'action': 'temporary_view_all', 202 217 'condition': '', 203 218 'permission': (View,), … … 215 230 'visible' : 0, 216 231 }, 232 {'id' : 'JAMB', 233 'name' : 'JAMB Data', 234 'action' : 'string:${object/absolute_url}/JAMB', 235 'condition': '', 236 'permission': (ModifyPortalContent,)}, 237 { 238 'id' : 'PERSONAL', 239 'name' : 'Personal Data', 240 'action' : 'string:${object/absolute_url}/PERSONAL', 241 'condition': '', 242 'permission': (ModifyPortalContent,)}, 243 { 244 'id' : 'book_accomodation', 245 'name' : 'Book Accomodation', 246 'action' : 'string:${object/absolute_url}/book_accommodation', 247 'condition': '', 248 'permission': (ModifyPortalContent,)}, 217 249 ) 218 250 } … … 240 272 ## 'actions': ( 241 273 ## {'id': 'view', 242 ## 'name': ' action_view',274 ## 'name': 'Standard View', 243 275 ## 'action': 'string:${object_url}/document_view', 244 276 ## 'condition': '', … … 297 329 'actions': ( 298 330 {'id': 'view', 299 'name': 'action_view', 300 'action': 'string:${object_url}/jamb_index_html', 331 'name': 'Standard View', 332 #'action': 'string:${object_url}/jamb_index_html', 333 'action': 'temporary_view_all', 301 334 'condition': '', 302 335 'permission': (View,), … … 306 339 'action': 'string:${object_url}/waeup_edit_form', 307 340 'condition': '', 308 'permission': ( ModifyPortalContent,StudentManage),341 'permission': (StudentManage), 309 342 }, 310 343 {'id': 'localroles', … … 353 386 'actions': ( 354 387 {'id': 'view', 355 'name': ' action_view',356 'action': 'string:${object_url}/student_personal_index_html',388 'name': 'Standard View', 389 #'action': 'string:${object_url}/student_personal_index_html', 357 390 #'action': 'string:${object_url}/cpsdocument_view', 358 'permission': ('View',), 391 'action': 'temporary_view_all', 392 'permission': (View,), 359 393 'category': 'object', 360 394 'visible': True,}, … … 363 397 'action': 'string:${object_url}/student_personal_edit_form', 364 398 'condition': '', 365 'permission': ( 'View',),399 'permission': (ModifyPortalContent,), 366 400 'category': 'object', 367 401 'visible': True,}, … … 398 432 'actions': ( 399 433 {'id': 'view', 400 'name': 'action_view', 401 'action': 'string:${object_url}/faculty_index_html', 434 'name': 'Standard View', 435 #'action': 'string:${object_url}/faculty_index_html', 436 'action': 'temporary_view_all', 402 437 'condition': '', 403 438 'permission': (View,), … … 412 447 'name': 'Add Department', 413 448 'action' : 'string:${object/absolute_url}/create_common?type_name=Department', 414 'permissions': ( ModifyPortalContent,UniversityManage,)},449 'permissions': (UniversityManage,)}, 415 450 {'id': 'contents', 416 451 'name': 'action_folder_contents', 417 452 'action': 'folder_contents', 418 453 'condition': "python:member and 'Manager' in member.getRoles()", 419 'permissions': (ModifyPortalContent, UniversityManage,)},454 'permissions': (ModifyPortalContent,)}, 420 455 {'id': 'edit', 421 456 'name': 'action_edit', 422 457 'action': 'cpsdocument_edit_form', 423 458 'condition': "python:member and 'Manager' in member.getRoles()", 424 'permissions': (ModifyPortalContent, UniversityManage,)},459 'permissions': (ModifyPortalContent,)}, 425 460 {'id': 'metadata', 426 461 'name': 'action_metadata', … … 461 496 'actions': ( 462 497 {'id': 'view', 463 'name': 'action_view', 464 'action': 'string:${object_url}/department_index_html', 498 'name': 'Standard View', 499 #'action': 'string:${object_url}/department_index_html', 500 'action': 'temporary_view_all', 465 501 'condition': '', 466 502 'permission': ('View',), … … 470 506 'action': 'string:${object_url}/waeup_edit_form', 471 507 'condition': '', 472 'permission': ( FacultyManage,),508 'permission': (UniversityManage,), 473 509 'visible': True,}, 474 510 {'id': 'create_course', 475 511 'name': 'Add Course', 476 512 'action' : 'string:${object/absolute_url}/create_course', 477 'permissions': ( ModifyPortalContent,UniversityManage,)},513 'permissions': (UniversityManage,)}, 478 514 {'id': 'contents', 479 515 'name': 'action_folder_contents', 480 516 'action': 'folder_contents', 481 517 'condition': "python:member and 'Manager' in member.getRoles()", 482 'permissions': (ModifyPortalContent, UniversityManage,)},518 'permissions': (ModifyPortalContent,)}, 483 519 {'id': 'edit', 484 520 'name': 'action_edit', 485 521 'action': 'cpsdocument_edit_form', 486 522 'condition': "python:member and 'Manager' in member.getRoles()", 487 'permissions': (ModifyPortalContent, UniversityManage,)},523 'permissions': (ModifyPortalContent,)}, 488 524 {'id': 'metadata', 489 525 'name': 'action_metadata', … … 524 560 'actions': ( 525 561 {'id': 'view', 526 'name': 'action_view', 527 'action': 'string:${object_url}/course_index_html', 562 'name': 'Standard View', 563 #'action': 'string:${object_url}/course_index_html', 564 'action': 'temporary_view_all', 528 565 'condition': '', 529 566 'permission': ('View',), … … 585 622 'actions': ( 586 623 {'id': 'view', 587 'name': 'action_view', 588 'action': 'accommodation_index_html', 624 'name': 'Standard View', 625 #'action': 'accommodation_index_html', 626 'action': 'temporary_view_all', 589 627 'condition': '', 590 628 'permission': (View,), … … 635 673 'actions': ( 636 674 {'id': 'view', 637 'name': 'action_view', 638 'action': 'string:${object_url}/accommodation_index_html', 675 'name': 'Standard View', 676 #'action': 'string:${object_url}/accommodation_index_html', 677 'action': 'temporary_view_all', 639 678 'condition': '', 640 679 'permission': ('View',), … … 642 681 'visible': True,}, 643 682 {'id': 'edit', 644 'name': ' edit',683 'name': 'action_edit', 645 684 'action': 'string:${object_url}/waeup_edit_form', 646 685 'permission': (UniversityManage,StudentManage), -
waeup_product/trunk/skins/waeup_default/logged_out.pt
r49 r124 8 8 i18n:translate="description_logout_success"> 9 9 You have been logged out. <br /> 10 <a href="" tal:attributes="href string:${base_url}/sections/unidemo/students/check_admission">check your admission</a>11 12 10 </p> 13 11 -
waeup_product/trunk/skins/waeup_default/portlet_session_info.pt
r106 r124 4 4 > 5 5 <tal:block condition="not:anonymous"> 6 < spani18n:translate="">You are currently logged in as6 <div i18n:translate="">You are currently logged in as 7 7 <em i18n:name="member" 8 8 tal:content="member" /><br />with Basic Roles <span tal:content="member/getRoles" /><br /> 9 9 <span tal:condition="python: 0" tal:content="python:mtool.getCPSCandidateLocalRoles(context)" /> 10 <a href="" tal:condition="python: 'Students' in member.getGroups()" 11 tal:attributes="href string:${here/portal_url}/sections/waeup/students/${member}">goto your personal area</a> 12 </span><br /> 10 </div> 11 <a href="" tal:condition="python: 'Student' in member.getGroups()" 12 tal:attributes="href string:${here/portal_url}/students/${member}"> 13 Go to your personal area 14 </a> 15 13 16 <a href="" tal:condition="python: 0" tal:attributes="href string:${context/portal_url}/cpsdirectory_entry_view?dirname=members&id=${member}">Edit your Preferences</a><br /> 14 <br /> 15 (<a href="" i18n:translate=""16 tal:attributes="href string:${here/portal_url}/ sections/waeup/logout">log out</a>)17 18 <a href="" i18n:translate="" 19 tal:attributes="href string:${here/portal_url}/logout">Log out</a> 17 20 </tal:block> 18 21 <tal:block condition="anonymous"> 19 < span >You are currently not logged in </span><br />20 <a href="" tal:attributes="href string:${here/portal_url}/ sections/waeup/login_form">Login</a>22 <div>You are currently not logged in </div><br /> 23 <a href="" tal:attributes="href string:${here/portal_url}/login_form">Log in</a> 21 24 </tal:block> 22 <br />23 <a tal:condition="python: 0" href="" i18n:translate=""24 tal:attributes="href string:${here/portal_url}/sections/waeup/students">Student Administration</a>25 25 </tal:block> -
waeup_product/trunk/skins/waeup_default/temporary_view_all.pt
r122 r124 14 14 15 15 <metal:block fill-slot="main" 16 tal:define="student_folder here/getContent; 17 items here/contentValues" 16 tal:define="folder here/getContent; 17 items here/contentValues; 18 attributes here/contentValues" 18 19 > 19 This is the main text area of the object with id <em tal:content="here/title_or_id" /> which has to be filled with content. 20 <h1> Title of the object '<em tal:content="here/id" />'</h1> 21 22 <p>This is the main text area of the object with id <em tal:content="here/id" /> which has to be filled with content.</p> 23 24 <p>This is a list of attributes assigned to the <em tal:content="here/title_or_id" /> object which can be displayed in various ways: </p> 25 26 <br /> 27 28 <p>(The attribute listing is not yet implemented.)</p> 29 30 <br /> 31 32 <p>This is a list of items attached to the <em tal:content="here/title_or_id" /> object which can be listed in various ways: </p> 33 34 <br /> 35 36 <table cellspacing="0" cellpadding="0"> 37 <tal:block condition="python: len(items)"> 38 <tr tal:repeat="item items"> 39 <td colspan="1"> 40 <a href="jamb" 41 tal:attributes="href item/absolute_url" 42 tal:content="item/title_or_id"></a> 43 </td> 44 </tr> 45 </tal:block> 46 <tal:block condition="python: not len(items)"> 47 (No items yet!) 48 </tal:block> 49 </table> 50 51 20 52 </metal:block> 21 53 <metal:block fill-slot="sub"> -
waeup_product/trunk/skins/waeup_student/admission_status_form.pt
r69 r124 14 14 </metal:block> 15 15 <metal:block fill-slot="main"> 16 < center><h1>Admission Status!</h1></center>16 <h1>List admitted students!</h1> 17 17 <p> 18 18 You may be seeing a long list of names or just the name of the person of your interest below. -
waeup_product/trunk/skins/waeup_student/book_accommodation.py
r118 r124 34 34 elif psm == 'valid': 35 35 sf = context.getContent() 36 halls = getattr(context,' Accommodation').contentValues()36 halls = getattr(context,'accommodation').contentValues() 37 37 beds = [] 38 38 student = context.PERSONAL.getContent() … … 43 43 bal = getattr(h,'beds_assigned_list',[]) 44 44 nr_of_beds = int(h.nr_of_blocks) * int(h.nr_of_floors) * int(h.rooms_per_floor) * int(h.beds_per_room) 45 if h.which_sex == student.sex and nr_of_beds > len(bal): 45 if h.which_sex == student.sex and nr_of_beds > len(bal): 46 46 break 47 47 dict = {'heading': h.heading, -
waeup_product/trunk/skins/waeup_student/booked_accommodation.pt
r114 r124 7 7 tal:define="acco options/v" 8 8 > 9 you have successfully booked bed nr <span tal:content="acco/beds_assigned" /> in <span tal:content="acco/heading" /> 10 of <span tal:content="acco/nr_of_free" /> now <span tal:content="acco/beds_assigned" /> assigned. 9 You have successfully booked bed nr <span tal:content="acco/beds_assigned" /> in <span tal:content="acco/heading" />. 11 10 </metal:block> 12 11 <metal:block fill-slot="sub"> -
waeup_product/trunk/skins/waeup_student/check_admission_form.pt
r48 r124 15 15 16 16 <metal:block fill-slot="main"> 17 <h1> check your admission to the UniDemo!</h1>17 <h1>Check your admission status!</h1> 18 18 <div tal:replace="structure rendered_main" /> 19 19 </metal:block>
Note: See TracChangeset for help on using the changeset viewer.