Browse Source

Prevent Unicode errors if a meta key contains non-ascii chars.

main
pestaa 13 years ago
parent
commit
b413e65646
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      hyde/model.py

+ 1
- 1
hyde/model.py View File

@@ -44,7 +44,7 @@ class Expando(object):
Sets the expando attribute after
transforming the value.
"""
setattr(self, key, self.transform(value))
setattr(self, key.encode('utf-8'), self.transform(value))

def transform(self, primitive):
"""


Loading…
Cancel
Save