Mercurial > hg > contenttransformer
comparison contenttransformer/transformers.py @ 2:1e2c475015d8
restructured text now works
author | k0s <k0scist@gmail.com> |
---|---|
date | Thu, 14 Jan 2010 00:09:06 -0500 |
parents | 29805d442afc |
children | 1a267297f779 |
comparison
equal
deleted
inserted
replaced
1:aa491070ccf3 | 2:1e2c475015d8 |
---|---|
1 import docutils.core | 1 import docutils.core |
2 import subprocess | |
2 from webob import Response | 3 from webob import Response |
3 | 4 |
4 class Graphviz(object): | 5 class Graphviz(object): |
5 def __init__(self, content): | 6 def __init__(self, content): |
6 """create a Graphviz object""" | 7 """create a Graphviz object""" |
8 raise NotImplementedError # TODO | |
7 | 9 |
8 def __call__(self, environ, start_response): | 10 def __call__(self, environ, start_response): |
9 """return a WSGI response""" | 11 """return a WSGI response""" |
10 | 12 |
11 | 13 |
18 writer_name='html', | 20 writer_name='html', |
19 settings_overrides=self.settings) | 21 settings_overrides=self.settings) |
20 | 22 |
21 def __call__(self, environ, start_response): | 23 def __call__(self, environ, start_response): |
22 """return a WSGI response""" | 24 """return a WSGI response""" |
23 return Response(content_type='text/html', body=self.html) | 25 return Response(content_type='text/html', body=self.html)(environ, start_response) |