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

Adjust code to documentation.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/applicants
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • 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.