Mercurial > hg > WSGraph
comparison wsgraph/web.py @ 22:a401bf63c938
note to self
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 10 Dec 2012 17:51:50 -0800 |
parents | f56d27f03e4a |
children | 24d57daaca21 |
comparison
equal
deleted
inserted
replaced
21:f56d27f03e4a | 22:a401bf63c938 |
---|---|
52 NODE: node_formatters, | 52 NODE: node_formatters, |
53 EDGE: edge_formatters} | 53 EDGE: edge_formatters} |
54 for key, value in self.formatters.items(): | 54 for key, value in self.formatters.items(): |
55 # ensure default formatter | 55 # ensure default formatter |
56 assert None in value | 56 assert None in value |
57 # ensure all formatters are callable | |
57 | 58 |
58 self.methods = dict([(i, getattr(self, i)) | 59 self.methods = dict([(i, getattr(self, i)) |
59 for i in dir(self) | 60 for i in dir(self) |
60 if i.isupper()]) | 61 if i.isupper()]) |
61 | 62 |