Changeset 3033

Show
Ignore:
Timestamp:
10/12/06 18:03:47 (18 years ago)
Author:
jerome
Message:

Added lazy retrieval of a printer's coefficients.
Removed pykoef from setup script.
Added pksetup to setup script.

Location:
pykota/trunk
Files:
1 removed
4 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/MANIFEST.in

    r2847 r3033  
    11include README FAQ COPYING LICENSE TODO NEWS CREDITS SECURITY MANIFEST.in  
    2 include clean.sh checkdeps.py bin/pykoef bin/pkturnkey bin/pkmail bin/pkbanner 
     2include clean.sh checkdeps.py bin/pkturnkey bin/pkmail bin/pkbanner 
    33include bin/autopykota bin/dumpykota bin/cupspykota bin/edpykota bin/warnpykota 
    44include bin/repykota bin/pykotme bin/pykosd bin/pkprinters bin/pkbcodes bin/pkinvoice 
    5 include bin/pknotify bin/pkusers 
     5include bin/pknotify bin/pkusers bin/pksetup 
    66include bin/waitprinter.sh bin/papwaitprinter.sh bin/mailandpopup.sh bin/README 
    77recursive-include po README *.sh *.po *.mo *.pot 
  • pykota/trunk/pykota/storage.py

    r2953 r3033  
    171171        self.MaxJobSize = None 
    172172        self.PassThrough = None 
    173         self.Coefficients = None 
    174173         
    175174    def __getattr__(self, name) :     
     
    177176        if name == "LastJob" :  
    178177            self.LastJob = self.parent.getPrinterLastJob(self) 
     178            self.parent.tool.logdebug("Lazy retrieval of last job for printer %s" % self.Name) 
    179179            return self.LastJob 
     180        elif name == "Coefficients" :     
     181            self.Coefficients = self.parent.tool.config.getPrinterCoefficients(self.Name) 
     182            self.parent.tool.logdebug("Lazy retrieval of coefficients for printer %s : %s" % (self.Name, self.Coefficients)) 
     183            return self.Coefficients 
    180184        else : 
    181185            raise AttributeError, name 
  • pykota/trunk/setup.py

    r3005 r3033  
    127127      url = "http://www.pykota.com", 
    128128      packages = [ "pykota", "pykota.storages", "pykota.loggers", "pykota.accounters", "pykota.reporters" ], 
    129       scripts = [ "bin/pknotify", "bin/pkusers", "bin/pkinvoice", "bin/pykoef", \ 
     129      scripts = [ "bin/pknotify", "bin/pkusers", "bin/pkinvoice", "bin/pksetup", \ 
    130130                  "bin/pkturnkey", "bin/pkbcodes", "bin/pkmail", \ 
    131131                  "bin/pkbanner", "bin/autopykota", "bin/dumpykota", \ 
  • pykota/trunk/TODO

    r3026 r3033  
    4141         
    4242        - PJL for non-networked backends (see ML's history) 
    43          
    44         - Make the SNMP and PJL delay and number of loops a new configuration 
    45           directive. 
    4643         
    4744        - Add the listing of the member printers in pkprinters if the printer