Changeset 1339 for WAeUP_SRP/trunk


Ignore:
Timestamp:
21 Jan 2007, 22:55:34 (18 years ago)
Author:
Henrik Bettermann
Message:

transfer module activated

Location:
WAeUP_SRP/trunk/skins/waeup_student
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/getTransferInfo.py

    r1338 r1339  
    6868
    6969# for testing of transfer forms
    70 info['paid'] = True
    71 info['pin'] = 'CLR-1-0123456789'
     70#info['paid'] = True
     71#info['pin'] = 'CLR-1-0123456789'
    7272
    7373
  • WAeUP_SRP/trunk/skins/waeup_student/inter_faculty_transfer_1.pt

    r1338 r1339  
    3535        </td>
    3636    </tr>
    37     <tr><td valign="top">7.</td><td>Proposed Faculty/School:</td><td style="border-bottom-style:dotted; border-bottom-width:1px; border-bottom-color:black">&nbsp;</td></tr>
    38     <tr><td></td><td>Proposed Department (if applicable):</td><td style="border-bottom-style:dotted; border-bottom-width:1px; border-bottom-color:black">&nbsp;</td></tr>
     37    <tr><td>7.</td><td>Proposed Department:</td><td style="border-bottom-style:dotted; border-bottom-width:1px; border-bottom-color:black">&nbsp;</td></tr>
    3938    <tr><td valign="top">8.</td><td>Reason(s) for Transfer (Tick)</td><td></td></tr>
    4039    <tr><td></td><td>(a) Personal Wish:</td><td>( )</td></tr>
  • WAeUP_SRP/trunk/skins/waeup_student/request_transfer.py

    r1338 r1339  
    1414import logging
    1515from urllib import urlencode
    16 logger = logging.getLogger('Student.Transfer.Request')
     16logger = logging.getLogger('EPayment.')
    1717import DateTime
    1818lt = context.portal_layouts
     
    2020students = context.portal_url.getPortalObject().campus.students
    2121
    22 mtool = context.portal_membership
    23 member = mtool.getAuthenticatedMember()
    24 member_id = str(member)
    25 requested_id = context.getStudentId()
    26 if requested_id and not context.isStaff() and member_id != requested_id:
    27     logger.info('"%s", "accessed application object of", "%s"' % (member_id,requested_id))
    28     student_id = requested_id
    29 elif context.isStaff():
    30     student_id = requested_id
    31 else:
    32     student_id = member_id
     22student_id = context.getStudentId()
    3323if student_id is None:
    3424    return request.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url())
     
    3727sbrain = context.students_catalog(id=student_id)[0]
    3828payments = getattr(student,'payments').objectIds()
    39 paid = False
     29payed = False
    4030for payment in payments:
    4131    if payment.startswith('transfer'):
    42         paid = True
     32        payed = True
    4333        break
    4434
    4535# for testing of transfer forms
    46 paid = True
     36#payed = True
    4737
    48 if paid:
    49     logger.info('"%s", "opened (paid) request transfer form of", "%s"' % (member_id,student_id))
     38if payed:
    5039    return context.request_transfer_form(rendered = None,
    5140                                 psm = None,
    52                                  paid = True,
     41                                 payed = True,
    5342                                 )
    5443
     
    10594return context.request_transfer_form(rendered = None,
    10695                                 psm = None,
    107                                  paid = True,
     96                                 payed = True,
    10897                                 )
    10998
Note: See TracChangeset for help on using the changeset viewer.