Changeset 2919 for pykota/trunk
- Timestamp:
- 06/06/06 00:08:49 (18 years ago)
- Location:
- pykota/trunk
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/cupspykota
r2918 r2919 286 286 if haspkipplib : 287 287 self.ControlFile = "NotUsedAnymore" 288 cupsurl = "http://%s:%s" % \ 289 (os.environ.get("CUPS_SERVER") or "localhost", \ 290 os.environ.get("IPP_PORT", "631")) 291 self.logdebug("Querying CUPS server at %s" % cupsurl) 292 cupsserver = pkipplib.CUPS(url=cupsurl) # TODO : username and password 288 self.logdebug("Querying CUPS server...") 289 cupsserver = pkipplib.CUPS() # TODO : username and password and/or encryption 293 290 answer = cupsserver.getJobAttributes(self.JobId) 294 291 if answer is None : 295 self.printInfo(_("Network error while querying the CUPS server at %s (maybe incorrect authentication)") \296 % cups url, "error")292 self.printInfo(_("Network error while querying the CUPS server : %s") \ 293 % cupsserver.lastErrorMessage, "error") 297 294 connerror = True 298 295 else : 299 self.logdebug("CUPS server a t %s answered without error." % cupsurl)296 self.logdebug("CUPS server answered without error.") 300 297 try : 301 298 john = answer.job["job-originating-host-name"] -
pykota/trunk/pykota/version.py
r2904 r2919 22 22 # 23 23 24 __version__ = "1.25alpha 5_unofficial"24 __version__ = "1.25alpha6_unofficial" 25 25 26 26 __doc__ = "PyKota : a complete Printing Quota Solution for CUPS."