Permalink
Browse files

Detect duplex option

  • Loading branch information...
simoncadman committed Sep 27, 2013
1 parent 5ab76db commit 4d161f9d329d1ce9e3349712f9f1eaf7a01ab8f7
Showing with 16 additions and 14 deletions.
  1. +1 −1 backend.py
  2. +1 −1 deleteaccount.py
  3. +1 −1 dynamicppd.py
  4. +1 −1 listcloudprinters.py
  5. +8 −6 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 221716"
+ CCPVersion = "20130927 230441"
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 221716"
+ CCPVersion = "20130927 230441"
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 221716"
+ CCPVersion = "20130927 230441"
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 221716"
+ CCPVersion = "20130927 230441"
print "CUPS Cloud Print Printer Lister Version " + CCPVersion
sys.exit(0)
View
@@ -410,14 +410,16 @@ def getInternalName ( self, details, internalType, capabilityName = None, existi
# use fixed options for options we recognise
if internalType == "option":
# option
- #if capabilityName == "ns1:Colors":
- # fixedNameMap['Black'] = "Black"
- pass
+ if capabilityName == "psk:JobDuplexAllDocumentsContiguously":
+ fixedNameMap['psk:OneSided'] = "None"
+ fixedNameMap['psk:TwoSidedShortEdge'] = "DuplexTumble"
+ fixedNameMap['psk:TwoSidedLongEdge'] = "DuplexNoTumble"
else:
# capability
- fixedNameMap['ns1:Colors'] = "ColorModel"
- fixedNameMap['ns1:PrintQualities'] = "OutputMode"
- fixedNameMap['ns1:InputBins'] = "InputSlot"
+ fixedNameMap['ns1:Colors'] = "ColorModel"
+ fixedNameMap['ns1:PrintQualities'] = "OutputMode"
+ fixedNameMap['ns1:InputBins'] = "InputSlot"
+ fixedNameMap['psk:JobDuplexAllDocumentsContiguously'] = "Duplex"
for itemName in fixedNameMap:
if details['name'] == itemName:
View
@@ -19,7 +19,7 @@
if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
- CCPVersion = "20130927 221716"
+ CCPVersion = "20130927 230441"
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 221716"
+ CCPVersion = "20130927 230441"
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 221716"
+ CCPVersion = "20130927 230441"
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 221716"
+ CCPVersion = "20130927 230441"
print "CUPS Cloud Print Upgrade Script Version " + CCPVersion
sys.exit(0)

0 comments on commit 4d161f9

Please sign in to comment.