[storm] Questions about inserts
Eduardo Willians
edujurista at gmail.com
Thu Jun 12 20:33:18 BST 2008
Hhahaah,
Edit "variables.py" in storm at:
class UnicodeVariable(Variable)
replace "parse_set" method for this one:
def parse_set(self, value, from_db):
# ---------------------------------
# workaround
if type(value) is str: value = unicode(value)
# ---------------------------------
if not isinstance(value, unicode):
raise TypeError("Expected unicode, found %r: %r"
% (type(value), value))
return value
Well, I do that.
More information about the storm
mailing list