Changeset 1073
- Timestamp:
- 17 Dec 2006, 16:39:44 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/clearance_edit.py
r1054 r1073 30 30 # (We don't call getEditableContent here, validate does it when needed.) 31 31 wftool = context.portal_workflow 32 info = context.get StudentInfo()32 info = context.getClearanceInfo() 33 33 34 34 35 35 #'Sorry, you are not allowed to access this page!' 36 36 if info == None: 37 38 37 #return REQUEST.RESPONSE.redirect(context.portal_url()) 38 return REQUEST.RESPONSE.redirect(context.standard_error_message()) 39 39 40 40 -
WAeUP_SRP/trunk/skins/waeup_student/clearance_edit_form.pt
r1036 r1073 1 1 <metal:block define-macro="clearance_edit_form"> 2 <metal:block tal:define="info context/get StudentInfo">2 <metal:block tal:define="info context/getClearanceInfo"> 3 3 <span tal:condition="not: info"> 4 4 <metal:block use-macro="here/standard_error_message" /> … … 12 12 review_state info/review_state; 13 13 clear_review_state info/clear_review_state; 14 editable python: (is_student and clear_review_state == 'opened' or is_so) and not is_co;14 editable python:not is_co and (is_student and clear_review_state == 'opened' or is_so); 15 15 mode python: test(editable,'edit','view'); 16 16 layout_id python: test(is_so,'student_clearance','student_clearance_fe'); -
WAeUP_SRP/trunk/skins/waeup_student/search_students.py
r1071 r1073 157 157 res = aq_students(query) 158 158 search_set = [r.id for r in res] 159 if with_review and len(search_set) > 0:160 query = In('id',search_set) & Eq('review_state',state)161 elif with_review:159 ##if with_review and len(search_set) > 0: 160 ## query = In('id',search_set) & Eq('review_state',state) 161 if with_review: 162 162 query = Eq('review_state',state) 163 163 review_res = evalAdvancedQuery(query) … … 168 168 #review_set.append(pl[pl.index('students') + 1]) 169 169 review_set.append(r.getId) 170 all = review_set171 170 #set_trace() 172 ##if only_review: 173 ## all = review_set 174 ##elif with_review: 175 ## for i in search_set: 176 ## if i in review_set: 177 ## all.append(i) 178 ##else: 179 ## all = search_set 180 ####for a in all[:50]: 181 #### if a in items: 182 #### continue 183 #### items.append(a) 171 if only_review: 172 all = review_set 173 elif with_review: 174 all = [] 175 for i in search_set: 176 if i in review_set: 177 all.append(i) 178 else: 179 all = search_set 184 180 items = all[:500] 185 181 students = [] 186 #items.sort()187 188 182 if items: 189 183 for item in items:
Note: See TracChangeset for help on using the changeset viewer.