Ignore:
Timestamp:
Jan 12, 2012, 12:58:40 AM (12 years ago)
Author:
Jessica B. Hamrick <jhamrick@…>
Branches:
no-cups
Children:
609a9b0
Parents:
190bfb4
git-author:
Jessica B. Hamrick <jhamrick@…> (01/12/12 00:58:40)
git-committer:
Jessica B. Hamrick <jhamrick@…> (01/12/12 00:58:40)
Message:

Test cases for playing/pausing/stopping jobs

File:
1 edited

Legend:

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

    r951ab1b r2620618  
    44import logging
    55import os
     6import time
    67
    78# initialize logger
     
    2324        self.name = name
    2425        self.priority = priority
     26        self._why_done = None
    2527
    2628        if document is not None:
    2729            self.spool(document)
    28 
    29         self._why_done = None
    3030
    3131    def __repr__(self):
     
    183183    @property
    184184    def state(self):
    185         """
     185        """State status codes; equivalent to the IPP job-state status
     186        codes.
     187       
    186188        State transitions are as follows:
    187 HELD ---> PENDING ---> PROCESSING <--> STOPPED (aka paused)
    188              ^              |---> CANCELLED
    189              |              |---> ABORTED
    190              |              |---> COMPLETE ---|
    191              |--------------------------------|
     189        HELD ---> PENDING ---> PROCESSING <--> STOPPED (aka paused)
     190                     ^              |---> CANCELLED
     191                     |              |---> ABORTED
     192                     |              |---> COMPLETE ---|
     193                     |--------------------------------|
     194                     
    192195        """
    193196        if self.is_ready:
Note: See TracChangeset for help on using the changeset viewer.