Changeset 2059


Ignore:
Timestamp:
26 Jul 2007, 18:09:47 (17 years ago)
Author:
joachim
Message:

fix for #167 see there

Location:
WAeUP_SRP/trunk
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/profiles/default/pins.xml

    r1456 r2059  
    55 <column value="student"/>
    66 <column value="serial"/>
     7 <column value="cost"/>
    78 <column value="prefix_batch"/>
    89 <index name="pin" meta_type="FieldIndex">
    910  <indexed_attr value="pin"/>
     11 </index>
     12 <index name="cost" meta_type="FieldIndex">
     13  <indexed_attr value="cost"/>
    1014 </index>
    1115 <index name="prefix_batch" meta_type="FieldIndex">
  • WAeUP_SRP/trunk/skins/waeup_epayment/pay_by_sc.py

    r2005 r2059  
    7878order_id = ds.get('pin_n')
    7979p_id = "p%s" % order_id
     80pin = str(ds.get('pin'))
     81try:
     82    cost = context.portal_pins(pin="".join(pin.split('-')))[0].cost
     83except:
     84    cost = "n/a"
     85try:
     86    x = float(cost)
     87except:
     88    cost = "n/a"
     89   
    8090if not hasattr(payments,p_id):
    8191    now = DateTime.DateTime()
    8292    info['date'] = now
    83     info['amount'] = "n/a"
    84     pin = info['order_id'] = "%s" % (ds.get('pin'))
     93    info['amount'] = cost
     94    pin = info['order_id'] = "%s" % (pin)
    8595    info['type_code'] = "%s" % pin
    8696    info['type_description'] = 'School Fee for Session %s' % next_session_str
  • WAeUP_SRP/trunk/skins/waeup_student/getMemberInfo.py

    r1871 r2059  
    2121member_id = str(member)
    2222path_info = request.get('PATH_INFO').split('/')
    23 ##from Products.zdb import set_trace
    24 ##set_trace()
    2523if mtool.isAnonymousUser():
    2624    return None
  • WAeUP_SRP/trunk/skins/waeup_student/mail_password_form.pt

    r1455 r2059  
    7676      </form>
    7777      </span>
    78       <form action="mail_next_student" method="post" class="group">
     78      <form action="mail_next_student" method="post" class="group"
     79            tal:attributes="action string:${context/absolute_url}/mail_next_student">
    7980         <input type="submit" class="context" value="Next Student Id" />
    8081         <input name="student_id" type="text" size="8">
  • WAeUP_SRP/trunk/skins/waeup_student/student_view.pt

    r1989 r2059  
    108108                          'ehioaiks','despej','shinakale','igadoghe','benamechi','edafeohwo')">
    109109      <br />
    110       <form action="mail_password_form" method="post" class="group">
     110      <form action="mail_password_form" method="post" class="group"
     111            tal:attributes="action string:${context/absolute_url}/mail_password_form">
    111112         <input type="submit" class="context" value="Send Email with Authentication Data" />
    112113      </form>
Note: See TracChangeset for help on using the changeset viewer.