Changeset 8391 for WAeUP_SRP


Ignore:
Timestamp:
9 May 2012, 10:03:37 (13 years ago)
Author:
Henrik Bettermann
Message:

Do not strip paswords.

Allow approval of eTranzact acceptance fee payments.

Location:
WAeUP_SRP/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Widgets.py

    r7961 r8391  
    6969        err = 0
    7070        try:
    71             v = str(value).strip()
     71            v = str(value)     #.strip()
    7272        except ValueError:
    7373            err = 'cpsschemas_err_string'
  • WAeUP_SRP/trunk/skins/waeup_student/study_course_view.pt

    r8145 r8391  
    88    <span tal:define="create_level info/create_level|nothing;
    99                      is_so info/is_so;
    10                       titles here/getStudentObjectTitles;">               
     10                      titles here/getStudentObjectTitles;">
    1111    <a href=""
    1212       tal:attributes="href string:${here/academicsParent}">
     
    1414      Up one level
    1515    </a>
    16     <h3> 
     16    <h3>
    1717       <span tal:condition="python:is_so and info">
    1818         <span tal:content="info/student/name" />:
     
    2020       <span tal:condition="info/is_student">
    2121          My
    22        </span>       
     22       </span>
    2323       <span tal:content="titles/StudentStudyCourse" />
    2424    </h3>
    25     <br /> 
     25    <br />
    2626    <table tal:define="sc python: info['course_doc']">
    2727      <tr>
    28         <td width="220px">Current Session:</td> 
     28        <td width="220px">Current Session:</td>
    2929        <td><span tal:content="python:context.portal_vocabularies.sessions.get(info['doc'].current_session)" /></td>
    3030      </tr>
    3131      <tr>
    32         <td width="220px">Current Study Level:</td> 
     32        <td width="220px">Current Study Level:</td>
    3333        <td><span tal:content="python:context.portal_vocabularies.student_levels.get(info['doc'].current_level)" /></td>
    3434      </tr>
    3535      <tr>
    36         <td width="220px">Current Verdict:</td> 
     36        <td width="220px">Current Verdict:</td>
    3737        <td><span tal:content="info/verdict" /></td>
    3838      </tr>
    3939      <tr>
    40         <td width="220px">Previous Verdict:</td> 
     40        <td width="220px">Previous Verdict:</td>
    4141        <td><span tal:content="info/previous_verdict" /></td>
    42       </tr>     
     42      </tr>
    4343      <span tal:define="f_id sc/faculty;
    4444        d_id sc/department;
     
    4949        >
    5050      <tr>
    51         <td width="220px">Certificate:</td> 
     51        <td width="220px">Certificate:</td>
    5252        <td tal:content="c_title" />
    5353      </tr>
     
    6161          </tr>
    6262          <tr>
    63             <td>Department:</td> 
     63            <td>Department:</td>
    6464            <td><span tal:content="d_title" /></td>
    6565          </tr>
    6666        </span>
    67       </table>       
    68    
     67      </table>
     68
    6969    <form action="" method="post" class="group" onsubmit="return submit_once()"
    7070          tal:attributes="action info/action"
     
    7272          >
    7373      <span tal:condition="rows">
    74      
    75       <table  class="contentListing" width="100%" summary="content layout" id="folder_content">     
     74
     75      <table  class="contentListing" width="100%" summary="content layout" id="folder_content">
    7676        <tr tal:repeat="row rows"
    7777          tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
    78           <td align="left" valign="middle" style="width: 5px;" 
     78          <td align="left" valign="middle" style="width: 5px;"
    7979              tal:condition="python:is_so">
    8080            <input type="checkbox" name="ids:list" value="" id="" class="noborder"
     
    8383                   tal:attributes="value id;
    8484                   id python:'cb_' + id;
    85                    checked python:id in info['choosen_ids'];" 
     85                   checked python:id in info['choosen_ids'];"
    8686                   />
    8787          </td>
    8888          <td><a href="view"
    8989                 tal:attributes="href string:${row/url}">
    90             <strong tal:content="row/title" /></a> 
     90            <strong tal:content="row/title" /></a>
    9191          </td>
    9292        </tr>
     
    108108                   class="destructive" i18n:attributes="value"
    109109                   tal:attributes="onclick python:'return window.confirm(\'%s\')' %
    110                    (cpsmcat('description_confirm_delete'), )" 
     110                   (cpsmcat('description_confirm_delete'), )"
    111111                   />
    112112          </td>
     
    125125          <td align="left" valign="top" rowspan="3"></td>
    126126          <td align="left" valign="top">
    127             <input type="submit" name="create_level" 
    128                      class="destructive" 
    129                      tal:attributes="value string: Register Courses for ${info/create_level_str}" 
     127            <input type="submit" name="create_level"
     128                     class="destructive"
     129                     tal:attributes="value string: Register Courses for ${info/create_level_str}"
    130130                     />
    131131          </td>
    132132        </tr>
    133133      </table>
    134     </form> 
    135    
     134    </form>
     135
    136136    <div tal:condition="info/missing_data">
    137137       <font color='red'>
  • WAeUP_SRP/trunk/skins/waeup_uniben/getPaymentsFolderInfo.py

    r8315 r8391  
    123123    row['is_requeryable_interswitch'] = "%s_%s" % (payment.category,payment.session_id) not in paid_fees and payment.type == 'online' #or str(member) in ('admin',)
    124124    row['is_requeryable_etranzact'] = "%s_%s" % (payment.category,payment.session_id) not in paid_fees and payment.type == 'etranzact' #or str(member) in ('admin',)
    125     row['is_approvable'] = is_so and (row['is_requeryable_interswitch'] or row['is_requeryable_etranzact'])and payment.category == 'schoolfee' # does not make sense for maitenance
     125    row['is_approvable'] = is_so and (row['is_requeryable_interswitch'] or row['is_requeryable_etranzact'])
    126126    row['resp_desc'] = payment.resp_desc or 'Payment Process Interrupted'
    127127    row['trans_ref'] = payment.order_id
Note: See TracChangeset for help on using the changeset viewer.