Changeset 1568 for WAeUP_SRP/trunk


Ignore:
Timestamp:
17 Mar 2007, 08:37:51 (18 years ago)
Author:
Henrik Bettermann
Message:

new logging format Part 3

Location:
WAeUP_SRP/trunk/skins
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_custom/logged_in.py

    r1489 r1568  
    2121current = DateTime.DateTime()
    2222import logging
    23 logger = logging.getLogger('Member.Login')
     23logger = logging.getLogger('Skins.logged_in')
    2424
    2525
     
    7171        student_per = getattr(student,'personal',None)
    7272        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))
    7474        app_doc = student_app.getContent()
    7575        #from Products.zdb import set_trace;set_trace()
    7676        if load_passport and 'passport' not in app_doc.objectIds():
    7777            msg = context.waeup_tool.loadStudentFoto(student)
    78             logger.info('"%s", "%s"' % (member,msg))
     78            logger.info('%s, %s' % (member,msg))
    7979        if s_review_state in ("student_created","admitted") and\
    8080                             a_review_state == 'created' :
     
    134134            redirect_url = "%s/student_index" % student.absolute_url()
    135135    else:
    136         logger.info('"%s", "logged in"' % (member))
     136        logger.info('%s logged in' % (member))
    137137        redirect_url = portal.absolute_url()
    138138#Anonymous
  • WAeUP_SRP/trunk/skins/waeup_custom/logout.py

    r1082 r1568  
    1010# notify the event service that the user has logged out
    1111import logging
    12 logger = logging.getLogger('Member.Logout')
     12logger = logging.getLogger('Skins.logout')
    1313user = context.portal_membership.getAuthenticatedMember()
    1414if user:
     
    1616    evtool = getPublicEventService(context)
    1717    evtool.notifyEvent('user_logout', user, {})
    18     logger.info('"%s", "logged out"' % (user))
     18    logger.info('%s logged out' % (user))
    1919
    2020REQUEST = context.REQUEST
  • WAeUP_SRP/trunk/skins/waeup_epayment/approve_epayment.py

    r1427 r1568  
    1 ## Script (Python) "epayment_cb"
     1## Script (Python) "approve_epayment"
    22##bind container=container
    33##bind context=context
     
    1010# $Id: aprove_epayment.py 1425 2007-02-15 17:52:01Z joachim $
    1111"""
    12 payment callback
    1312"""
    1413import logging
    15 logger = logging.getLogger('EPayment.Approve')
     14logger = logging.getLogger('Skins.approve_epayment')
    1615import DateTime
    1716if context.portal_membership.isAnonymousUser():
     
    4241if doc.type_description.startswith('School Fee'):
    4342    wftool.doActionFor(student,'pay_school_fee')
    44 logger.info('"%s", "approved epayment for","%s""' % (member,student_id))
     43logger.info('%s approves epayment for %s' % (member,student_id))
    4544wftool.doActionFor(context,'close')
    4645return request.RESPONSE.redirect("%s/waeup_document_view" % context.absolute_url())
  • WAeUP_SRP/trunk/skins/waeup_epayment/epayment_cb.py

    r1367 r1568  
    1313"""
    1414import logging
    15 logger = logging.getLogger('EPayment.CallBack')
     15logger = logging.getLogger('Skins.epayment_cb')
    1616import DateTime
    1717if context.portal_membership.isAnonymousUser():
     
    4343if  resp == '00':
    4444    wftool.doActionFor(student,'pay_school_fee')
    45     logger.info('"%s", "received valid callback"' % student_id)
     45    logger.info('%s received valid callback' % student_id)
    4646
    4747elif len(resp) < 3:
    48     logger.info('"%s", "received no callback"' % student_id)
     48    logger.info('%s received no callback' % student_id)
    4949else:
    50     logger.info('"%s", "received unsuccessfull callback"' % student_id)
     50    logger.info('%s received unsuccessfull callback' % student_id)
    5151wftool.doActionFor(context,'close')
    5252
  • WAeUP_SRP/trunk/skins/waeup_epayment/getPaymentsFolderInfo.py

    r1431 r1568  
    1 ## Script (Python) "getPaymentsInfo"
     1## Script (Python) "getPaymentsFolderInfo"
    22##bind container=container
    33##bind context=context
     
    1212Info for the PaymentsFolder
    1313"""
    14 import logging
    15 logger = logging.getLogger('EPayment.Info')
     14#import logging
     15#logger = logging.getLogger('Skins.getPaymentsFolderInfo')
     16
    1617import DateTime
    1718request = context.REQUEST
     
    5758        row['confirmed'] = 'unsuccessful'
    5859    payments.append(row)
    59    
     60
    6061
    6162info['payments'] = payments
  • WAeUP_SRP/trunk/skins/waeup_epayment/pay_by_sc.py

    r1390 r1568  
    1414import logging
    1515from urllib import urlencode
    16 logger = logging.getLogger('EPayment.PayBySC')
     16logger = logging.getLogger('Skins.pay_by_sc')
    1717import DateTime
    1818
     
    8585    wftool.doActionFor(payment,'close')
    8686    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)
    8888else:
    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)
    9090url = "%s/payments" % (student.absolute_url())
    9191request.RESPONSE.redirect(url)
  • WAeUP_SRP/trunk/skins/waeup_epayment/pay_online.py

    r1365 r1568  
    1414from urllib import urlencode
    1515import logging
    16 logger = logging.getLogger('EPayment.PayOnline')
     16logger = logging.getLogger('Skins.pay_online')
    1717import DateTime
    1818
     
    9191info['callback_url'] = "%s/payments/%s/epayment_cb" % (student.absolute_url(),p_id)
    9292
    93 logger.info('"%(student_id)s","%(type_description)s", "%(amount)s N"' % info)
     93logger.info('%(student_id)s initiated online school fee payment, %(type_description)s %(amount)s N' % info)
    9494payment_fields = (('x_SiteID','site_id'),
    9595                  ('x_Redirect_url','callback_url'),
  • WAeUP_SRP/trunk/skins/waeup_epayment/simulate_callback.py

    r1427 r1568  
    55return html renderer + psm
    66"""
    7 import DateTime,logging
     7import DateTime
    88current = DateTime.DateTime()
    99pr = context.portal_registration
    10 logger = logging.getLogger('EPayment.Simulate')
    1110validate = REQUEST.has_key("cpsdocument_edit_button")
    1211
  • WAeUP_SRP/trunk/skins/waeup_pins/disable_pins.py

    r1540 r1568  
    1515current = DateTime.DateTime().strftime("%d-%m-%y_%H_%M_%S")
    1616import logging
    17 logger = logging.getLogger('Pin.Disable')
     17logger = logging.getLogger('Skins.disable_pins')
    1818
    1919request = REQUEST
     
    3939            }
    4040    pincat.modifyRecord(**dict)
    41     logger.info('"%s","disabled pin","%s"' % (member,uid))
     41    logger.info('%s disabled pin %s' % (member,uid))
    4242return request.RESPONSE.redirect("%s/campus/pins/search_pins" % context.portal_url())
  • WAeUP_SRP/trunk/skins/waeup_pins/enable_pins.py

    r1082 r1568  
    1515current = DateTime.DateTime().strftime("%d-%m-%y_%H_%M_%S")
    1616import logging
    17 logger = logging.getLogger('Pin.Enable')
     17logger = logging.getLogger('Skins.enable_pins')
    1818
    1919request = REQUEST
     
    4242            }
    4343    pincat.modifyRecord(**dict)
    44     logger.info('"%s","enabled pin","%s"' % (member,pid))
     44    logger.info('%s enabled pin %s' % (member,pid))
    4545return request.RESPONSE.redirect("%s/campus/pins/search_pins" % context.portal_url())
  • WAeUP_SRP/trunk/skins/waeup_student/search_students_form.pt

    r1557 r1568  
    2727      <nobr><a href="statistics_reg_view">Registration Statistics</a>
    2828      &nbsp;&nbsp;&nbsp;&nbsp;</nobr>       
    29       <nobr><a href="list_students">Cleared Student Export</a>
    30       &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
    3129      <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>
    3331         &nbsp;&nbsp;&nbsp;&nbsp;</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         &nbsp;&nbsp;&nbsp;&nbsp;
     34         <nobr><a href="add_student">Add Student Record</a></nobr>
    3535      </span>
    3636      </strong>
     
    4242          </span>
    4343          <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>
    4545          <span tal:condition="info/certificate_level|nothing" tal:omit-tag="">
    4646            who is CourseAdviser for
    4747            <span tal:repeat="cl info/certificate_level" tal:content="cl" />
    48           </span>
     48          </span>.
    4949          <br /><br />
    5050        <span tal:replace="structure rendered" />
Note: See TracChangeset for help on using the changeset viewer.