Changeset c1cebbc for server/lib/gutenbach/server/printer.py
- Timestamp:
- Jan 21, 2012, 2:17:07 PM (12 years ago)
- Branches:
- no-cups
- Children:
- 21b140d
- Parents:
- c500bc2
- git-author:
- Jessica B. Hamrick <jhamrick@…> (01/21/12 14:17:07)
- git-committer:
- Jessica B. Hamrick <jhamrick@…> (01/21/12 14:17:07)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/lib/gutenbach/server/printer.py
rc500bc2 rc1cebbc 402 402 pass 403 403 404 def restart_job(self): 405 pass 406 407 def promote_job(self, job_id): 404 def restart_job(self, job_id, requesting_user_name=None): 405 job = self.get_job(job_id) 406 try: 407 job.restart() 408 except InvalidJobStateException: 409 # XXX 410 raise ipp.errors.ClientErrorNotPossible 411 412 with self.lock: 413 self.finished_jobs.remove(job_id) 414 self.pending_jobs.append(job_id) 415 416 def promote_job(self, job_id, requesting_user_name=None): 408 417 # According to RFC 3998, we need to put the job at the front 409 418 # of the queue (so that when the currently playing job
Note: See TracChangeset
for help on using the changeset viewer.