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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sebastien Robin
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
Show 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