Ignore:
Timestamp:
Jan 11, 2012, 10:22:47 PM (12 years ago)
Author:
Isaac Evans <ine@…>
Branches:
no-cups
Children:
d518298
Parents:
345c476
git-author:
Isaac Evans <ine@…> (01/11/12 22:22:47)
git-committer:
Isaac Evans <ine@…> (01/11/12 22:22:47)
Message:

Added tests for printer

File:
1 edited

Legend:

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

    r345c476 ra2b0582  
    153153    @property
    154154    def state(self):
     155        """
     156        State transitions are as follows:
     157HELD ---> PENDING ---> PROCESSING <--> STOPPED (aka paused)
     158             ^              |---> CANCELLED
     159             |              |---> ABORTED
     160             |              |---> COMPLETE ---|
     161             |--------------------------------|
     162        """
    155163        if self.is_ready:
    156164            state = States.PENDING
Note: See TracChangeset for help on using the changeset viewer.