[Opensrf-commits] r997 - trunk/src/python/osrf
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jul 5 10:57:17 EDT 2007
Author: erickson
Date: 2007-07-05 10:53:24 -0400 (Thu, 05 Jul 2007)
New Revision: 997
Modified:
trunk/src/python/osrf/json.py
Log:
fixed bug in to-json logic -- was still using older api
Modified: trunk/src/python/osrf/json.py
===================================================================
--- trunk/src/python/osrf/json.py 2007-07-05 12:22:45 UTC (rev 996)
+++ trunk/src/python/osrf/json.py 2007-07-05 14:53:24 UTC (rev 997)
@@ -6,7 +6,7 @@
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
More information about the opensrf-commits
mailing list