Ignore:
Timestamp:
11 Oct 2006, 23:22:16 (18 years ago)
Author:
Henrik Bettermann
Message:

some fixes and minor modifications for the launching of the accommodation module

File:
1 edited

Legend:

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

    r652 r659  
    88current = DateTime.DateTime()
    99pr = context.portal_registration
     10wftool = context.portal_workflow
    1011
    1112info = context.getStudentInfo()
     
    1516pr = context.portal_registration
    1617session = current.year()
    17 acco_id = 'Acco_%s' % session
     18acco_id = 'accommodation_%s' % session
    1819info = context.getStudentInfo()
    1920student = info['student']
     
    2728                      layout_mode='create',
    2829                      formaction = "reserve_accommodation",
    29                       button = "book Bed",
     30                      button = "Book",
    3031                      )
    3132if psm == 'invalid':
     
    4748    s_id = ds.get('s_id')
    4849    pin = str(ds.get('acco_res_ac_pin'))
    49    
     50
    5051    pa = context.portal_accommodation
    5152    code,bed = pa.searchAndReserveBed(s_id,"%s_%s" % (info['sex'],ds.get('student_status')))
     
    5960student.invokeFactory('StudentAccommodation',acco_id)
    6061acco = getattr(student,acco_id)
     62wftool.doActionFor(acco,'open',dest_container=acco)
    6163ds.set('acco_res_date', current)
    6264ds.set('bed', bed)
Note: See TracChangeset for help on using the changeset viewer.