Changeset 2653

Show
Ignore:
Timestamp:
02/08/06 13:32:51 (19 years ago)
Author:
jerome
Message:

Return values translated to user charset instead.

Location:
pykota/trunk/pykota/storages
Files:
2 modified

Legend:

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

    r2652 r2653  
    298298                self.tool.printInfo("Object %s has no %s attribute !" % (dn, attribute), "error") 
    299299            else : 
     300                attrval = self.databaseToUserCharset(attrval) 
    300301                if patterns : 
    301302                    if (not isinstance(patterns, type([]))) and (not isinstance(patterns, type(()))) : 
    302303                        patterns = [ patterns ] 
    303                     patterns = [self.userCharsetToDatabase(p) for p in patterns] 
    304304                    if self.tool.matchString(attrval, patterns) :    
    305305                        result.append(attrval) 
  • pykota/trunk/pykota/storages/sql.py

    r2651 r2653  
    146146                self.tool.printInfo("Object %s has no %s attribute !" % (repr(record), attribute), "error") 
    147147            else : 
     148                attrval = self.databaseToUserCharset(attrval) 
    148149                if patterns : 
    149150                    if (not isinstance(patterns, type([]))) and (not isinstance(patterns, type(()))) : 
    150151                        patterns = [ patterns ] 
    151                     patterns = [self.userCharsetToDatabase(p) for p in patterns] 
    152152                    if self.tool.matchString(attrval, patterns) : 
    153153                        result.append(attrval)