Changeset 2114 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 18 Aug 2007, 07:36:29 (17 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/apply_pume.py
r2111 r2114 50 50 for field in context.applicants_catalog.schema(): 51 51 object[field] = getattr(brains[0],field,None) 52 if not object['passport']: 53 object['passport'] = '' 52 54 if object['status'] == "submitted": 53 55 submitted = True 54 #set_trace()55 56 if not create and pin != object['pin']: 56 57 return request.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url()) 57 58 if slip: 58 59 mode = "view_slip" 59 60 60 res,psm,ds = lt.renderLayout(layout_id= 'application', 61 61 schema_id= 'application', … … 91 91 pass 92 92 data = {} 93 dm = ds.getDataModel() 94 #set_trace() 93 95 for field in context.applicants_catalog.schema(): 94 if d s.has_key(field) and request.has_key("widget__%s" % field):95 data[field] = d s.get(field)96 if dm.has_key("%s" % field): 97 data[field] = dm.get(field) 96 98 data['reg_no'] = reg_no 97 98 99 if apply_pume: 99 100 100 if submitted: 101 101 mode = "view" … … 143 143 ) 144 144 elif edit: 145 #set_trace() 145 146 if submitted: 146 147 mode = "view" -
WAeUP_SRP/trunk/skins/waeup_student/apply_pume_form.pt
r2109 r2114 12 12 <h3 tal:condition="python:mode=='view'">Your PUME Application Record</h3> 13 13 <br /> 14 <img tal:condition="python:0" src="/uniben/viewimage?path=images/72921580DJ_passport.jpg" alt="" title="image/jpeg" /> 14 15 <form action="" id="editForm" method="post" 15 16 enctype="multipart/form-data" class="workflow"
Note: See TracChangeset for help on using the changeset viewer.