Changeset 1379

Show
Ignore:
Timestamp:
03/02/04 15:35:46 (20 years ago)
Author:
jalet
Message:

Missing test when searching printer objects when these objects were manually
created and don't contain the pykotaPrinterName attribute

Files:
1 modified

Legend:

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

    r1367 r1379  
    2222# 
    2323# $Log$ 
     24# Revision 1.59  2004/03/02 14:35:46  jalet 
     25# Missing test when searching printer objects when these objects were manually 
     26# created and don't contain the pykotaPrinterName attribute 
     27# 
    2428# Revision 1.58  2004/02/27 09:30:33  jalet 
    2529# datelimit wasn't reset when modifying soft and hard limits with the LDAP backend 
     
    646650        printers = [] 
    647651        # see comment at the same place in pgstorage.py 
    648         result = self.doSearch("(&(objectClass=pykotaPrinter)(|%s))" % "".join(["(pykotaPrinterName=%s)" % pname for pname in printerpattern.split(",")]), ["pykotaPrinterName", "pykotaPricePerPage", "pykotaPricePerJob", "uniqueMember"], base=self.info["printerbase"]) 
     652        result = self.doSearch("(&(objectClass=pykotaPrinter)(|%s))" % "".join(["(pykotaPrinterName=%s)(%s=%s)" % (pname, self.info["printerrdn"], pname) for pname in printerpattern.split(",")]), ["pykotaPrinterName", "pykotaPricePerPage", "pykotaPricePerJob", "uniqueMember"], base=self.info["printerbase"]) 
    649653        if result : 
    650654            for (printerid, fields) in result :