Ignore:
Timestamp:
Jan 21, 2012, 5:20:10 PM (12 years ago)
Author:
Jessica B. Hamrick <jhamrick@…>
Branches:
no-cups
Children:
1b6dc13, 441604f
Parents:
f0807b8
git-author:
Jessica B. Hamrick <jhamrick@…> (01/21/12 17:19:59)
git-committer:
Jessica B. Hamrick <jhamrick@…> (01/21/12 17:20:10)
Message:

Add support for print-job and verify-job in printer.py

File:
1 edited

Legend:

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

    r9225351 r57bc2dc  
    5353        """
    5454        return cmp(self.priority, other.priority)
     55
     56    def __del__(self):
     57        if self.player:
     58            self.player.mplayer_stop()
     59            self.player = None
     60        if self.document and not self.document.closed:
     61            self.document.close()
     62            self.document = None
     63
     64        self.id = None
     65        self.creator = None
     66        self.name = None
     67        self.priority = None
     68        self._why_done = None
    5569
    5670    ######################################################################
     
    259273        if not hasattr(document, "close"):
    260274            raise errors.InvalidDocument, "no close attribute"
     275        if not hasattr(document, "closed"):
     276            raise errors.InvalidDocument, "no closed attribute"
    261277
    262278    def spool(self, document=None):
Note: See TracChangeset for help on using the changeset viewer.