Changeset 635 for WAeUP_SRP/trunk/skins
- Timestamp:
- 10 Oct 2006, 08:23:10 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_accommodation/accommodation_view.pt
r630 r635 93 93 % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))" 94 94 /> 95 <input type="submit" name=" folder_delete:method" value="button_delete"95 <input type="submit" name="hall_delete:method" value="button_delete" 96 96 class="destructive" i18n:attributes="value" 97 97 tal:attributes="onclick python:'return window.confirm(\'%s\')' % 98 98 (cpsmcat('description_confirm_delete'), )" 99 99 /> 100 <input tal:condition="python: context.portal_type not in ('Semester','Certificate')"100 <input tal:condition="python: 0 and context.portal_type not in ('Semester','Certificate')" 101 101 type="submit" name="id_rename_form:method" 102 102 class="context" value="Change Object ID" i18n:attributes="value" -
WAeUP_SRP/trunk/skins/waeup_accommodation/getAccoHallsInfo.py
r627 r635 21 21 info['is_manager'] = context.isManager() 22 22 info['is_student'] = context.isStudent() 23 info['action'] = "%s" % context. campus.absolute_url()23 info['action'] = "%s" % context.absolute_url() 24 24 info['choosen_ids'] = request.get('ids',[]) 25 25 items = [] … … 49 49 if st: 50 50 res = pa(student=st) 51 bt_list.append({'student': st, 'bed': res[0].bed })51 res_list.append({'student': st, 'bed': res[0].bed }) 52 52 info['reserved'] = res_list 53 53 -
WAeUP_SRP/trunk/skins/waeup_accommodation/reserve_acco.py
r629 r635 9 9 pr = context.portal_registration 10 10 11 12 type_name = 'StudentApplication' 13 ti = context.portal_types[type_name] 14 REQUEST.set('type_name',type_name) 15 11 info = context.getStudentInfo() 16 12 validate = REQUEST.has_key("cpsdocument_create_button") 17 13 … … 25 21 ob={}, 26 22 layout_mode='create', 27 formaction = " acco_reserve",23 formaction = "reserve_acco", 28 24 button = "book Bed", 29 25 ) 30 26 if psm == 'invalid': 31 27 return context.acco_reserve_form(rendered = res, 32 psm = "Please correct your input.",33 #psm = "%s, %s" % (psm,ds),28 #psm = "Please correct your input.", 29 psm = "%s, %s" % (psm,ds), 34 30 firstlayout = True, 35 31 lastlayout = True, … … 45 41 elif psm == 'valid': 46 42 s_id = ds.get('s_id') 47 pin = str(ds.get('app_ac_pin')) 48 return context.REQUEST.RESPONSE.redirect("%s/logged_in?__ac_name=%s&__ac_password=%s&pin=%s" 49 % (context.absolute_url(),s_id,pin.split('-')[2],pin)) 43 pin = str(ds.get('acco_res_ac_pin')) 44 pa = context.portal_accommodation 45 code,bed = pa.searchAndReserveBed(s_id,"%s_%s" % (info['sex'],ds.get('student_status'))) 46 if code < 0: 47 return context.acco_reserve_form(rendered = res, 48 psm = bed, 49 firstlayout = True, 50 lastlayout = True, 51 ds = ds, 52 ) 53 else: 54 return context.acco_reserve_form(rendered = res, 55 psm = "successfully reserved bed %s" % bed, 56 firstlayout = True, 57 lastlayout = True, 58 ds = ds, 59 ) 50 60 51 61 52 return53 54 -
WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py
r603 r635 39 39 info['per'] = student.personal 40 40 info['per_doc'] = student.personal.getContent() 41 info['sex'] = 'male' 42 if info['per_doc'].sex: 43 info['sex'] = 'female' 41 44 return info -
WAeUP_SRP/trunk/skins/waeup_student/layout_application_edit.pt
r537 r635 6 6 ds options/datastructure; 7 7 dm ds/getDataModel; 8 formaction formaction|string:student_edit;8 formaction options/formaction|string:student_edit; 9 9 creation creation|nothing; 10 10 metadata metadata|nothing;
Note: See TracChangeset for help on using the changeset viewer.