- Timestamp:
- 02/15/06 23:42:47 (19 years ago)
- Location:
- pykota/trunk
- Files:
-
- 1 added
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/MANIFEST.in
r2682 r2699 2 2 include clean.sh checkdeps.py bin/pykoef bin/pkturnkey bin/pkmail bin/pkbanner 3 3 include bin/autopykota bin/dumpykota bin/cupspykota bin/edpykota bin/warnpykota 4 include bin/repykota bin/pykotme bin/pykosd bin/pkprinters bin/pkbcodes bin/pkinvoice 4 include bin/repykota bin/pykotme bin/pykosd bin/pkprinters bin/pkbcodes bin/pkinvoice bin/pkusers 5 5 include bin/waitprinter.sh bin/papwaitprinter.sh bin/mailandpopup.sh bin/README 6 6 recursive-include po README *.sh *.po *.mo *.pot -
pykota/trunk/pykota/storage.py
r2697 r2699 49 49 self.Description = str(description) 50 50 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 51 57 52 58 class StorageUser(StorageObject) : … … 169 175 else : 170 176 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 = False177 177 178 178 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) : … … 475 475 self.PageCounter = pagecounter 476 476 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 = False483 477 484 478 def consume(self, pages, price) : -
pykota/trunk/setup.py
r2662 r2699 117 117 url = "http://www.librelogiciel.com/software/", 118 118 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" ], 120 124 data_files = data_files)