fixed bug in to-json logic -- was still using older api
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 5 Jul 2007 14:53:24 +0000 (14:53 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 5 Jul 2007 14:53:24 +0000 (14:53 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@997 9efc2488-bf62-4759-914b-345cdb29e865

src/python/osrf/json.py

index b6b3154..8845b92 100644 (file)
@@ -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