Changeset 1568
- Timestamp:
- 17 Mar 2007, 08:37:51 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_custom/logged_in.py
r1489 r1568 21 21 current = DateTime.DateTime() 22 22 import logging 23 logger = logging.getLogger(' Member.Login')23 logger = logging.getLogger('Skins.logged_in') 24 24 25 25 … … 71 71 student_per = getattr(student,'personal',None) 72 72 p_review_state = wftool.getInfoFor(student_per,'review_state',None) 73 logger.info(' "%s", "logged in", "review_state %s"' % (member,s_review_state))73 logger.info('%s logged in, review_state %s' % (member,s_review_state)) 74 74 app_doc = student_app.getContent() 75 75 #from Products.zdb import set_trace;set_trace() 76 76 if load_passport and 'passport' not in app_doc.objectIds(): 77 77 msg = context.waeup_tool.loadStudentFoto(student) 78 logger.info(' "%s", "%s"' % (member,msg))78 logger.info('%s, %s' % (member,msg)) 79 79 if s_review_state in ("student_created","admitted") and\ 80 80 a_review_state == 'created' : … … 134 134 redirect_url = "%s/student_index" % student.absolute_url() 135 135 else: 136 logger.info(' "%s", "logged in"' % (member))136 logger.info('%s logged in' % (member)) 137 137 redirect_url = portal.absolute_url() 138 138 #Anonymous -
WAeUP_SRP/trunk/skins/waeup_custom/logout.py
r1082 r1568 10 10 # notify the event service that the user has logged out 11 11 import logging 12 logger = logging.getLogger(' Member.Logout')12 logger = logging.getLogger('Skins.logout') 13 13 user = context.portal_membership.getAuthenticatedMember() 14 14 if user: … … 16 16 evtool = getPublicEventService(context) 17 17 evtool.notifyEvent('user_logout', user, {}) 18 logger.info(' "%s", "logged out"' % (user))18 logger.info('%s logged out' % (user)) 19 19 20 20 REQUEST = context.REQUEST -
WAeUP_SRP/trunk/skins/waeup_epayment/approve_epayment.py
r1427 r1568 1 ## Script (Python) " epayment_cb"1 ## Script (Python) "approve_epayment" 2 2 ##bind container=container 3 3 ##bind context=context … … 10 10 # $Id: aprove_epayment.py 1425 2007-02-15 17:52:01Z joachim $ 11 11 """ 12 payment callback13 12 """ 14 13 import logging 15 logger = logging.getLogger(' EPayment.Approve')14 logger = logging.getLogger('Skins.approve_epayment') 16 15 import DateTime 17 16 if context.portal_membership.isAnonymousUser(): … … 42 41 if doc.type_description.startswith('School Fee'): 43 42 wftool.doActionFor(student,'pay_school_fee') 44 logger.info(' "%s", "approved epayment for","%s""' % (member,student_id))43 logger.info('%s approves epayment for %s' % (member,student_id)) 45 44 wftool.doActionFor(context,'close') 46 45 return request.RESPONSE.redirect("%s/waeup_document_view" % context.absolute_url()) -
WAeUP_SRP/trunk/skins/waeup_epayment/epayment_cb.py
r1367 r1568 13 13 """ 14 14 import logging 15 logger = logging.getLogger(' EPayment.CallBack')15 logger = logging.getLogger('Skins.epayment_cb') 16 16 import DateTime 17 17 if context.portal_membership.isAnonymousUser(): … … 43 43 if resp == '00': 44 44 wftool.doActionFor(student,'pay_school_fee') 45 logger.info(' "%s", "received valid callback"' % student_id)45 logger.info('%s received valid callback' % student_id) 46 46 47 47 elif len(resp) < 3: 48 logger.info(' "%s", "received no callback"' % student_id)48 logger.info('%s received no callback' % student_id) 49 49 else: 50 logger.info(' "%s", "received unsuccessfull callback"' % student_id)50 logger.info('%s received unsuccessfull callback' % student_id) 51 51 wftool.doActionFor(context,'close') 52 52 -
WAeUP_SRP/trunk/skins/waeup_epayment/getPaymentsFolderInfo.py
r1431 r1568 1 ## Script (Python) "getPayments Info"1 ## Script (Python) "getPaymentsFolderInfo" 2 2 ##bind container=container 3 3 ##bind context=context … … 12 12 Info for the PaymentsFolder 13 13 """ 14 import logging 15 logger = logging.getLogger('EPayment.Info') 14 #import logging 15 #logger = logging.getLogger('Skins.getPaymentsFolderInfo') 16 16 17 import DateTime 17 18 request = context.REQUEST … … 57 58 row['confirmed'] = 'unsuccessful' 58 59 payments.append(row) 59 60 60 61 61 62 info['payments'] = payments -
WAeUP_SRP/trunk/skins/waeup_epayment/pay_by_sc.py
r1390 r1568 14 14 import logging 15 15 from urllib import urlencode 16 logger = logging.getLogger(' EPayment.PayBySC')16 logger = logging.getLogger('Skins.pay_by_sc') 17 17 import DateTime 18 18 … … 85 85 wftool.doActionFor(payment,'close') 86 86 wftool.doActionFor(student,'pay_school_fee') 87 logger.info(' "%s", "paid school fee by scratch card"' % student_id)87 logger.info('%s paid school fee by scratch card' % student_id) 88 88 else: 89 logger.info(' "%s", "repeatedly paid school fee by scratch card"' % student_id)89 logger.info('%s repeatedly paid school fee by scratch card' % student_id) 90 90 url = "%s/payments" % (student.absolute_url()) 91 91 request.RESPONSE.redirect(url) -
WAeUP_SRP/trunk/skins/waeup_epayment/pay_online.py
r1365 r1568 14 14 from urllib import urlencode 15 15 import logging 16 logger = logging.getLogger(' EPayment.PayOnline')16 logger = logging.getLogger('Skins.pay_online') 17 17 import DateTime 18 18 … … 91 91 info['callback_url'] = "%s/payments/%s/epayment_cb" % (student.absolute_url(),p_id) 92 92 93 logger.info(' "%(student_id)s","%(type_description)s", "%(amount)s N"' % info)93 logger.info('%(student_id)s initiated online school fee payment, %(type_description)s %(amount)s N' % info) 94 94 payment_fields = (('x_SiteID','site_id'), 95 95 ('x_Redirect_url','callback_url'), -
WAeUP_SRP/trunk/skins/waeup_epayment/simulate_callback.py
r1427 r1568 5 5 return html renderer + psm 6 6 """ 7 import DateTime ,logging7 import DateTime 8 8 current = DateTime.DateTime() 9 9 pr = context.portal_registration 10 logger = logging.getLogger('EPayment.Simulate')11 10 validate = REQUEST.has_key("cpsdocument_edit_button") 12 11 -
WAeUP_SRP/trunk/skins/waeup_pins/disable_pins.py
r1540 r1568 15 15 current = DateTime.DateTime().strftime("%d-%m-%y_%H_%M_%S") 16 16 import logging 17 logger = logging.getLogger(' Pin.Disable')17 logger = logging.getLogger('Skins.disable_pins') 18 18 19 19 request = REQUEST … … 39 39 } 40 40 pincat.modifyRecord(**dict) 41 logger.info(' "%s","disabled pin","%s"' % (member,uid))41 logger.info('%s disabled pin %s' % (member,uid)) 42 42 return request.RESPONSE.redirect("%s/campus/pins/search_pins" % context.portal_url()) -
WAeUP_SRP/trunk/skins/waeup_pins/enable_pins.py
r1082 r1568 15 15 current = DateTime.DateTime().strftime("%d-%m-%y_%H_%M_%S") 16 16 import logging 17 logger = logging.getLogger(' Pin.Enable')17 logger = logging.getLogger('Skins.enable_pins') 18 18 19 19 request = REQUEST … … 42 42 } 43 43 pincat.modifyRecord(**dict) 44 logger.info(' "%s","enabled pin","%s"' % (member,pid))44 logger.info('%s enabled pin %s' % (member,pid)) 45 45 return request.RESPONSE.redirect("%s/campus/pins/search_pins" % context.portal_url()) -
WAeUP_SRP/trunk/skins/waeup_student/search_students_form.pt
r1557 r1568 27 27 <nobr><a href="statistics_reg_view">Registration Statistics</a> 28 28 </nobr> 29 <nobr><a href="list_students">Cleared Student Export</a>30 </nobr>31 29 <span tal:condition="is_so"> 32 <nobr><a href=" add_student">Add Student Record</a>30 <nobr><a href="list_students">Cleared Student Export</a> 33 31 </nobr> 34 <nobr><a href="paid_transfer_list">Export Transfer Students</a></nobr> 32 <nobr><a href="paid_transfer_list">Transfer Student Export</a></nobr> 33 34 <nobr><a href="add_student">Add Student Record</a></nobr> 35 35 </span> 36 36 </strong> … … 42 42 </span> 43 43 <span tal:condition="info/departments|nothing" tal:omit-tag=""> 44 and <span tal:repeat="department info/departments|nothing" tal:content="department"/></span> .44 and <span tal:repeat="department info/departments|nothing" tal:content="department"/></span> 45 45 <span tal:condition="info/certificate_level|nothing" tal:omit-tag=""> 46 46 who is CourseAdviser for 47 47 <span tal:repeat="cl info/certificate_level" tal:content="cl" /> 48 </span> 48 </span>. 49 49 <br /><br /> 50 50 <span tal:replace="structure rendered" />
Note: See TracChangeset for help on using the changeset viewer.