Fix some bugs with printer profile stuff, per recent rattail changes.

This commit is contained in:
Lance Edgar 2014-09-26 15:31:34 -07:00
parent 9d2a35c8b1
commit 350c944e91
3 changed files with 4 additions and 4 deletions

View file

@ -141,7 +141,7 @@ def printer_settings(request):
read_profile = HTTPFound(location=request.route_url(
'label_profile.read', uuid=profile.uuid))
printer = profile.get_printer()
printer = profile.get_printer(request.rattail_config)
if not printer:
request.session.flash("Label profile \"%s\" does not have a functional "
"printer spec." % profile)