Changeset 12893 for main


Ignore:
Timestamp:
29 Apr 2015, 10:14:45 (10 years ago)
Author:
Henrik Bettermann
Message:

Adjust code to documentation.

Location:
main/waeup.kofa/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/docs/source/userdocs/datacenter/logging.rst

    r12892 r12893  
    100100  2015-04-29 10:15:28,703 - INFO - admin - app2015_262037 - Application started
    101101  2015-04-29 10:15:28,704 - INFO - admin - applicants.browser.ApplicantManageFormPage - app2015_262037 - saved: reg_number + sex + course1 + date_of_birth
     102  2015-04-29 10:16:27,654 - INFO - admin - applicants.browser.ApplicationFeePaymentAddPage - app2015_262037 - added: p4302953958139
    102103  2015-04-29 10:16:38,921 - INFO - admin - app2015_262037 - Payment approved
    103   2015-04-29 10:16:38,922 - INFO - admin - applicants.browser.OnlinePaymentApprovePage - app2015_262037 - payment approved: p4302953958139
     104  2015-04-29 10:16:38,922 - INFO - admin - applicants.browser.OnlinePaymentApprovePage - app2015_262037 - approved: p4302953958139
    104105  2015-04-29 10:16:58,026 - INFO - admin - app2015_262037 - Application submitted
    105106  2015-04-29 10:17:01,040 - INFO - admin - applicants.browser.ApplicantManageFormPage - app2015_262037 - saved: course_admitted
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py

    r12892 r12893  
    603603                created.append(result.applicant_id)
    604604            else:
    605                 ob_class = self.__implemented__.__name__.replace('waeup.kofa.','')
     605                ob_class = self.__implemented__.__name__.replace(
     606                    'waeup.kofa.','')
    606607                applicants_root.logger.info(
    607608                    '%s - %s - %s' % (ob_class, result.applicant_id, msg))
     
    656657            return
    657658        self.context[payment.p_id] = payment
     659        self.context.writeLogMessage(self, 'added: %s' % payment.p_id)
    658660        self.flash(_('Payment ticket created.'))
    659661        self.redirect(self.url(payment))
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/payment.py

    r11599 r12893  
    5252                msg = log = 'Error: %s' % sys.exc_info()[1]
    5353                return 'danger', msg, log
    54         log = 'payment approved: %s' % self.p_id
     54        log = 'approved: %s' % self.p_id
    5555        msg = _('Payment approved')
    5656        flashtype = 'success'
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py

    r12664 r12893  
    892892        self.assertTrue(
    893893            'zope.mgr - applicants.browser.OnlinePaymentApprovePage - '
    894             '%s - payment approved' % self.applicant.applicant_id
     894            '%s - approved' % self.applicant.applicant_id
    895895            in logcontent)
    896896        # ... and in payments.log
Note: See TracChangeset for help on using the changeset viewer.