Changeset 3184 for pykota/trunk
- Timestamp:
- 05/30/07 22:29:50 (17 years ago)
- Location:
- pykota/trunk/pykota
- Files:
-
- 16 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/accounter.py
r3133 r3184 22 22 # 23 23 # 24 25 """This module defines base classes used by all accounting methods.""" 24 26 25 27 import sys -
pykota/trunk/pykota/cgifuncs.py
r3133 r3184 20 20 # 21 21 22 """This module defines some helper functions to use in CGI scripts.""" 23 22 24 import sys 23 25 import os -
pykota/trunk/pykota/config.py
r3180 r3184 22 22 # 23 23 # 24 25 """This module defines classes used to parse PyKota configuration files.""" 24 26 25 27 import os -
pykota/trunk/pykota/dumper.py
r3166 r3184 21 21 # 22 22 # 23 24 """This module handles all the data dumping facilities for PyKota.""" 23 25 24 26 import sys -
pykota/trunk/pykota/ipp.py
r3133 r3184 24 24 # 25 25 # 26 27 """This module provides basic IPP request parsing facilities.""" 26 28 27 29 import sys -
pykota/trunk/pykota/logger.py
r3133 r3184 23 23 # 24 24 25 """This module defines base classes used by all logging backends.""" 26 25 27 import os 26 28 import imp -
pykota/trunk/pykota/reporter.py
r3133 r3184 23 23 # 24 24 25 """This module defines bases classes used by all reporters.""" 26 25 27 import os 26 28 import imp … … 46 48 47 49 def getPrinterTitle(self, printer) : 50 """Returns the formatted title for a given printer.""" 48 51 return (_("Report for %s quota on printer %s") % ((self.isgroup and "group") or "user", printer.Name)) + (" (%s)" % printer.Description) 49 52 50 53 def getPrinterGraceDelay(self, printer) : 54 """Returns the formatted grace delay for a given printer.""" 51 55 return _("Pages grace time: %i days") % self.tool.config.getGraceDelay(printer.Name) 52 56 53 57 def getPrinterPrices(self, printer) : 58 """Returns the formatted prices for a given printer.""" 54 59 return (_("Price per job: %.3f") % (printer.PricePerJob or 0.0), _("Price per page: %.3f") % (printer.PricePerPage or 0.0)) 55 60 56 61 def getReportHeader(self) : 62 """Returns the correct header depending on users vs users groups.""" 57 63 if self.isgroup : 58 64 return _("Group overcharge used soft hard balance grace total paid warn") … … 61 67 62 68 def getPrinterRealPageCounter(self, printer) : 69 """Returns the formatted real page counter for a given printer.""" 63 70 msg = _("unknown") 64 71 if printer.LastJob.Exists : … … 70 77 71 78 def getTotals(self, total, totalmoney) : 79 """Returns the formatted totals.""" 72 80 return (_("Total : %9i") % (total or 0.0), ("%11s" % ("%7.2f" % (totalmoney or 0.0))[:11])) 73 81 -
pykota/trunk/pykota/reporters/html.py
r3133 r3184 22 22 # 23 23 # 24 25 """This module defines a class for HTML reporting.""" 24 26 25 27 import os -
pykota/trunk/pykota/reporters/text.py
r3133 r3184 22 22 # 23 23 # 24 25 """This module defines a class for plain text reporting.""" 24 26 25 27 from pykota.reporter import BaseReporter -
pykota/trunk/pykota/storages/ldapstorage.py
r3168 r3184 23 23 # 24 24 25 # 26 # My IANA assigned number, for 27 # "Conseil Internet & Logiciels Libres, J�me Alet" 28 # is 16868. Use this as a base to create the LDAP schema. 29 # 25 """This module defines a class to access to an LDAP database backend. 26 27 My IANA assigned number, for 28 "Conseil Internet & Logiciels Libres, J�me Alet" 29 is 16868. Use this as a base to extend the LDAP schema. 30 """ 30 31 31 32 import sys -
pykota/trunk/pykota/storages/mysqlstorage.py
r3183 r3184 23 23 # 24 24 # 25 26 """This module defines a class to access to a MySQL database backend.""" 25 27 26 28 import time -
pykota/trunk/pykota/storages/pgstorage.py
r3182 r3184 22 22 # 23 23 # 24 25 """This module defines a class to access to a PostgreSQL database backend.""" 24 26 25 27 import time -
pykota/trunk/pykota/storages/sqlitestorage.py
r3183 r3184 22 22 # 23 23 # 24 25 """This module defines a class to access to a SQLite database backend.""" 24 26 25 27 import time -
pykota/trunk/pykota/storages/sql.py
r3165 r3184 22 22 # 23 23 # 24 25 """This module defines methods common to all relational backends.""" 24 26 25 27 from pykota.storage import StorageUser, StorageGroup, StoragePrinter, \ -
pykota/trunk/pykota/tool.py
r3173 r3184 22 22 # 23 23 # 24 25 """This module defines the base classes for PyKota command line tools.""" 24 26 25 27 import sys -
pykota/trunk/pykota/version.py
r3181 r3184 22 22 # 23 23 24 """This module defines some application level constants.""" 25 24 26 __version__ = "1.26alpha6_unofficial" 25 27