From: Max I. <ma...@uc...> - 2004-11-30 13:48:43
|
Oleg Broytmann wrote: >> Subclass StrCol, and convert data from unicode to db encoding and >>back in its validator. > > > class UnicodeStringValidator(validators.Validator): > > def fromPython(self, value, state): > return value.encode(db_encoding) > > def toPython(self, value, state): > return unicode(value, db_encoding) What's the value of db_encoding here? |