- Timestamp:
- 21 Dec 2006, 09:37:02 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/clearance_edit.py
r1107 r1110 60 60 action = "/clearance_edit_form" 61 61 62 ##if result_edit_button:63 ## dict = {}64 ## for w in result_widgets:65 ## if form.has_key("%s_s" % w):66 ## v = getattr(clear_doc,w)67 ## s = form.get("%s_s" % w)68 ## g = form.get("%s_g" % w)69 ## while 1:70 ## if not s and g:71 ## break72 ## i = 073 ## done = False74 ## for sv,gv in v:75 ## if sv == s:76 ## done = True77 ## if not g:78 ## v.pop(i)79 ## break80 ## v[i] = (s,g)81 ## break82 ## i += 183 ## if done:84 ## break85 ## if s and g:86 ## v.append((s,g))87 ## break88 ## dict[w] = v89 ## #request.SESSION.set(w,v)90 ## clear_doc.edit(mapping=dict)91 ## args['portal_status_message'] = "Results updated"92 ## url = clear.absolute_url() + action + '?' + urlencode(args)93 ## REQUEST.RESPONSE.redirect(url)94 62 is_valid, ds = clear_doc.validate(request=REQUEST, 95 63 schema_id = 'student_clearance', … … 115 83 if acknowledge and info['review_state'] == "clearance_pin_entered": 116 84 missing = False 85 files = clear_doc.objectIds() 117 86 for scan in required_scans: 118 if not getattr(clear_doc,scan):87 if scan not in files: 119 88 missing = True 120 89 break 121 90 if not missing: 122 if not getattr(clear_doc,"age_dec") and\ 123 not getattr(clear_doc,"birth_certificate"): 91 if not "age_dec" in files and not "birth_certificate" in files: 124 92 missing = True 125 93 if missing:
Note: See TracChangeset for help on using the changeset viewer.