registry: Fix Json unserialization.

This commit is contained in:
Valentin Lorentz 2012-12-15 22:00:23 +01:00
parent cead634055
commit 72bc227e1b

View File

@ -705,6 +705,8 @@ class TemplatedString(String):
class Json(String):
# Json-serializable data
def set(self, v):
self.setValue(json.loads(v))
def setValue(self, v):
super(Json, self).setValue(json.dumps(v))
def __call__(self):