[open-ils-commits] r1037 - servres/trunk/conifer/libsystems/evergreen (gfawcett)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Oct 13 22:28:45 EDT 2010
Author: gfawcett
Date: 2010-10-13 22:28:43 -0400 (Wed, 13 Oct 2010)
New Revision: 1037
Modified:
servres/trunk/conifer/libsystems/evergreen/support.py
Log:
conifer/libsystems/evergreen/support.py: args should be json-encoded, not just stringified.
Modified: servres/trunk/conifer/libsystems/evergreen/support.py
===================================================================
--- servres/trunk/conifer/libsystems/evergreen/support.py 2010-10-06 17:24:19 UTC (rev 1036)
+++ servres/trunk/conifer/libsystems/evergreen/support.py 2010-10-14 02:28:43 UTC (rev 1037)
@@ -53,7 +53,7 @@
kwargs.setdefault('locale', LOCALE)
kwargs.update({'service':service, 'method':method})
params = ['%s=%s' % (k,quote(v)) for k,v in kwargs.items()]
- params += ['param=%s' % quote(str(a)) for a in args]
+ params += ['param=%s' % quote(json.dumps(a)) for a in args]
url = '%sosrf-gateway-v1?%s' % (BASE, '&'.join(params))
req = urllib2.urlopen(url)
resp = json.load(req)
More information about the open-ils-commits
mailing list