Changeset 731 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 20 Oct 2006, 20:18:25 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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.