Changeset 2653
- Timestamp:
- 02/08/06 13:32:51 (19 years ago)
- Location:
- pykota/trunk/pykota/storages
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/ldapstorage.py
r2652 r2653 298 298 self.tool.printInfo("Object %s has no %s attribute !" % (dn, attribute), "error") 299 299 else : 300 attrval = self.databaseToUserCharset(attrval) 300 301 if patterns : 301 302 if (not isinstance(patterns, type([]))) and (not isinstance(patterns, type(()))) : 302 303 patterns = [ patterns ] 303 patterns = [self.userCharsetToDatabase(p) for p in patterns]304 304 if self.tool.matchString(attrval, patterns) : 305 305 result.append(attrval) -
pykota/trunk/pykota/storages/sql.py
r2651 r2653 146 146 self.tool.printInfo("Object %s has no %s attribute !" % (repr(record), attribute), "error") 147 147 else : 148 attrval = self.databaseToUserCharset(attrval) 148 149 if patterns : 149 150 if (not isinstance(patterns, type([]))) and (not isinstance(patterns, type(()))) : 150 151 patterns = [ patterns ] 151 patterns = [self.userCharsetToDatabase(p) for p in patterns]152 152 if self.tool.matchString(attrval, patterns) : 153 153 result.append(attrval)