Ignore:
Timestamp:
Dec 28, 2011, 12:10:35 AM (12 years ago)
Author:
Jessica B. Hamrick <jhamrick@…>
Branches:
no-cups
Children:
ffbe41d
Parents:
e58af05
git-author:
Jessica B. Hamrick <jhamrick@…> (12/28/11 00:10:35)
git-committer:
Jessica B. Hamrick <jhamrick@…> (12/28/11 00:10:35)
Message:

Queueing jobs (and playing them through mplayer) works

File:
1 edited

Legend:

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

    re58af05 rce2abc5  
    227227                "Invalid job state: %d" % job.status)
    228228        job.document = document
     229        logger.debug("document for job %d is '%s'" % (jobid, job.document.name))
    229230        job.status = ipp.JobStates.PENDING
    230231
     
    251252        else:
    252253            job = self.active_jobs[0]
    253         return job       
     254        return job
     255
     256    def stop(self):
     257        if len(self.active_jobs) == 0:
     258            return
     259        job = self.jobs[self.active_jobs[0]]
     260        if job.player is not None:
     261            logger.info("stopping printer %s" % self.name)
     262            job.player.terminate()
    254263
    255264    def get_job(self, jobid):
Note: See TracChangeset for help on using the changeset viewer.