barcode controller: Remove quiescence zone left and right
When creating reports with barcode labels, there is simply no space for excessive quiescence zones. Let's give control of layout to the report template, not to the barcode renderer.
This commit is contained in:
parent
26bf90e5f9
commit
768d0fb9d3
|
@ -86,7 +86,7 @@ class ReportController(Controller):
|
||||||
at the bottom of the output image
|
at the bottom of the output image
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
barcode = request.registry['report'].barcode(type, value, width=width, height=height, humanreadable=humanreadable)
|
barcode = request.registry['report'].barcode(type, value, width=width, height=height, humanreadable=humanreadable, quiet=0)
|
||||||
except (ValueError, AttributeError):
|
except (ValueError, AttributeError):
|
||||||
raise exceptions.HTTPException(description='Cannot convert into barcode.')
|
raise exceptions.HTTPException(description='Cannot convert into barcode.')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue