Changeset 2776
- Timestamp:
- 03/02/06 17:42:31 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/ldapstorage.py
r2773 r2776 1753 1753 if result : 1754 1754 patterns = billingcodepattern.split(",") 1755 try : 1756 patdict = {}.fromkeys(patterns) 1757 except AttributeError : 1758 # Python v2.2 or earlier 1759 patdict = {} 1760 for p in patterns : 1761 patdict[p] = None 1755 1762 for (codeid, fields) in result : 1756 1763 codename = self.databaseToUserCharset(fields.get("pykotaBillingCode", [""])[0]) 1757 if self.tool.matchString(codename, patterns) :1764 if patdict.has_key(codename) or self.tool.matchString(codename, patterns) : 1758 1765 code = StorageBillingCode(self, codename) 1759 1766 code.ident = codeid