Permalink
Browse files

Default duplex to non duplex

  • Loading branch information...
simoncadman committed Oct 5, 2013
1 parent 4d161f9 commit 530fa4c3118b3dd8aea625737a8960311c20bc03
Showing with 14 additions and 8 deletions.
  1. +1 −1 backend.py
  2. +1 −1 deleteaccount.py
  3. +1 −1 dynamicppd.py
  4. +1 −1 listcloudprinters.py
  5. +6 −0 printer.py
  6. +1 −1 reportissues.py
  7. +1 −1 setupcloudprint.py
  8. +1 −1 submitjob.py
  9. +1 −1 upgrade.py
View
@@ -20,7 +20,7 @@
if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
- CCPVersion = "20130927 230441"
+ CCPVersion = "20131005 192654"
print "CUPS Cloud Print CUPS Backend Version " + CCPVersion
sys.exit(0)
View
@@ -20,7 +20,7 @@
if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
- CCPVersion = "20130927 230441"
+ CCPVersion = "20131005 192654"
print "CUPS Cloud Print Delete Account Script Version " + CCPVersion
sys.exit(0)
View
@@ -19,7 +19,7 @@
if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
- CCPVersion = "20130927 230441"
+ CCPVersion = "20131005 192654"
print "CUPS Cloud Print Dynamic PPD Generator Version " + CCPVersion
sys.exit(0)
View
@@ -21,7 +21,7 @@
if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
- CCPVersion = "20130927 230441"
+ CCPVersion = "20131005 192654"
print "CUPS Cloud Print Printer Lister Version " + CCPVersion
sys.exit(0)
View
@@ -297,6 +297,12 @@ def getCapabilities ( self, gcpid, cupsprintername, overrideoptionsstring ) :
value = optionparts[1]
overridecapabilities[option] = value
+ overrideDefaultDefaults = { 'Duplex' : 'None' }
+
+ for capability in overrideDefaultDefaults:
+ if capability not in overridecapabilities:
+ overridecapabilities[capability] = overrideDefaultDefaults[capability]
+
attrs = cups.PPD(connection.getPPD(cupsprintername)).attributes
for attr in attrs:
if attr.name.startswith('Default'):
View
@@ -19,7 +19,7 @@
if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
- CCPVersion = "20130927 230441"
+ CCPVersion = "20131005 192654"
print "CUPS Cloud Print Issue Reporting Script Version " + CCPVersion
sys.exit(0)
View
@@ -21,7 +21,7 @@
if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
- CCPVersion = "20130927 230441"
+ CCPVersion = "20131005 192654"
print "CUPS Cloud Print Setup Script Version " + CCPVersion
sys.exit(0)
View
@@ -21,7 +21,7 @@
if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
- CCPVersion = "20130927 230441"
+ CCPVersion = "20131005 192654"
print "CUPS Cloud Print Submit Job Version " + CCPVersion
sys.exit(0)
View
@@ -22,7 +22,7 @@
if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
- CCPVersion = "20130927 230441"
+ CCPVersion = "20131005 192654"
print "CUPS Cloud Print Upgrade Script Version " + CCPVersion
sys.exit(0)

0 comments on commit 530fa4c

Please sign in to comment.