Mercurial > hg > WSGraph
comparison wsgraph/web.py @ 14:3d0430390e72
spelling
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Mon, 10 Dec 2012 17:32:33 -0800 |
| parents | 7459702bf574 |
| children | 569a5d93b8e3 |
comparison
equal
deleted
inserted
replaced
| 13:7459702bf574 | 14:3d0430390e72 |
|---|---|
| 114 | 114 |
| 115 | 115 |
| 116 # is resource in the graph? [TODO] | 116 # is resource in the graph? [TODO] |
| 117 if (rank == EDGE) or (rank == NODE): | 117 if (rank == EDGE) or (rank == NODE): |
| 118 if tuple(segments) not in self.graph: | 118 if tuple(segments) not in self.graph: |
| 119 retun exc.HTTPNotFound() | 119 return exc.HTTPNotFound() |
| 120 | 120 |
| 121 # formatter | 121 # formatter |
| 122 formatter = self.formatters[len(segments)] | 122 formatter = self.formatters[len(segments)] |
| 123 return Response(content_type='text/plain', | 123 return Response(content_type='text/plain', |
| 124 body="WSGraph") | 124 body="WSGraph") |
