Changeset 967

Show
Ignore:
Timestamp:
04/27/03 10:04:15 (21 years ago)
Author:
jalet
Message:

LDAP storage backend's skeleton added. DOESN'T WORK.

Location:
pykota/trunk/pykota/storages
Files:
1 added
2 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/storages/postgresql.py

    r952 r967  
    2121# 
    2222# $Log$ 
     23# Revision 1.9  2003/04/27 08:04:15  jalet 
     24# LDAP storage backend's skeleton added. DOESN'T WORK. 
     25# 
    2326# Revision 1.8  2003/04/23 22:13:57  jalet 
    2427# Preliminary support for LPRng added BUT STILL UNTESTED. 
     
    5659# 
    5760 
     61 
     62from pykota.storage import PyKotaStorageError 
     63from pykota.storages import sql 
     64 
    5865try : 
    5966    import pg 
    6067except ImportError :     
    6168    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] 
    6771 
    6872class Storage(sql.SQLStorage) : 
  • pykota/trunk/pykota/storages/sql.py

    r952 r967  
    2121# 
    2222# $Log$ 
     23# Revision 1.30  2003/04/27 08:04:15  jalet 
     24# LDAP storage backend's skeleton added. DOESN'T WORK. 
     25# 
    2326# Revision 1.29  2003/04/23 22:13:57  jalet 
    2427# Preliminary support for LPRng added BUT STILL UNTESTED. 
     
    412415    def computePrinterJobPrice(self, printerid, jobsize) :     
    413416        """Returns the price for a job on a given printer.""" 
     417        # TODO : create a base class with things like this 
    414418        prices = self.getPrinterPrices(printerid) 
    415419        if prices is None :