diff taginthemiddle/middleware.py @ 15:1701e5b0b0eb

* stub manipulate method * remove default data adding
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 05 May 2010 22:47:46 -0700
parents 8fb20b780341
children 57ca873ed9bf
line wrap: on
line diff
--- a/taginthemiddle/middleware.py	Wed May 05 22:45:25 2010 -0700
+++ b/taginthemiddle/middleware.py	Wed May 05 22:47:46 2010 -0700
@@ -67,13 +67,9 @@
                 return self.app(environ, start_response)
             handler = exc.HTTPNotFound
 
-        # add navigation links to handler [example]
-        if hasattr(handler, 'data'):
-            handler.data.setdefault('links', [])
-            for h in self.handlers:
-                handler.data['links'].append((handler.link(h.handler_path), 
-                                              h.__name__))
-
         # get response
         res = handler()
         return res(environ, start_response)
+
+    def manipulate(self, request, response, tree):
+        return tree