changeset 2:1e2c475015d8

restructured text now works
author k0s <k0scist@gmail.com>
date Thu, 14 Jan 2010 00:09:06 -0500
parents aa491070ccf3
children 1a267297f779
files contenttransformer/transformers.py example.ini
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)
--- 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