Permalink
Browse files

Added (undocumented) client=webui param so we get FedEx office printe…

…r as an option in US
  • Loading branch information...
simoncadman committed Dec 2, 2012
1 parent 642ffa3 commit 95b04ea0dc206bb55d81c77b0c62ee37f4a67ac8
Showing with 2 additions and 2 deletions.
  1. +2 −2 printer.py
View
@@ -42,7 +42,7 @@ def getPrinters(self):
"""
allprinters = []
for requestor in self.requestors:
- responseobj = requestor.doRequest('search?connection_status=ALL')
+ responseobj = requestor.doRequest('search?connection_status=ALL&client=webui')
if 'printers' in responseobj and len(responseobj['printers']) > 0:
for printer in responseobj['printers']:
printer['account'] = requestor.getAccount()
@@ -139,7 +139,7 @@ def getPrinterIDByURI(self, uri):
requestor = self.findRequestorForAccount(urllib.unquote(account))
if requestor == None:
return None, None
- responseobj = requestor.doRequest('search?connection_status=ALL&q=%s' % (printername))
+ responseobj = requestor.doRequest('search?connection_status=ALL&client=webui&q=%s' % (printername))
printername = urllib.unquote(printername)
if 'printers' in responseobj and len(responseobj['printers']) > 0:
for printerdetail in responseobj['printers']:

0 comments on commit 95b04ea

Please sign in to comment.