Changeset 1380

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

Final fix for printers searching

Files:
1 modified

Legend:

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

    r1379 r1380  
    2222# 
    2323# $Log$ 
     24# Revision 1.60  2004/03/02 14:39:02  jalet 
     25# Final fix for printers searching 
     26# 
    2427# Revision 1.59  2004/03/02 14:35:46  jalet 
    2528# Missing test when searching printer objects when these objects were manually 
     
    653656        if result : 
    654657            for (printerid, fields) in result : 
    655                 printername = fields["pykotaPrinterName"][0] 
     658                printername = fields.get("pykotaPrinterName", [""])[0] or fields.get(self.info["printerrdn"], [""])[0] 
    656659                printer = StoragePrinter(self, printername) 
    657660                printer.ident = printerid