Changeset 1892 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
13 Jun 2007, 15:57:09 (17 years ago)
Author:
joachim
Message:

mostly interswitch integration

Location:
WAeUP_SRP/trunk/skins
Files:
4 edited

Legend:

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

    r1885 r1892  
    5757resp = pd['resp_code']
    5858if  resp == '00':
    59     wftool.doActionFor(student,'pay_school_fee')
     59    if context.getStudentReviewState() == "school_fee_paid":
     60        logger.info('%s paid school_fee in state school_fee_paid' % (student_id))
     61    else:
     62        wftool.doActionFor(student,'pay_school_fee')
    6063    logger.info('%s received valid callback' % student_id)
    6164    referer = request.get('HTTP_REFERER','none')
  • WAeUP_SRP/trunk/skins/waeup_epayment/pay_interswitch.py

    r1885 r1892  
    122122""" % xmldict
    123123total = int(xmldict['uniben_amt'])+int(xmldict['wema_amt'])+int(xmldict['provider_amt'])
    124 args['Amount'] = "%d" % total
     124args['Amount'] = "%d" % (total + 15000)
    125125args['site_name'] = "uniben.waeup.org"
    126126args['cust_name_desc'] = "Student Name"
  • WAeUP_SRP/trunk/skins/waeup_student/add_course_result.py

    r1863 r1892  
    6868context.portal_workflow.doActionFor(cr,'open')
    6969cr.getContent().edit(mapping=d)
    70 #context.portal_workflow.doActionFor(cr,'close')
     70context.portal_workflow.doActionFor(cr,'close')
    7171args['course_id'] = course_id
    7272
  • WAeUP_SRP/trunk/skins/waeup_student/display_cest_results.py

    r1805 r1892  
    1919pr = context.portal_registration
    2020
    21 res,psm,ds = lt.renderLayout(layout_id= 'student_application_search',
    22                       schema_id= 'student_application',
    23                       context=context,
    24                       mapping=validate and REQUEST,
    25                       ob={},
    26                       layout_mode='create',
    27                       formaction = "display_cest_results",
    28                       button = "Search",
    29                       commit=False,
    30                       )
    31 if psm == 'invalid':
     21res,psm,ds = lt.renderLayout('student_application_search',
     22                            'student_application',
     23                             context,
     24                             mapping=validate and REQUEST,
     25                             layout_mode='create',
     26                             ob={"jamb_reg_no": '',},
     27                             commit=False,
     28                             formaction = "display_cest_results",
     29                             button = "Search",
     30                            )
     31if True or psm == 'invalid':
    3232    return context.display_cest_results_form(rendered = res,
    3333                                 psm = "Please correct your input!",
Note: See TracChangeset for help on using the changeset viewer.