Changeset 1338 for WAeUP_SRP/trunk
- Timestamp:
- 21 Jan 2007, 13:52:05 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 1 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/profiles/default/actionicons.xml
r1236 r1338 244 244 action_id="payments" 245 245 title="My Payments" priority="3" 246 icon_expr="blank.gif"/> 246 icon_expr="blank.gif"/> 247 247 <action-icon category="student_navigation" 248 248 action_id="prospectus" title="Prospectus" … … 275 275 title="Register Courses" priority="5" 276 276 icon_expr="bell.png"/> 277 <action-icon category="student" action_id="request_transfer" 278 title="Request Transfer" priority="6" 279 icon_expr="arrow_switch.png"/> 280 277 281 <action-icon category="global" action_id="members" 278 282 title="Portal Members" priority="5" -
WAeUP_SRP/trunk/profiles/default/actions.xml
r1275 r1338 43 43 condition_expr="member" url_expr="string:${portal_url}/logout" 44 44 visible="True"/> 45 <action title="Request Transfer" action_id="request_transfer" category="student" 46 condition_expr="python: here.getStudentWorkflowInfo()['cr']" url_expr="string:${portal_url}/request_transfer" 47 visible="True"/> 45 48 </action-provider> 46 49 <action-provider name="portal_actions"> … … 195 198 <action title="My Payments" action_id="payments" 196 199 category="student_navigation" condition_expr="member" 197 url_expr="string:${portal_url}/campus/students/${ here/getStudentId}/payments" visible="True"/>200 url_expr="string:${portal_url}/campus/students/${member}/payments" visible="True"/> 198 201 <action title="Register Courses" action_id="register_courses" 199 202 category="student" condition_expr="member" -
WAeUP_SRP/trunk/skins/waeup_epayment/getPaymentsFolderInfo.py
r1283 r1338 22 22 return context.REQUEST.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url()) 23 23 #student = getattr(students,student_id) 24 s_brain = context.students_catalog(id = student_id)[0] 24 s_brain = context.students_catalog(id = student_id)[0] 25 25 payments = [] 26 26 #from Products.zdb import set_trace;set_trace() … … 31 31 if res: 32 32 title = res[0].Title 33 d['title'] = title or o_id 33 d['title'] = title or o_id 34 34 else: 35 35 d['title'] = "no Title" -
WAeUP_SRP/trunk/skins/waeup_student/getTransferInfo.py
r1333 r1338 13 13 """ 14 14 import logging 15 logger = logging.getLogger('Student. Clearance.Info')15 logger = logging.getLogger('Student.Transfer.Info') 16 16 from DateTime import DateTime 17 17 … … 42 42 student = getattr(students_object,student_id) 43 43 payments = getattr(student,'payments').objectIds() 44 info['pa yed'] = False44 info['paid'] = False 45 45 for payment in payments: 46 46 if payment.startswith('transfer'): 47 info['pa yed'] = True47 info['paid'] = True 48 48 payments_obj = getattr(student,'payments') 49 49 payment_obj = getattr(payments_obj,payment) 50 50 info['pin'] = payment_obj.getContent().order_id 51 51 break 52 52 53 53 54 54 #student = getattr(students_object, student_id) … … 64 64 if len(results) > 0: 65 65 for r in results: 66 taken.append(r) 66 taken.append(r) 67 67 info['taken'] = taken 68 68 69 69 # for testing of transfer forms 70 info['pa yed'] = True71 info['pin'] = 'CLR-1-0123456789' 70 info['paid'] = True 71 info['pin'] = 'CLR-1-0123456789' 72 72 73 73 -
WAeUP_SRP/trunk/skins/waeup_student/inter_faculty_transfer_1.pt
r1336 r1338 4 4 5 5 6 <span tal:condition="python: not info or not info['pa yed']">6 <span tal:condition="python: not info or not info['paid']"> 7 7 <metal:block use-macro="here/error_not_found/macros/not_found" /> 8 8 </span> 9 <span tal:condition="python: info['pa yed']">9 <span tal:condition="python: info['paid']"> 10 10 <h3><center>INTER-FACULTY TRANSFER, 2006/2007 SESSION</center></h3> 11 11 <h3><center>- APPLICATION FORM -</center></h3> -
WAeUP_SRP/trunk/skins/waeup_student/inter_faculty_transfer_2.pt
r1333 r1338 3 3 tal:define="info context/getTransferInfo"> 4 4 5 <span tal:condition="python: not info or not info['pa yed']">5 <span tal:condition="python: not info or not info['paid']"> 6 6 <metal:block use-macro="here/error_not_found/macros/not_found" /> 7 7 </span> 8 <span tal:condition="python: info['pa yed']">8 <span tal:condition="python: info['paid']"> 9 9 10 10 <center><font color="red"><span tal:content="info/pin"/></font></center> -
WAeUP_SRP/trunk/skins/waeup_student/inter_faculty_transfer_3.pt
r1333 r1338 3 3 tal:define="info context/getTransferInfo"> 4 4 5 <span tal:condition="python: not info or not info['pa yed']">5 <span tal:condition="python: not info or not info['paid']"> 6 6 <metal:block use-macro="here/error_not_found/macros/not_found" /> 7 7 </span> 8 <span tal:condition="python: info['pa yed']">8 <span tal:condition="python: info['paid']"> 9 9 10 10 <center><font color="red"><span tal:content="info/pin"/></font></center> -
WAeUP_SRP/trunk/skins/waeup_student/intra_faculty_transfer_1.pt
r1336 r1338 4 4 5 5 6 <span tal:condition="python: not info or not info['pa yed']">6 <span tal:condition="python: not info or not info['paid']"> 7 7 <metal:block use-macro="here/error_not_found/macros/not_found" /> 8 8 </span> 9 <span tal:condition="python: info['pa yed']">9 <span tal:condition="python: info['paid']"> 10 10 <h3><center>INTER DEPARTMENTAL TRANSFER, 2006/2007 SESSION</center></h3> 11 11 <h3><center>- APPLICATION FORM -</center></h3> -
WAeUP_SRP/trunk/skins/waeup_student/intra_faculty_transfer_2.pt
r1336 r1338 3 3 tal:define="info context/getTransferInfo"> 4 4 5 <span tal:condition="python: not info or not info['pa yed']">5 <span tal:condition="python: not info or not info['paid']"> 6 6 <metal:block use-macro="here/error_not_found/macros/not_found" /> 7 7 </span> 8 <span tal:condition="python: info['pa yed']">8 <span tal:condition="python: info['paid']"> 9 9 10 10 <center><font color="red"><span tal:content="info/pin"/></font></center> -
WAeUP_SRP/trunk/skins/waeup_student/intra_faculty_transfer_3.pt
r1336 r1338 3 3 tal:define="info context/getTransferInfo"> 4 4 5 <span tal:condition="python: not info or not info['pa yed']">5 <span tal:condition="python: not info or not info['paid']"> 6 6 <metal:block use-macro="here/error_not_found/macros/not_found" /> 7 7 </span> 8 <span tal:condition="python: info['pa yed']">8 <span tal:condition="python: info['paid']"> 9 9 10 10 <center><font color="red"><span tal:content="info/pin"/></font></center> -
WAeUP_SRP/trunk/skins/waeup_student/request_transfer.py
r1332 r1338 14 14 import logging 15 15 from urllib import urlencode 16 logger = logging.getLogger(' EPayment.')16 logger = logging.getLogger('Student.Transfer.Request') 17 17 import DateTime 18 18 lt = context.portal_layouts … … 20 20 students = context.portal_url.getPortalObject().campus.students 21 21 22 student_id = context.getStudentId() 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 23 33 if student_id is None: 24 34 return request.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url()) … … 27 37 sbrain = context.students_catalog(id=student_id)[0] 28 38 payments = getattr(student,'payments').objectIds() 29 pa yed = False39 paid = False 30 40 for payment in payments: 31 41 if payment.startswith('transfer'): 32 pa yed = True42 paid = True 33 43 break 34 44 35 45 # for testing of transfer forms 36 payed = True 37 38 if payed: 46 paid = True 47 48 if paid: 49 logger.info('"%s", "opened (paid) request transfer form of", "%s"' % (member_id,student_id)) 39 50 return context.request_transfer_form(rendered = None, 40 51 psm = None, 41 pa yed = True,52 paid = True, 42 53 ) 43 54 … … 94 105 return context.request_transfer_form(rendered = None, 95 106 psm = None, 96 pa yed = True,107 paid = True, 97 108 ) 98 109 -
WAeUP_SRP/trunk/skins/waeup_student/request_transfer_form.pt
r1332 r1338 3 3 tal:define="rendered_main options/rendered; 4 4 portal_status_message options/psm; 5 pa yed options/payed|nothing;">5 paid options/paid|nothing;"> 6 6 7 7 … … 12 12 </span> 13 13 14 <span tal:condition="pa yed">14 <span tal:condition="paid"> 15 15 <h3>Print Your Transfer Form!</h3> 16 16 <br />
Note: See TracChangeset for help on using the changeset viewer.