From 6b84b9c69ed75baee9c2cdfa758eddcec10b8b23 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 28 Feb 2013 20:20:01 +0100 Subject: generate js_apitypes, updated lodash, working type filters on webui --- module/remote/json_converter.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'module/remote/json_converter.py') diff --git a/module/remote/json_converter.py b/module/remote/json_converter.py index 5b85f30cd..256674c34 100644 --- a/module/remote/json_converter.py +++ b/module/remote/json_converter.py @@ -7,9 +7,9 @@ except ImportError: import json -import ttypes -from ttypes import BaseObject -from ttypes import ExceptionObject +import apitypes +from apitypes import BaseObject +from apitypes import ExceptionObject # compact json separator separators = (',', ':') @@ -29,7 +29,7 @@ class BaseEncoder(json.JSONEncoder): def convert_obj(dct): if '@class' in dct: - cls = getattr(ttypes, dct['@class']) + cls = getattr(apitypes, dct['@class']) del dct['@class'] return cls(**dct) -- cgit v1.2.3