From: Bjorn T. <bj...@ya...> - 2004-05-20 13:30:06
|
Hello, I'm using SQLObject in a project where I need unicode support. I would like to be able get and set unicode strings directly to my classes' properties. That is, I want the following to work: >>> class Word(SQLObject): ... value = StringCol() >>> word = Word() >>> word.value = u'unicode string' >>> word.value u'unicode string' I know that I could override _set_value and _get_value in order to get it to work, but I rather not, since that would pollute my code. Would it be possible to add a 'encode/decode hook' similar to _style, which would encode and decode all values set and retrieved from SQLObjects? Or maybe it's possible to solve in some better way? BTW, I'm using the CVS version of SQLObject Regards, Bjorn |