diff wsgraph/web.py @ 19:8162dc8dd93a

fix this thing
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 10 Dec 2012 17:44:11 -0800
parents b710a2374c8d
children 542232f858a9
line wrap: on
line diff
--- a/wsgraph/web.py	Mon Dec 10 17:42:23 2012 -0800
+++ b/wsgraph/web.py	Mon Dec 10 17:44:11 2012 -0800
@@ -20,8 +20,9 @@
         self.content_type = content_type
         self.sort_keys = sort_keys
 
-    def format(self, _object):
-        return json.dumps(graph.node(node), sort_keys=self.sort_keys)
+    def format(self, instance):
+        """front-end to json.dumps"""
+        return json.dumps(instance, sort_keys=self.sort_keys)
 
     def node(self, node, graph, request):
         return Response(content_type=self.content_type,