Changeset 14793


Ignore:
Timestamp:
12 Aug 2017, 06:29:57 (7 years ago)
Author:
Henrik Bettermann
Message:

Save serviceTypeId in logfile.

Location:
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita/applicantsbrowser.py

    r14791 r14793  
    262262        self.hashvalue = hashlib.sha512(hashargs).hexdigest()
    263263        self.customer = self.context.__parent__
    264         self.customer.writeLogMessage(self, 'RRR retrieved: %s' % self.rrr)
     264        self.customer.writeLogMessage(self,
     265            'RRR retrieved: %s, ServiceTypeId: %s'
     266            % (self.rrr, self.serviceTypeId))
     267
    265268        return
    266269
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita/studentsbrowser.py

    r14791 r14793  
    278278        self.hashvalue = hashlib.sha512(hashargs).hexdigest()
    279279        self.customer = self.context.student
    280         self.customer.writeLogMessage(self, 'RRR retrieved: %s' % self.rrr)
     280        self.customer.writeLogMessage(self,
     281            'RRR retrieved: %s, ServiceTypeId: %s'
     282            % (self.rrr, self.serviceTypeId))
    281283        return
    282284
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita/tests.py

    r14790 r14793  
    129129    https = HTTPS
    130130    api_key = API_KEY
     131    serviceTypeId = SERVICETYPEID
    131132
    132133    responseurl = 'http://xxxx'
     
    209210        self.assertTrue(
    210211            'zope.mgr - kofacustom.nigeria.remita.studentsbrowser.RemitaPageStudent'
    211             ' - K1000000 - RRR retrieved: %s' % self.rrr in logcontent)
     212            ' - K1000000 - RRR retrieved: %s, ServiceTypeId: %s'
     213            % (self.rrr, self.serviceTypeId) in logcontent)
    212214        # Means of testing end here.
    213215        return
     
    351353    #orderId = '3456346346'
    352354    rrr = u'280007640804'
     355    serviceTypeId = SERVICETYPEID
    353356    #amount = 1000.0
    354357
     
    388391        self.assertTrue(
    389392            'zope.mgr - kofacustom.nigeria.remita.applicantsbrowser.RemitaPageApplicant'
    390             ' - %s - RRR retrieved: %s'
    391             % (self.applicant.applicant_id, self.rrr) in logcontent)
     393            ' - %s - RRR retrieved: %s, ServiceTypeId: %s'
     394            % (self.applicant.applicant_id, self.rrr, self.serviceTypeId)
     395            in logcontent)
    392396        # Means of testing end here.
    393397        return
Note: See TracChangeset for help on using the changeset viewer.