# HG changeset patch # User k0s # Date 1263445746 18000 # Node ID 1e2c475015d89001faab69c104ac192a2776be55 # Parent aa491070ccf36325673dbe7cc38534491a4d022d restructured text now works diff -r aa491070ccf3 -r 1e2c475015d8 contenttransformer/transformers.py --- a/contenttransformer/transformers.py Wed Jan 13 23:58:13 2010 -0500 +++ b/contenttransformer/transformers.py Thu Jan 14 00:09:06 2010 -0500 @@ -1,9 +1,11 @@ import docutils.core +import subprocess from webob import Response class Graphviz(object): def __init__(self, content): """create a Graphviz object""" + raise NotImplementedError # TODO def __call__(self, environ, start_response): """return a WSGI response""" @@ -20,4 +22,4 @@ def __call__(self, environ, start_response): """return a WSGI response""" - return Response(content_type='text/html', body=self.html) + return Response(content_type='text/html', body=self.html)(environ, start_response) diff -r aa491070ccf3 -r 1e2c475015d8 example.ini --- a/example.ini Wed Jan 13 23:58:13 2010 -0500 +++ b/example.ini Thu Jan 14 00:09:06 2010 -0500 @@ -20,3 +20,4 @@ [app:contenttransformer] paste.app_factory = contenttransformer.factory:factory transformer.directory = %(here)s/example +transformer.transforms = *.txt=ReST \ No newline at end of file