Skip to content
This repository has been archived by the owner on Aug 21, 2020. It is now read-only.

Commit

Permalink
Show display name within list cloud printer script
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncadman committed Oct 8, 2013
1 parent d6beac3 commit 0f576cf
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
CCPVersion = "20131006 200957"
CCPVersion = "20131008 210502"
print "CUPS Cloud Print CUPS Backend Version " + CCPVersion
sys.exit(0)

Expand Down
2 changes: 1 addition & 1 deletion deleteaccount.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
CCPVersion = "20131006 200957"
CCPVersion = "20131008 210502"
print "CUPS Cloud Print Delete Account Script Version " + CCPVersion
sys.exit(0)

Expand Down
2 changes: 1 addition & 1 deletion dynamicppd.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
CCPVersion = "20131006 200957"
CCPVersion = "20131008 210502"
print "CUPS Cloud Print Dynamic PPD Generator Version " + CCPVersion
sys.exit(0)

Expand Down
7 changes: 5 additions & 2 deletions listcloudprinters.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
CCPVersion = "20131006 200957"
CCPVersion = "20131008 210502"
print "CUPS Cloud Print Printer Lister Version " + CCPVersion
sys.exit(0)

Expand All @@ -33,4 +33,7 @@
sys.exit(1)

for foundprinter in printers:
print(foundprinter['name'].encode('ascii', 'replace') + ' - ' + printer.printerNameToUri(foundprinter['account'], foundprinter['name'].encode('ascii', 'replace')) + " - " + foundprinter['account'])
printerName = foundprinter['name']
if 'displayName' in foundprinter:
printerName = foundprinter['displayName']
print(printerName.encode('ascii', 'replace') + ' - ' + printer.printerNameToUri(foundprinter['account'], foundprinter['name'].encode('ascii', 'replace')) + " - " + foundprinter['account'])
2 changes: 1 addition & 1 deletion reportissues.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
CCPVersion = "20131006 200957"
CCPVersion = "20131008 210502"
print "CUPS Cloud Print Issue Reporting Script Version " + CCPVersion
sys.exit(0)

Expand Down
2 changes: 1 addition & 1 deletion setupcloudprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
CCPVersion = "20131006 200957"
CCPVersion = "20131008 210502"
print "CUPS Cloud Print Setup Script Version " + CCPVersion
sys.exit(0)

Expand Down
2 changes: 1 addition & 1 deletion submitjob.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
CCPVersion = "20131006 200957"
CCPVersion = "20131008 210502"
print "CUPS Cloud Print Submit Job Version " + CCPVersion
sys.exit(0)

Expand Down
2 changes: 1 addition & 1 deletion upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
CCPVersion = "20131006 200957"
CCPVersion = "20131008 210502"
print "CUPS Cloud Print Upgrade Script Version " + CCPVersion
sys.exit(0)

Expand Down

0 comments on commit 0f576cf

Please sign in to comment.