Changeset 542
- Timestamp:
- 24 Sep 2006, 06:03:25 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 5 added
- 4 deleted
- 11 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/profiles/default/actions.xml
r508 r542 132 132 <permission>View</permission> 133 133 </action> 134 <action title="Home" action_id="student _home" category="student_navigation"135 condition_expr="member" url_expr="string:${portal_url} " visible="True">134 <action title="Home" action_id="students_home" category="student_navigation" 135 condition_expr="member" url_expr="string:${portal_url}/students_home" visible="True"> 136 136 <permission>View</permission> 137 137 </action> … … 141 141 <permission>View</permission> 142 142 </action> 143 <action title=" Registration" action_id="registration"143 <action title="My Registration" action_id="registration" 144 144 category="student_navigation" condition_expr="member" 145 145 url_expr="string:${portal_url}/campus/students" visible="True"> -
WAeUP_SRP/trunk/profiles/default/layouts/student_application.xml
r538 r542 2 2 <object name="student_application" meta_type="CPS Layout"> 3 3 <property name="layout_create_method"></property> 4 <property name="layout_edit_method"> layout_application_print</property>5 <property name="layout_view_method"> </property>4 <property name="layout_edit_method"></property> 5 <property name="layout_view_method">layout_application_print</property> 6 6 <property name="style_prefix">layout_waeup_</property> 7 7 <property name="flexible_widgets"/> -
WAeUP_SRP/trunk/profiles/default/types/StudentsFolder.xml
r535 r542 8 8 <property name="product">WAeUP_SRP</property> 9 9 <property name="factory">addStudentsFolder</property> 10 <property name="immediate_view">student _index</property>10 <property name="immediate_view">students_index</property> 11 11 <property name="global_allow">True</property> 12 12 <property name="filter_content_types">True</property> … … 30 30 <property name="storage_methods"/> 31 31 <property name="cps_is_portlet">False</property> 32 <alias from="(Default)" to="student _index"/>33 <alias from="view" to="student _index"/>32 <alias from="(Default)" to="students_index"/> 33 <alias from="view" to="students_index"/> 34 34 <action title="View" action_id="view" category="object" condition_expr="" 35 url_expr="string:${object_url}/student _index" visible="True">35 url_expr="string:${object_url}/students_index" visible="True"> 36 36 <permission value="View"/> 37 37 </action> -
WAeUP_SRP/trunk/profiles/default/types/University.xml
r535 r542 8 8 <property name="product">WAeUP_SRP</property> 9 9 <property name="factory">addUniversity</property> 10 <property name="immediate_view"> home_index</property>10 <property name="immediate_view">campus_index</property> 11 11 <property name="global_allow">True</property> 12 12 <property name="filter_content_types">True</property> … … 34 34 <property name="storage_methods"/> 35 35 <property name="cps_is_portlet">False</property> 36 <alias from="(Default)" to=" home_index"/>37 <alias from="view" to=" home_index"/>36 <alias from="(Default)" to="campus_index"/> 37 <alias from="view" to="campus_index"/> 38 38 <action title="View" action_id="view" category="object" condition_expr="" 39 url_expr="string:${object_url}/ home_index" visible="True">39 url_expr="string:${object_url}/campus_index" visible="True"> 40 40 <permission value="Modify portal content"/> 41 41 </action> -
WAeUP_SRP/trunk/skins/waeup_academics/academics_index.py
r538 r542 1 ## Script (Python) " cpsdocument_edit"1 ## Script (Python) "academics_index" 2 2 ##bind container=container 3 3 ##bind context=context … … 10 10 # $Id: student_edit.py 486 2006-09-06 10:09:39Z joachim $ 11 11 """ 12 return the appropriate page in the academics section 12 return the appropriate page in the academics section 13 13 """ 14 14 15 15 request = context.REQUEST 16 16 redirect = request.RESPONSE.redirect 17 pm = context.portal_membership 18 19 if pm.isAnonymousUser(): 20 return redirect("%s/academics_contents" % context.absolute_url()) 21 17 22 campus = context.portal_catalog(meta_type = "University")[-1].getObject() 18 pm = context.portal_membership19 23 member = pm.getAuthenticatedMember() 20 24 roles = member.getRoles() 21 25 isManager = "Manager" in roles or "SectionManager" in roles 22 26 isStudent = "Student" in roles 27 23 28 if isManager: 24 29 return redirect("%s/academics_contents" % context.absolute_url()) 25 30 if isStudent: 26 31 return redirect("%s/academics_contents" % context.absolute_url()) 27 if pm.isAnonymousUser():28 return redirect("%s/acacemics_contents" % context.absolute_url())29 30 info = context.getStudentInfo()31 student = info['student']32 doc = info['app_doc']33 state = context.getStudentInfo()['review_state']34 if state == 'admission_applied':35 return redirect("%s/application_view" % student.absolute_url())36 elif state == 'application_pin_entered':37 return redirect("%s/passport_entry_view" % student.absolute_url())38 39 32 -
WAeUP_SRP/trunk/skins/waeup_custom/login_form.pt
r486 r542 6 6 tal:define="username request/username | request/__ac_name | nothing"> 7 7 8 <h 1 i18n:translate="heading_login_form">Log in</h1>8 <h3>Sorry,</h3> 9 9 10 <form id="loginForm" action="" method="post" 11 tal:attributes="action string:${base_url}logged_in"> 12 13 <table id="login" class="form" 14 summary="Table for entering login information"> 15 <tbody> 16 <tr> 17 <th> 18 <label for="username" 19 i18n:translate="label_user_name">User name</label></th> 20 <td> 21 <input type="text" id="username" name="__ac_name" 22 class="focus" size="20" value="" 23 tal:attributes="value username" /></td> 24 </tr> 25 <tr> 26 <th> 27 <label for="password" 28 i18n:translate="label_password">Password</label></th> 29 <td> 30 <input type="password" id="password" name="__ac_password" size="20" 31 value="" /></td> 32 </tr> 33 </tbody> 34 </table> 35 36 <p class="buttonArea"> 37 <!-- ****** Enable the automatic redirect ***** --> 38 <input type="hidden" name="came_from" value="" 39 tal:condition="exists: request/came_from" 40 tal:attributes="value request/came_from" /> 41 <!-- ****** Enable the automatic redirect ***** --> 42 <input i18n:attributes="value" class="standalone" 43 type="submit" name="submit" value="button_login" /> 10 <p> you are not authorized to access this resource. 44 11 </p> 45 12 46 </form> 47 48 <p i18n:translate="help_login_aware_logout"> 49 Don't forget to logout or exit your browser when you're done. 50 </p> 51 <p i18n:translate="help_login_troubles_cookies"> 52 Having trouble logging in? Make sure to enable cookies in 53 your web browser. 54 </p> 55 <p i18n:translate=""> 56 help_password_forgotten 57 <tal:block i18n:name="link_password_forgotten" 58 replace="string:${base_url}account_lost_password_form"/> 59 </p> 60 61 </metal:main> 13 </metal:main> 62 14 </metal:body> 63 15 </metal:html> -
WAeUP_SRP/trunk/skins/waeup_default/error_not_found.pt
r531 r542 4 4 <!-- macro library for rendering specific error messages per error type --> 5 5 <metal:block define-macro="not_found"> 6 <h 1>Not Found</h1>6 <h3>Not Found</h3> 7 7 8 8 <p>The resource you asked was not found. -
WAeUP_SRP/trunk/skins/waeup_default/error_other.pt
r531 r542 3 3 4 4 <metal:block define-macro="other"> 5 <h 1>WAeUP encountered an error</h1>5 <h3>WAeUP encountered an error</h3> 6 6 7 7 <p>We apologize for the incovenience.</p> -
WAeUP_SRP/trunk/skins/waeup_student/application_slip.pt
r537 r542 7 7 <span tal:condition="info" 8 8 tal:define="review_state info/review_state"> 9 <h3>Post UME Acknowledegement Slip</h3> 10 <br /> 9 11 <span tal:omit-tag="" 10 12 tal:content="structure python: info['app_doc'].render(proxy=info['app_doc'], -
WAeUP_SRP/trunk/skins/waeup_student/application_view.pt
r535 r542 7 7 <span tal:condition="info" 8 8 tal:define="review_state info/review_state"> 9 <h3 tal:content="info/review_state|nothing"></h3> 9 <h3>My Application Record</h3> 10 <br /> 10 11 <span tal:omit-tag="" 11 12 tal:content="structure python: info['app_doc'].render(proxy=info['app_doc'], -
WAeUP_SRP/trunk/skins/waeup_student/layout_application_print.pt
r537 r542 4 4 widgets python:context.getRenderedWidgets(layout);" 5 5 > 6 <h3>Post UME Acknowledegement Slip</h3> 7 <br /> 6 8 7 <table cellpadding="10em" cellspacing=""> 9 8 <tr> -
WAeUP_SRP/trunk/skins/waeup_student/students_index.py
r540 r542 1 ## Script (Python) " cpsdocument_edit"1 ## Script (Python) "students_indext" 2 2 ##bind container=container 3 3 ##bind context=context … … 10 10 # $Id: student_edit.py 486 2006-09-06 10:09:39Z joachim $ 11 11 """ 12 return the current student _index_html12 return the current students_index_html 13 13 """ 14 14 15 15 request = context.REQUEST 16 16 redirect = request.RESPONSE.redirect 17 pm = context.portal_membership 18 19 20 if pm.isAnonymousUser(): 21 return redirect("%s/campus_anonymous_view" % context.campus.absolute_url()) 22 23 17 24 campus = context.portal_catalog(meta_type = "University")[-1].getObject() 18 pm = context.portal_membership19 if pm.isAnonymousUser():20 return redirect("%s/students_anonymous_view" % campus.students.absolute_url())21 25 member = pm.getAuthenticatedMember() 22 26 roles = member.getRoles() 23 if "Manager" in roles or "SectionManager" in roles: 24 return redirect("%s/students_manager_view" % campus.students.absolute_url()) 25 26 info = context.getStudentInfo() 27 student = info['student'] 28 doc = info['app_doc'] 29 state = context.getStudentInfo()['review_state'] 30 if state == 'admission_applied': 31 return redirect("%s/application_view" % student.absolute_url()) 32 elif state == 'application_pin_entered': 33 return redirect("%s/passport_entry_view" % student.absolute_url()) 27 isManager = "Manager" in roles or "SectionManager" in roles 28 isStudent = "Student" in roles 29 30 if isManager: 31 return redirect("%s/academics_contents" % campus.students.absolute_url()) 32 if isStudent: 33 info = context.getStudentInfo() 34 student = info['student'] 35 doc = info['app_doc'] 36 state = context.getStudentInfo()['review_state'] 37 if state == 'admission_applied': 38 return redirect("%s/application_view" % student.absolute_url()) 39 elif state == 'application_pin_entered': 40 return redirect("%s/passport_entry_view" % student.absolute_url())
Note: See TracChangeset for help on using the changeset viewer.