Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
9093a999
Commit
9093a999
authored
Apr 23, 2012
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
generate barcode image for code128 barcode, i.e. without input data in text.
parent
99ddd946
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
bt5/erp5_base/ExtensionTemplateItem/BarcodeUtils.py
bt5/erp5_base/ExtensionTemplateItem/BarcodeUtils.py
+1
-0
bt5/erp5_base/bt/revision
bt5/erp5_base/bt/revision
+1
-1
No files found.
bt5/erp5_base/ExtensionTemplateItem/BarcodeUtils.py
View file @
9093a999
...
@@ -18,6 +18,7 @@ def generateBarcodeImage(self, barcode_type, data):
...
@@ -18,6 +18,7 @@ def generateBarcodeImage(self, barcode_type, data):
elif
barcode_type
==
'code128'
:
elif
barcode_type
==
'code128'
:
from
hubarcode.code128
import
Code128Encoder
from
hubarcode.code128
import
Code128Encoder
encoder
=
Code128Encoder
(
data
)
encoder
=
Code128Encoder
(
data
)
encoder
.
text
=
''
# get barcode image only
output
=
encoder
.
get_imagedata
()
output
=
encoder
.
get_imagedata
()
elif
barcode_type
==
'qrcode'
:
elif
barcode_type
==
'qrcode'
:
import
qrcode
import
qrcode
...
...
bt5/erp5_base/bt/revision
View file @
9093a999
1021
1022
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment