Mercurial > p > roundup > code
diff roundup/backends/rdbms_common.py @ 1383:f19dde90e473
applied unicode patch
| author | Andrey Lebedev <kedder@users.sourceforge.net> |
|---|---|
| date | Wed, 15 Jan 2003 22:17:20 +0000 |
| parents | 4884fb0860f9 |
| children | 8dc60d87ab42 |
line wrap: on
line diff
--- a/roundup/backends/rdbms_common.py Wed Jan 15 11:14:01 2003 +0000 +++ b/roundup/backends/rdbms_common.py Wed Jan 15 22:17:20 2003 +0000 @@ -1,4 +1,4 @@ -# $Id: rdbms_common.py,v 1.28 2003-01-12 23:53:20 richard Exp $ +# $Id: rdbms_common.py,v 1.29 2003-01-15 22:17:19 kedder Exp $ ''' Relational database (SQL) backend common code. Basics: @@ -1070,7 +1070,7 @@ (self.classname, newid, key)) elif isinstance(prop, String): - if type(value) != type(''): + if type(value) != type('') and type(value) != type(u''): raise TypeError, 'new property "%s" not a string'%key elif isinstance(prop, Password): @@ -1432,7 +1432,7 @@ journalvalues[propname] = tuple(l) elif isinstance(prop, String): - if value is not None and type(value) != type(''): + if value is not None and type(value) != type('') and type(value) != type(u''): raise TypeError, 'new property "%s" not a string'%propname elif isinstance(prop, Password):
