Changeset c500bc2


Ignore:
Timestamp:
Jan 21, 2012, 1:56:58 PM (12 years ago)
Author:
Jessica B. Hamrick <jhamrick@…>
Branches:
no-cups
Children:
c1cebbc
Parents:
a9eb577e
git-author:
Jessica B. Hamrick <jhamrick@…> (01/21/12 13:56:58)
git-committer:
Jessica B. Hamrick <jhamrick@…> (01/21/12 13:56:58)
Message:

Implement promote_job function in printer.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/lib/gutenbach/server/printer.py

    r609a9b0 rc500bc2  
    405405        pass
    406406
    407     def promote_job(self):
    408         pass
     407    def promote_job(self, job_id):
     408        # According to RFC 3998, we need to put the job at the front
     409        # of the queue (so that when the currently playing job
     410        # completes, this one will go next
     411       
     412        job = self.get_job(job_id)
     413        job.priority = 1 # XXX we need to actually do something
     414                         # correct here
Note: See TracChangeset for help on using the changeset viewer.