# HG changeset patch # User Jeff Hammel # Date 1355190251 28800 # Node ID 8162dc8dd93a267f696996aff9511f47d20f71c3 # Parent b710a2374c8d7d670a1b81a337331bfa5557bb95 fix this thing diff -r b710a2374c8d -r 8162dc8dd93a wsgraph/web.py --- 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,