Changeset 2699 for pykota

Show
Ignore:
Timestamp:
02/15/06 23:42:47 (19 years ago)
Author:
jerome
Message:

Preliminary work on pkusers. Don't use it right now !

Location:
pykota/trunk
Files:
1 added
3 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/MANIFEST.in

    r2682 r2699  
    22include clean.sh checkdeps.py bin/pykoef bin/pkturnkey bin/pkmail bin/pkbanner 
    33include bin/autopykota bin/dumpykota bin/cupspykota bin/edpykota bin/warnpykota 
    4 include bin/repykota bin/pykotme bin/pykosd bin/pkprinters bin/pkbcodes bin/pkinvoice 
     4include bin/repykota bin/pykotme bin/pykosd bin/pkprinters bin/pkbcodes bin/pkinvoice bin/pkusers 
    55include bin/waitprinter.sh bin/papwaitprinter.sh bin/mailandpopup.sh bin/README 
    66recursive-include po README *.sh *.po *.mo *.pot 
  • pykota/trunk/pykota/storage.py

    r2697 r2699  
    4949            self.Description = str(description) 
    5050            self.isDirty = True     
     51             
     52    def save(self) :         
     53        """Saves the object to the database.""" 
     54        if self.isDirty : 
     55            getattr(self.parent, "save%s" % self.__class__.__name__[7:])(self) 
     56            self.isDirty = False 
    5157         
    5258class StorageUser(StorageObject) :         
     
    169175        else : 
    170176            raise AttributeError, name 
    171              
    172     def save(self) :     
    173         """Saves the billing code to disk in a single operation.""" 
    174         if self.isDirty : 
    175             self.parent.savePrinter(self) 
    176             self.isDirty = False 
    177177             
    178178    def addJobToHistory(self, jobid, user, pagecounter, action, jobsize=None, jobprice=None, filename=None, title=None, copies=None, options=None, clienthost=None, jobsizebytes=None, jobmd5sum=None, jobpages=None, jobbilling=None, precomputedsize=None, precomputedprice=None) : 
     
    475475        self.PageCounter = pagecounter 
    476476        self.isDirty = True 
    477          
    478     def save(self) :     
    479         """Saves the billing code to disk in a single operation.""" 
    480         if self.isDirty : 
    481             self.parent.saveBillingCode(self) 
    482             self.isDirty = False 
    483477         
    484478    def consume(self, pages, price) : 
  • pykota/trunk/setup.py

    r2662 r2699  
    117117      url = "http://www.librelogiciel.com/software/", 
    118118      packages = [ "pykota", "pykota.storages", "pykota.loggers", "pykota.accounters", "pykota.reporters" ], 
    119       scripts = [ "bin/pkinvoice", "bin/pykoef", "bin/pkturnkey", "bin/pkbcodes", "bin/pkmail", "bin/pkbanner", "bin/autopykota", "bin/dumpykota", "bin/pykosd", "bin/edpykota", "bin/repykota", "bin/warnpykota", "bin/pykotme", "bin/pkprinters" ], 
     119      scripts = [ "bin/pkusers", "bin/pkinvoice", "bin/pykoef", \ 
     120                  "bin/pkturnkey", "bin/pkbcodes", "bin/pkmail", \ 
     121                  "bin/pkbanner", "bin/autopykota", "bin/dumpykota", \ 
     122                  "bin/pykosd", "bin/edpykota", "bin/repykota", \ 
     123                  "bin/warnpykota", "bin/pykotme", "bin/pkprinters" ], 
    120124      data_files = data_files)