Changeset 15473 for main/waeup.aaue/trunk/src/waeup
- Timestamp:
- 21 Jun 2019, 09:06:35 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/interswitch/browser.py
r15471 r15473 19 19 import hashlib 20 20 import grok 21 from xml.dom import minidom 21 22 from zope.interface import Interface 22 23 from zope.component import queryAdapter … … 158 159 self.context.provider_amt = provider_amt 159 160 self.context.gateway_amt = GATEWAY_AMT 160 161 xmlitems = '' 162 xmldoc = minidom.parseString(xmltext) 163 itemlist = xmldoc.getElementsByTagName('item_detail') 164 for s in itemlist: 165 xmlitems += "%s: %s, N%s, %s (%s) " % ( 166 s.attributes['item_id'].value, 167 s.attributes['item_name'].value, 168 int(s.attributes['item_amt'].value)/100, 169 s.attributes['acct_num'].value, 170 s.attributes['bank_id'].value, 171 ) 172 self.context.p_split_data = xmlitems 161 173 hashargs = ( 162 174 self.context.p_id + … … 590 602 self.context.gateway_amt = self.amount_auth - gateway_net_amt( 591 603 self.amount_auth) 592 593 from xml.dom import minidom594 604 xmlitems = '' 595 605 xmldoc = minidom.parseString(xmltext) … … 602 612 s.attributes['acct_num'].value, 603 613 s.attributes['bank_id'].value, 604 605 614 ) 606 607 615 self.context.p_split_data = xmlitems 608 609 610 611 616 hashargs = ( 612 617 self.context.p_id +
Note: See TracChangeset for help on using the changeset viewer.