Permalink
Browse files

Added refresh token script for crons

  • Loading branch information...
simoncadman committed Mar 9, 2014
1 parent 5b77ddc commit 50a0fcb14bd6ed022569e91286e2f944a572ad66
Showing with 10 additions and 18 deletions.
  1. +1 −1 backend.py
  2. +1 −1 deleteaccount.py
  3. +1 −1 dynamicppd.py
  4. +1 −1 listcloudprinters.py
  5. +1 −1 listdrivefiles.py
  6. +2 −10 refreshtokens.py
  7. +1 −1 reportissues.py
  8. +1 −1 setupcloudprint.py
  9. +1 −1 upgrade.py
View
@@ -32,7 +32,7 @@
Utils.SetupLogging()
# line below is replaced on commit
- CCPVersion = "20140309 224208"
+ CCPVersion = "20140309 224508"
Utils.ShowVersion(CCPVersion)
requestors, storage = Auth.SetupAuth(False)
View
@@ -24,7 +24,7 @@
Utils.SetupLogging()
# line below is replaced on commit
- CCPVersion = "20140309 224208"
+ CCPVersion = "20140309 224508"
Utils.ShowVersion(CCPVersion)
while True:
View
@@ -29,7 +29,7 @@
Utils.SetupLogging()
# line below is replaced on commit
- CCPVersion = "20140309 224208"
+ CCPVersion = "20140309 224508"
Utils.ShowVersion(CCPVersion)
def showUsage():
View
@@ -24,7 +24,7 @@
Utils.SetupLogging()
# line below is replaced on commit
- CCPVersion = "20140309 224208"
+ CCPVersion = "20140309 224508"
Utils.ShowVersion(CCPVersion)
requestors, storage = Auth.SetupAuth(True)
View
@@ -23,7 +23,7 @@
Utils.SetupLogging()
# line below is replaced on commit
- CCPVersion = "20140309 224208"
+ CCPVersion = "20140309 224508"
Utils.ShowVersion(CCPVersion)
requestors, storage = Auth.SetupAuth(True, permissions=['https://www.googleapis.com/auth/cloudprint', 'https://www.googleapis.com/auth/drive.readonly'])
View
12 refreshtokens.py 100644 → 100755
@@ -24,15 +24,7 @@
Utils.SetupLogging()
# line below is replaced on commit
- CCPVersion = "20140309 224208"
+ CCPVersion = "20140309 224508"
Utils.ShowVersion(CCPVersion)
- requestors, storage = Auth.SetupAuth(True)
- printer = Printer(requestors)
- printers = printer.getPrinters()
- if printers == None:
- print "No Printers Found"
- sys.exit(1)
-
- for foundprinter in printers:
- print printer.getListDescription(foundprinter)
+ requestors, storage = Auth.SetupAuth(False)
View
@@ -29,7 +29,7 @@
Utils.SetupLogging()
# line below is replaced on commit
- CCPVersion = "20140309 224208"
+ CCPVersion = "20140309 224508"
Utils.ShowVersion(CCPVersion)
requestors, storage = Auth.SetupAuth(True)
View
@@ -23,7 +23,7 @@
Utils.SetupLogging()
# line below is replaced on commit
- CCPVersion = "20140309 224208"
+ CCPVersion = "20140309 224508"
Utils.ShowVersion(CCPVersion)
unattended = False
View
@@ -26,7 +26,7 @@
Utils.SetupLogging()
# line below is replaced on commit
- CCPVersion = "20140309 224208"
+ CCPVersion = "20140309 224508"
Utils.ShowVersion(CCPVersion)
if not os.path.exists("/etc/cloudprint.conf"):

0 comments on commit 50a0fcb

Please sign in to comment.