Changeset 1244 for pykota/trunk/pykota/storages/ldapstorage.py
- Timestamp:
- 12/29/03 15:12:48 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/ldapstorage.py
r1240 r1244 22 22 # 23 23 # $Log$ 24 # Revision 1.42 2003/12/29 14:12:48 uid67467 25 # Tries to workaround possible integrity violations when retrieving printer groups 26 # 24 27 # Revision 1.41 2003/12/27 16:49:25 uid67467 25 28 # Should be ok now. … … 567 570 if result : 568 571 for (printerid, fields) in result : 569 parentprinter = self.getPrinter(fields.get("pykotaPrinterName")[0]) 570 if parentprinter.Exists : 571 pgroups.append(parentprinter) 572 if printerid != printer.ident : # In case of integrity violation. 573 parentprinter = self.getPrinter(fields.get("pykotaPrinterName")[0]) 574 if parentprinter.Exists : 575 pgroups.append(parentprinter) 572 576 return pgroups 573 577