rachmatg / iso8583py

Automatically exported from code.google.com/p/iso8583py
GNU General Public License v3.0
0 stars 0 forks source link

Bit 52 not working ... #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. p.setBit(52,"00000105")

What is the expected output? What do you see instead?

Want that the bit is set!

The bit wasn't set. But if you started debug you can see the bit inside the
bitmap is set, but the value not.

What version of the product are you using? On what operating system?
Last version, Any.

In log we can see the execution of example1.py with p.setBit(52,"00000105")
in debug mode.

Original issue reported on code.google.com by igo...@gmail.com on 15 Aug 2009 at 1:47

Attachments:

GoogleCodeExporter commented 8 years ago
Fixed. Revision 22.

Changes:
=== modified file 'ISO8583/ISO8583.py'
--- ISO8583/ISO8583.py  2009-04-25 15:02:10 +0000
+++ ISO8583/ISO8583.py  2009-08-15 02:13:15 +0000
@@ -384,8 +384,9 @@
                if self.getBitType(bit) == 'LLL':
                        self.__setBitTypeLLL(bit, value)

-               if self.getBitType(bit) == 'N' or self.getBitType(bit) == 'A' or
self.getBitType(bit) == 'ANS':
+               if self.getBitType(bit) == 'N' or self.getBitType(bit) == 'A' or
self.getBitType(bit) == 'ANS' or
self.getBitType(bit) == 'B':
                        self.__setBitTypeN(bit, value)
+

Original comment by igo...@gmail.com on 15 Aug 2009 at 2:16

GoogleCodeExporter commented 8 years ago
In version 1.1 we found method setBitTypeLL, setBitTypeLLL, setBitTypeN, 
setBitTypeA,
setBitTypeANS and setBitTypeB.

Original comment by igo...@gmail.com on 21 Aug 2009 at 6:25