From f563ed237b4e11618180d120e7aa91e1eb6bcaf2 Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 5 Jul 2007 14:53:24 +0000 Subject: [PATCH] fixed bug in to-json logic -- was still using older api git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@997 9efc2488-bf62-4759-914b-345cdb29e865 --- src/python/osrf/json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/osrf/json.py b/src/python/osrf/json.py index b6b3154..8845b92 100644 --- a/src/python/osrf/json.py +++ b/src/python/osrf/json.py @@ -6,7 +6,7 @@ class osrfJSONNetworkEncoder(simplejson.JSONEncoder): def default(self, obj): if isinstance(obj, osrfNetworkObject): return { - OSRF_JSON_CLASS_KEY: obj.getHint(), + OSRF_JSON_CLASS_KEY: obj.getRegistry().hint, OSRF_JSON_PAYLOAD_KEY: self.default(obj.getData()) } return obj -- 2.11.0