Skip to content

Commit

Permalink
[#262] Fix helper import in version 029
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Jan 9, 2013
1 parent 82366b8 commit 91ad379
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ckan/migration/versions/029_version_groups.py
Expand Up @@ -8,7 +8,7 @@



from ckan.lib.helpers import json
import ckan.lib.helpers as h
class JsonType(types.TypeDecorator):
'''Store data as JSON serializing on save and unserializing on use.
'''
Expand All @@ -19,13 +19,13 @@ def process_bind_param(self, value, engine):
return None
else:
# ensure_ascii=False => allow unicode but still need to convert
return unicode(json.dumps(value, ensure_ascii=False))
return unicode(h.json.dumps(value, ensure_ascii=False))

def process_result_value(self, value, engine):
if value is None:
return None
else:
return json.loads(value)
return h.json.loads(value)

def copy(self):
return JsonType(self.impl.length)
Expand Down

0 comments on commit 91ad379

Please sign in to comment.