Changes in / [7f1098c:279640c]


Ignore:
Location:
server
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • server/lib/TODO

    r1b6dc13 rf0807b8  
    1616
    1717- add support in printer.py for:
    18      [x] print job
    19      [x] validate job
     18     [ ] print job
     19     [ ] validate job
    2020     [x] pause printer
    2121     [x] resume printer
     
    3030     [x] resume job
    3131
    32 - server stuff
    33      [ ] write convenience client-side API
    34      [ ] setuptools entry points for notification system (e.g. zephyr)
    35      [ ] deal with queue management/reordering
    36      [ ] add support for volume management
    37      [ ] support authentication/security
    38 
    39 - client-ish stuff
    40      [ ] rewrite gbr/gbq/etc. scripts to use client API
    41      [ ] rewrite server-side queue display to use API
    42 
    43 - misc
    44      [ ] make sure all CUPS commands are compatible
    45      [ ] deal with all the code marked 'XXX'
    46 
    47 - documentation and testing
    48      [ ] finish test cases for printer.py
    49      [ ] write test cases for requests.py
    50      [ ] write test cases for future client API
    51      [ ] all the documentation
    52      [ ] check test case coverage ( http://nedbatchelder.com/code/coverage/ )
    53      [ ] why doesn't the bug tracker work?! relatedly, figure out a
    54          solution that makes it easier for non-MIT developers to contribute
     32- finish test cases for printer.py
     33- write test cases for requests.py
     34- write convenience client-side API
     35- write test cases for future client API
     36- all the documentation
     37- deal with all the code marked 'XXX'
     38- setuptools entry points for notification system (e.g. zephyr)
     39- check test case coverage ( http://nedbatchelder.com/code/coverage/ )
     40- deal with queue management/reordering
     41- add support for volume management
     42- make sure all CUPS commands are compatible
     43- rewrite gbr/gbq/etc. scripts to use client API
     44- rewrite server-side queue display to use API
     45- support authentication/security
     46- why doesn't the bug tracker work?! relatedly, figure out a
     47  solution that makes it easier for non-MIT developers to contribute
    5548
    5649Ponies
  • server/lib/gutenbach-config

    rab7c1dd ra9eb577e  
    11port: 8000
    22loglevel: debug
    3 #logfile: gutenbach.log
     3logfile: gutenbach.log
    44
    55printers:
  • server/lib/gutenbach/server/job.py

    rbd5bffc r57bc2dc  
    5656    def __del__(self):
    5757        if self.player:
    58             if self.player.is_playing:
    59                 self.player.mplayer_stop()
    60             if self.player.fh:
    61                 if self.player.fh.closed:
    62                     self.player.fh.close()
     58            self.player.mplayer_stop()
    6359            self.player = None
    64 
    65         self.document = None
     60        if self.document and not self.document.closed:
     61            self.document.close()
     62            self.document = None
     63
    6664        self.id = None
    6765        self.creator = None
  • server/lib/gutenbach/server/player.py

    rbd5bffc rcf0d7e8  
    2828    def is_playing(self):
    2929        if self._dryrun:
    30             return self.ident is not None and \
    31                    self.isAlive() and \
    32                    not self.is_done
     30            return self.isAlive() and not self.is_done
    3331        else:
    34             return self.ident is not None and \
    35                    self.isAlive() and \
    36                    not self.is_done and \
    37                    self.player is not None and \
    38                    self.player.poll() is None
    39        
     32            return self.isAlive() and \
     33                      not self.is_done and \
     34                      self.player is not None and \
     35                      self.player.poll() is None
     36
    4037    @property
    4138    @sync
     
    124121                logger.warning("trying to pause non-playing job")
    125122        time.sleep(self._lag)
    126 
     123               
    127124    def mplayer_stop(self):
    128         # Note: Inner lock due to join.
     125        # Note: Inner Lock due to join.
    129126        with self.lock:
    130127            if self.is_playing:
     
    137134                logger.warning("trying to stop non-playing job")
    138135        self.join()
    139 
  • server/test/server/job.py

    rbd5bffc radf8cf0  
    66import sys
    77import time
    8 import logging
    98
    109def make_tempfile():
     
    205204
    206205if __name__ == "__main__":
    207     logging.basicConfig(loglevel=logging.CRITICAL)
    208206    unittest.main()
Note: See TracChangeset for help on using the changeset viewer.