Changeset 3117 for WAeUP_SRP/base/skins


Ignore:
Timestamp:
6 Feb 2008, 17:48:40 (17 years ago)
Author:
joachim
Message:

set acco_maint_fee and pin correctly, the old code could never work.

File:
1 edited

Legend:

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

    r2912 r3117  
    128128        #wftool.doActionFor(acco,'pay_maintenance_fee',dest_container=acco)
    129129        return context.REQUEST.RESPONSE.redirect("%s/reserve_accommodation" % student.absolute_url())
    130 pin = str(ds.get('acco_main_sc_pin'))
    131 pp = context.portal_pins
    132 acco = getattr(student,acco_id)
    133 ds.set('acco_maint_date', current)
    134 acco.getContent().edit(mapping=ds)
    135 wftool.doActionFor(acco,'pay_maintenance_fee',dest_container=acco)
     130#pin = str(ds.get('acco_main_sc_pin'))
     131#pp = context.portal_pins
     132#acco = getattr(student,acco_id)
     133set_trace()
     134d = {}
     135d['acco_maint_sc_pin'] = ds.get('acco_maint_sc_pin')
     136d['acco_maint_date'] = current
     137info['acco_doc'].edit(mapping=d)
     138wftool.doActionFor(info['acco'],'pay_maintenance_fee')
    136139return context.REQUEST.RESPONSE.redirect("%s/accommodation_view" % student.absolute_url())
    137140
Note: See TracChangeset for help on using the changeset viewer.