Changeset 3033 for pykota/trunk/pykota

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.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • 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