Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/printscript.py
diff options
context:
space:
mode:
authorVamsi Krishna Davuluri <iwikiwi@localhost.localdomain>2009-06-18 18:07:27 (GMT)
committer Vamsi Krishna Davuluri <iwikiwi@localhost.localdomain>2009-06-18 18:07:27 (GMT)
commit43ef89c02d661b49ab67910272aab3a0fa9775cc (patch)
tree78999f5e43adb8ed66f2e4596353082ed1fd96fd /printscript.py
parentf7121db4fbbb453a071f93f36ba124e263713397 (diff)
syntax errors fixed
Diffstat (limited to 'printscript.py')
-rw-r--r--printscript.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/printscript.py b/printscript.py
index 299a55c..deb3971 100644
--- a/printscript.py
+++ b/printscript.py
@@ -144,7 +144,7 @@ class serverConnection:
return self._location+'/'+_title+'.pdf'
def _printtoPrinter (self,_filename, _title=None):
- if _title = None:
+ if _title == None:
_title = self._getTitle(_filename)
printer = self._getDefaultPrinter()
self._getPrinterURI(printer) != u'cups-pdf:/'
@@ -155,18 +155,18 @@ class serverConnection:
_connection.setDefault(_printer)
def _getLiveJobQueue (self,noOfJobs=None):
- if noOfJobs = None:
+ if noOfJobs == None:
limit = 10
- else
+ else:
limit = noOfJobs
- return _connection.getJobs('not-completed', my_jobs=True, limit, -1)
+ return _connection.getJobs('not-completed', True, limit, -1)
def _getCompletedJobQueue (self,_noOfJobs = None):
- if noOfJobs = None:
+ if noOfJobs == None:
limit = 3
- else
+ else:
limit = noOfJobs
- return _connection.getJobs('completed', my_jobs=True, limit, -1)
+ return _connection.getJobs('completed', True, limit, -1)
def _clearJobQueue (self,):
printers = self._getPrintersList()