Changeset 2620618 for server/lib/gutenbach/server/job.py
- Timestamp:
- Jan 12, 2012, 12:58:40 AM (12 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/lib/gutenbach/server/job.py
r951ab1b r2620618 4 4 import logging 5 5 import os 6 import time 6 7 7 8 # initialize logger … … 23 24 self.name = name 24 25 self.priority = priority 26 self._why_done = None 25 27 26 28 if document is not None: 27 29 self.spool(document) 28 29 self._why_done = None30 30 31 31 def __repr__(self): … … 183 183 @property 184 184 def state(self): 185 """ 185 """State status codes; equivalent to the IPP job-state status 186 codes. 187 186 188 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 192 195 """ 193 196 if self.is_ready:
Note: See TracChangeset
for help on using the changeset viewer.