From 43ef89c02d661b49ab67910272aab3a0fa9775cc Mon Sep 17 00:00:00 2001 From: Vamsi Krishna Davuluri Date: Thu, 18 Jun 2009 18:07:27 +0000 Subject: syntax errors fixed --- (limited to 'printscript.py') 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() -- cgit v0.9.1