Changeset 967
- Timestamp:
- 04/27/03 10:04:15 (22 years ago)
- Location:
- pykota/trunk/pykota/storages
- Files:
-
- 1 added
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/postgresql.py
r952 r967 21 21 # 22 22 # $Log$ 23 # Revision 1.9 2003/04/27 08:04:15 jalet 24 # LDAP storage backend's skeleton added. DOESN'T WORK. 25 # 23 26 # Revision 1.8 2003/04/23 22:13:57 jalet 24 27 # Preliminary support for LPRng added BUT STILL UNTESTED. … … 56 59 # 57 60 61 62 from pykota.storage import PyKotaStorageError 63 from pykota.storages import sql 64 58 65 try : 59 66 import pg 60 67 except ImportError : 61 68 import sys 62 sys.stderr.write("This python version (%s) doesn't seem to have the PygreSQL module installed correctly.\n" % sys.version.split()[0]) 63 raise 64 65 from pykota.storage import PyKotaStorageError 66 from pykota.storages import sql 69 # TODO : to translate or not to translate ? 70 raise PyKotaStorageError, "This python version (%s) doesn't seem to have the PygreSQL module installed correctly." % sys.version.split()[0] 67 71 68 72 class Storage(sql.SQLStorage) : -
pykota/trunk/pykota/storages/sql.py
r952 r967 21 21 # 22 22 # $Log$ 23 # Revision 1.30 2003/04/27 08:04:15 jalet 24 # LDAP storage backend's skeleton added. DOESN'T WORK. 25 # 23 26 # Revision 1.29 2003/04/23 22:13:57 jalet 24 27 # Preliminary support for LPRng added BUT STILL UNTESTED. … … 412 415 def computePrinterJobPrice(self, printerid, jobsize) : 413 416 """Returns the price for a job on a given printer.""" 417 # TODO : create a base class with things like this 414 418 prices = self.getPrinterPrices(printerid) 415 419 if prices is None :