Changeset 652 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
11 Oct 2006, 07:50:28 (18 years ago)
Author:
joachim
Message:

cleanup naming in accommodation part II

Location:
WAeUP_SRP/trunk/skins/waeup_student
Files:
3 moved

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/reserve_accommodation.py

    r642 r652  
    2020if info['acco']:
    2121    return context.REQUEST.RESPONSE.redirect("%s" % info['acco'].absolute_url())
    22 res,psm,ds = lt.renderLayout(layout_id= 'student_acco_reserve',
    23                       schema_id= 'student_acco_reserve',
     22res,psm,ds = lt.renderLayout(layout_id= 'student_accommodation_fe',
     23                      schema_id= 'student_accommodation_fe',
    2424                      context=context,
    2525                      mapping=validate and REQUEST,
    2626                      ob={},
    2727                      layout_mode='create',
    28                       formaction = "reserve_acco",
     28                      formaction = "reserve_accommodation",
    2929                      button = "book Bed",
    3030                      )
    3131if psm == 'invalid':
    32     return context.reserve_acco_form(rendered = res,
     32    return context.accommodation_pin_form(rendered = res,
    3333                                 #psm = "Please correct your input.",
    3434                                 psm = "%s, %s" % (psm,ds),
     
    3838                                 )
    3939elif psm == '':
    40     return context.reserve_acco_form(rendered = res,
     40    return context.accommodation_pin_form(rendered = res,
    4141                                 psm = None,
    4242                                 firstlayout = True,
     
    5151    code,bed = pa.searchAndReserveBed(s_id,"%s_%s" % (info['sex'],ds.get('student_status')))
    5252    if code < 0:
    53         return context.reserve_acco_form(rendered = res,
     53        return context.accommodation_pin_form(rendered = res,
    5454                                 psm = bed,
    5555                                 firstlayout = True,
     
    6363ds.set('session', session)
    6464acco.getContent().edit(mapping=ds)
    65 return context.REQUEST.RESPONSE.redirect("%s/hostal_reservation_slip" % student.absolute_url())
    66 ##return context.reserve_acco_form(rendered = res,
     65return context.REQUEST.RESPONSE.redirect("%s/accommodation_slip" % student.absolute_url())
     66##return context.accommodation_pin_form(rendered = res,
    6767##                                 psm = "successfully reserved bed %s" % bed,
    6868##                                 firstlayout = True,
Note: See TracChangeset for help on using the changeset viewer.