|
|
|
@ -234,11 +234,12 @@ class Bureau(object):
|
|
|
|
|
self.lp["name"] = printcfg["largeprinter"]["name"]
|
|
|
|
|
self.lp["papersize"] = printcfg["largeprinter"]["papersize"]
|
|
|
|
|
self.lp["duplex"] = printcfg["largeprinter"].getboolean("duplex")
|
|
|
|
|
except KeyError:
|
|
|
|
|
except KeyError as err:
|
|
|
|
|
print(err)
|
|
|
|
|
# TODO: eventually refactor this since it could overwrite a half-broken config
|
|
|
|
|
sp_dict = {"vendorid": "", "productid": "", "inep": "",
|
|
|
|
|
"outep": "", "width": "384", "textwidth": "32",
|
|
|
|
|
"profile", None}
|
|
|
|
|
"profile", ""}
|
|
|
|
|
lp_dict = {"name": "", "papersize": "A4", "duplex": "False"}
|
|
|
|
|
printcfg["smallprinter"] = sp_dict
|
|
|
|
|
printcfg["largeprinter"] = lp_dict
|
|
|
|
|