changeset 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 86118cd8912e
children 5f492a6fbdd1
files taginthemiddle/middleware.py
diffstat 1 files changed, 3 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/taginthemiddle/middleware.py
+++ b/taginthemiddle/middleware.py
@@ -62,18 +62,14 @@ class Tagger(LXMLMiddleware):
             handler = h.match(self, request)
             if handler is not None:
                 break
         else:
             if self.app:
                 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