Ignore:
Timestamp:
23 Jul 2007, 16:17:59 (17 years ago)
Author:
joachim
Message:

cost not accessible by student, therefor disabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_epayment/getPaymentInfo.py

    r2050 r2051  
    1515logger = logging.getLogger('Skins.getStudentBaseInfo')
    1616from DateTime import DateTime
     17try:
     18    from Products.zdb import set_trace
     19except:
     20    def set_trace():
     21        pass
    1722
    1823request = context.REQUEST
     
    4954info['is_scratchcard_pmt'] = isc =  payment.resp_code == 'SC'
    5055if isc:
    51     from Products.zdb import set_trace
    52     set_trace()
    5356    p,b,n = str(payment.order_id).split('-')
    5457    batch_object = getattr(context.pins,"%s_%s" % (p,b),None)
    55     if batch_object is None:
     58    #set_trace()
     59    if True or batch_object is None:
    5660        info['cost'] = "unknown"
    5761    else:
    58         info['cost'] = "%6.2f N" % getattr(batch_object.getContent(),'cost',0.0)
     62        cost = batch_object.getContent().cost
     63        info['cost'] = "%6.2f N" % cost
     64        #info['cost'] = "%6.2f N" % getattr(batch_object.getContent(),'cost',0.0)
    5965info['is_interrupted'] = ii = payment.resp_code == ''
    6066info['unknown_code'] = not (io or isc or ii)
Note: See TracChangeset for help on using the changeset viewer.