Changeset 731
- Timestamp:
- 20 Oct 2006, 20:18:25 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 3 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/profiles/default/layouts/student_course_result.xml
r728 r731 7 7 <property name="flexible_widgets"/> 8 8 <property name="validate_values_expr"></property> 9 <widget name="code" meta_type="CertificateCourseId Widget"> 10 <property name="title">Course Code</property> 11 <property name="fields"> 12 <element value="code"/> 13 </property> 14 <property name="is_required">True</property> 15 <property name="label">Course Code</property> 16 <property name="label_edit">Course Code</property> 17 <property name="readonly_layout_modes"/> 18 <property name="hidden_layout_modes"> 19 <element value="view"/> 20 <element value="edit"/> 21 </property> 22 <property name="hidden_readonly_layout_modes"/> 23 </widget> 9 24 <widget name="credits" meta_type="Int Widget"> 10 25 <property name="title">Credits</property> … … 17 32 <property name="readonly_layout_modes"> 18 33 <element value="edit"/> 19 </property> 34 <element value="create"/> 35 </property> 36 <property name="hidden_layout_modes"> 37 <element value="create"/> 38 </property> 20 39 <property name="hidden_readonly_layout_modes"/> 21 40 </widget> … … 30 49 <property name="readonly_layout_modes"> 31 50 <element value="edit"/> 32 </property> 33 <property name="hidden_layout_modes"/> 51 <element value="create"/> 52 </property> 53 <property name="hidden_layout_modes"> 54 <element value="create"/> 55 </property> 34 56 <property name="hidden_readonly_layout_modes"/> 35 57 </widget> … … 42 64 <property name="label_edit">Course Title</property> 43 65 <property name="readonly_layout_modes"> 44 <element value="edit"/> 45 </property> 46 <property name="hidden_layout_modes"/> 66 <element value="create"/> 67 <element value="edit"/> 68 </property> 69 <property name="hidden_layout_modes"> 70 <element value="create"/> 71 </property> 47 72 <property name="hidden_readonly_layout_modes"/> 48 73 <property name="display_width">60</property> … … 93 118 </widget> 94 119 <widget name="import_id" meta_type="String Widget"> 95 <property name="title"> ID</property>120 <property name="title">imported ID</property> 96 121 <property name="fields"> 97 122 <element value="import_id"/> 98 123 </property> 99 <property name="label">ID</property> 100 <property name="label_edit">ID</property> 101 <property name="readonly_layout_modes"> 102 <element value="edit"/> 103 </property> 104 <property name="hidden_layout_modes"/> 124 <property name="label">imported ID</property> 125 <property name="label_edit">imported ID</property> 126 <property name="readonly_layout_modes"> 127 <element value="edit"/> 128 <element value="create"/> 129 </property> 130 <property name="hidden_layout_modes"> 131 <element value="create"/> 132 </property> 105 133 <property name="hidden_readonly_layout_modes"/> 106 134 </widget> … … 112 140 <property name="label">Score</property> 113 141 <property name="label_edit">Score</property> 114 <property name="readonly_layout_modes"/> 142 <property name="readonly_layout_modes"> 143 <element value="edit"/> 144 <element value="create"/> 145 </property> 115 146 <property name="hidden_layout_modes"/> 116 147 <property name="hidden_readonly_layout_modes"/> … … 140 171 <table> 141 172 <row> 173 <cell name="code"/> 174 </row> 175 <row> 142 176 <cell name="title"/> 143 177 </row> -
WAeUP_SRP/trunk/profiles/default/layouts/student_study_course.xml
r727 r731 7 7 <property name="flexible_widgets"/> 8 8 <property name="validate_values_expr"></property> 9 <widget name="title" meta_type="String Widget"> 10 <property name="title">Certificate Code</property> 11 <property name="fields"> 12 <element value="title"/> 13 </property> 14 <property name="is_required">True</property> 15 <property name="label">Certificate</property> 16 <property name="label_edit">Certificate</property> 17 <property name="readonly_layout_modes"/> 18 <property name="hidden_layout_modes"/> 19 <property name="hidden_readonly_layout_modes"/> 20 </widget> 9 21 <widget name="study_course" meta_type="String Widget"> 10 22 <property name="title">Certificate Code</property> … … 160 172 <table> 161 173 <row> 174 <cell name="title"/> 175 </row> 176 <row> 162 177 <cell name="study_course"/> 163 178 </row> -
WAeUP_SRP/trunk/profiles/default/layouts/student_study_level.xml
r726 r731 16 16 <property name="label_edit">Level No</property> 17 17 <property name="readonly_layout_modes"/> 18 <property name="hidden_layout_modes"/> 18 <property name="hidden_layout_modes"> 19 <element value="edit"/> 20 <element value="view"/> 21 </property> 19 22 <property name="hidden_readonly_layout_modes"/> 20 23 </widget> … … 88 91 <table> 89 92 <row> 93 <cell name="code"/> 94 </row> 95 <row> 90 96 <cell name="session"/> 91 97 </row> -
WAeUP_SRP/trunk/profiles/default/schemas/student_course_result.xml
r728 r731 1 1 <?xml version="1.0"?> 2 2 <object name="course_results" meta_type="CPS Schema"> 3 <field name="code" meta_type="CPS String Field"/> 3 4 <field name="title" meta_type="CPS String Field"/> 4 5 <field name="faculty_code" meta_type="CPS String Field"/> 5 6 <field name="department_code" meta_type="CPS String Field"/> 6 7 <field name="credits" meta_type="CPS Int Field"/> 8 <field name="core_or_elective" meta_type="CPS Boolean Field"/> 7 9 <field name="passmark" meta_type="CPS Int Field"/> 8 10 <field name="ansbook" meta_type="CPS String Field"/> -
WAeUP_SRP/trunk/profiles/default/schemas/student_study_level.xml
r725 r731 3 3 <field name="code" meta_type="CPS String Field"/> 4 4 <field name="session" meta_type="CPS String Field"/> 5 <field name="gpa" meta_type="CPS StringField"/>5 <field name="gpa" meta_type="CPS Float Field"/> 6 6 <field name="status" meta_type="CPS String Field"/> 7 7 <field name="verdict" meta_type="CPS String Field"/> -
WAeUP_SRP/trunk/profiles/default/types/StudentCourseResult.xml
r729 r731 2 2 <object name="StudentCourseResult" meta_type="CPS Flexible Type Information" 3 3 xmlns:i18n="http://xml.zope.org/namespaces/i18n"> 4 <property name="title">WAeUP Course Ticket</property>4 <property name="title">WAeUP Course Result</property> 5 5 <property name="description"></property> 6 6 <property name="content_icon"></property> … … 27 27 <property name="cps_is_portlet">False</property> 28 28 <alias from="(Default)" to="academics_document_view"/> 29 <alias from="create_do" to="waeup_document_create_do"/> 30 <alias from="created" to="student_course_result_created"/> 29 31 <alias from="view" to="academics_document_view"/> 30 32 <action title="View" action_id="view" category="object" -
WAeUP_SRP/trunk/profiles/default/types/StudentStudyCourse.xml
r723 r731 41 41 <permission value="Modify portal content"/> 42 42 </action> 43 <action title="Add Level" action_id="new_entry" category="object" 44 condition_expr="" 45 url_expr="string:${object/absolute_url}/content_create?type_name=StudentStudyLevel" 46 visible="True"> 47 <permission value="Add portal content"/> 48 </action> 43 49 </object> -
WAeUP_SRP/trunk/profiles/default/types/StudentStudyLevel.xml
r723 r731 30 30 <alias from="(Default)" to="student_index"/> 31 31 <alias from="create_do" to="waeup_document_create_do"/> 32 <alias from="created" to=" level_created"/>32 <alias from="created" to=""/> 33 33 <alias from="view" to="student_index"/> 34 34 <action title="View" action_id="view" category="object" condition_expr="" … … 36 36 <permission value="View"/> 37 37 </action> 38 <action title="Add Course" action_id="new_entry" category="object" 39 condition_expr="" 40 url_expr="string:${object_url}/content_create?type_name=StudentCourseResult" 41 visible="True"> 42 <permission value="Add portal content"/> 43 </action> 38 44 </object> -
WAeUP_SRP/trunk/profiles/default/types/StudyLevel.xml
r574 r731 30 30 <alias from="(Default)" to="academics_index"/> 31 31 <alias from="create_do" to="waeup_document_create_do"/> 32 <alias from="created" to=" level_created"/>32 <alias from="created" to=""/> 33 33 <alias from="view" to="academics_index"/> 34 34 <action title="View" action_id="view" category="object" condition_expr="" -
WAeUP_SRP/trunk/skins/waeup_default/waeup_document_create_do.py
r486 r731 10 10 from Products.CMFCore.utils import getToolByName 11 11 12 if type_name == "StudyLevel":12 if type_name in ("StudyLevel","StudentStudyLevel"): 13 13 id = datamodel.get('code') 14 14 else: -
WAeUP_SRP/trunk/skins/waeup_student/searchStudents.py
r727 r731 59 59 with_review = state != "all" 60 60 onlyreview = with_review and not term 61 with_level_results = state.startswith("category") and evalAdvancedQuery is not None 61 with_level_results = state.startswith("category") or\ 62 state in ('content_addable',) and\ 63 evalAdvancedQuery is not None 62 64 bools = "with_review = %s<br\> onlyreview = %s<br\> with_level_results = %s" % (with_review,onlyreview,with_level_results) 63 65 if not term and not with_review: … … 87 89 elif onlyreview and with_level_results: 88 90 query_step = 2 89 query = Eq('portal_type','StudentStudyLevel') & Eq('review_state',state) 91 query = (Eq('portal_type','StudentStudyLevel') | 92 Eq('portal_type','StudentStudyCourse')) & Eq('review_state',state) 90 93 res = evalAdvancedQuery(query) 91 94 elif what == "student_id": … … 135 138 st = "%s*" % term.strip() 136 139 query = Eq('portal_type',pt) & Eq('SearchableText',"%s*" % term.strip().lower())\ 137 | Eq('portal_type','StudentStudyLevel') & Eq('review_state',state) 140 | ((Eq('portal_type','StudentStudyLevel') | 141 Eq('portal_type','StudentStudyCourse')) & Eq('review_state',state)) 138 142 try: 139 143 res = evalAdvancedQuery(query) … … 149 153 if res: 150 154 for r in res: 151 if r.portal_type in ("StudentApplication","StudentPersonal", ):155 if r.portal_type in ("StudentApplication","StudentPersonal","StudentStudyCourse",): 152 156 student = r.getObject().aq_parent 153 157 elif r.portal_type in ("StudentStudyLevel",): … … 167 171 students.append(context.getStudentInfo(item)) 168 172 return context.students_manager_view(rendered = rend, 169 psm = "%d matching Students found " % len(items),173 psm = "%d matching Students found QS = %s" % (len(items),query_step), 170 174 students = students, 171 175 is_manager = is_manager, -
WAeUP_SRP/trunk/skins/waeup_student/study_level_view.pt
r723 r731 27 27 tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> 28 28 <td align="left" valign="middle" style="width: 5px;" 29 tal:condition="python: 0and is_manager">29 tal:condition="python:1 and is_manager"> 30 30 <input type="checkbox" name="ids:list" value="" id="" class="noborder" 31 31 tal:condition="is_manager" … … 63 63 <td align="left" valign="top" rowspan="3"></td> 64 64 <td align="left" valign="top"> 65 <span tal:condition="python: 0and is_manager">65 <span tal:condition="python:1 and is_manager"> 66 66 <input type="button" value="button_select_all" class="context" 67 67 onclick="someJavaScriptFunctionThatWillBeReplaced" … … 70 70 % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))" 71 71 /> 72 <input t ype="submit" name="approve_checked:method"72 <input tal:condition="python:0" type="submit" name="approve_checked:method" 73 73 class="context" value="Approve" /> 74 <input t ype="submit" name="retract_checked:method"74 <input tal:condition="python:0" type="submit" name="retract_checked:method" 75 75 class="context" value="Retract" /> 76 76 <input type="submit" name="folder_delete:method" value="button_delete" … … 79 79 (cpsmcat('description_confirm_delete'), )" 80 80 /> 81 <input tal:condition="python: context.portal_type not in ('Semester','Certificate')"81 <input tal:condition="python: 0" 82 82 type="submit" name="id_rename_form:method" 83 83 class="context" value="Change Object ID" i18n:attributes="value"
Note: See TracChangeset for help on using the changeset viewer.