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.
production/rebase-20171130
Harald Welte 6 years ago
parent 26bf90e5f9
commit 768d0fb9d3

@ -86,7 +86,7 @@ class ReportController(Controller):
at the bottom of the output image
"""
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):
raise exceptions.HTTPException(description='Cannot convert into barcode.')

Loading…
Cancel
Save