summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f947834)
raw | patch | inline | side by side (parent: f947834)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Tue, 6 Jan 2009 16:13:13 +0000 (16:13 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Tue, 6 Jan 2009 16:13:13 +0000 (16:13 +0000) |
share/extensions/Barcode/EAN13.py | patch | blob | history | |
share/extensions/render_barcode.py | patch | blob | history |
index c1d728695325ec6680a8ddbedc8a5fa5171add88..3450893fc19cf5a25b2809f81f21d8bc6fc456b3 100644 (file)
return str(z)
def varifyChecksum(self, number):
- new = self.computeChecksum(number[:12])
+ new = self.getChecksum(number[:12])
existing = number[12]
return new == existing
index 77cb3135b5ea40a8e6268cd34de665b40a6ca4c5..cdcb022cb5312314dcef7cb8dbe658dde787139c 100644 (file)
'x' : x,
'y' : y,
} )
- if object:
+ if object is not None:
barcode = object.generate()
- if barcode:
+ if barcode is not None:
self.current_layer.append(barcode)
else:
sys.stderr.write("No barcode was generated\n")