Changeset 2169 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 29 Aug 2007, 07:36:32 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/apply_pume_manage.py
r2168 r2169 36 36 #ti = context.portal_types[type_name] 37 37 #REQUEST.set('type_name',type_name) 38 39 search = "search" in request.keys() 38 40 reset = "reset" in request.keys() 39 41 edit = "edit" in request.keys() … … 53 55 ds = [] 54 56 57 validate = not search 58 55 59 if reg_no: 56 60 brains = context.applicants_catalog(reg_no = reg_no) 61 57 62 if len(brains) == 1: 58 63 for field in context.applicants_catalog.schema(): 59 64 object[field] = getattr(brains[0],field,None) 60 61 65 res,psm,ds = lt.renderLayout(layout_id= 'application_manage', 62 66 schema_id= 'application', 63 67 layout_mode = "edit", 64 68 context=context, 65 mapping= REQUEST,69 mapping=validate and REQUEST, 66 70 ob=object, 67 71 commit = False, 68 72 ) 73 74 75 69 76 if psm == 'invalid': 70 77 return context.apply_pume_manage_form(rendered = res,
Note: See TracChangeset for help on using the changeset viewer.