Mercurial > hg > WSGraph
comparison wsgraph/web.py @ 16:569a5d93b8e3
forget self
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 10 Dec 2012 17:34:14 -0800 |
parents | 3d0430390e72 |
children | 1053290ba067 |
comparison
equal
deleted
inserted
replaced
15:ee45f44394a0 | 16:569a5d93b8e3 |
---|---|
51 | 51 |
52 # view formatters | 52 # view formatters |
53 self.formatters = {GRAPH: graph_formatters, | 53 self.formatters = {GRAPH: graph_formatters, |
54 NODE: node_formatters, | 54 NODE: node_formatters, |
55 EDGE: edge_formatters} | 55 EDGE: edge_formatters} |
56 for key, value in formatters.items(): | 56 for key, value in self.formatters.items(): |
57 # ensure default formatter | 57 # ensure default formatter |
58 assert None in value | 58 assert None in value |
59 | 59 |
60 self.methods = dict([(i, getattr(self, i)) | 60 self.methods = dict([(i, getattr(self, i)) |
61 for i in dir(self) | 61 for i in dir(self) |