Commits

Martin Thorsen Ranang  committed 834ab6c

Make the middleware extension compatible with Turbogears 2.2.0.

  • Participants
  • Parent commits 50b3434

Comments (0)

Files changed (1)

File tgext/mobilemiddleware/decorators.py

                 override_mapping = request._override_mapping
             except:
                 override_mapping = request._override_mapping = {}
-            override_mapping[self.func] = {self.content_type:(self.engine, self.template, [])}
+            override_mapping[self.func] = {self.content_type:(self.engine, self.template, [], {})}
 
     def __call__(self, func):
         self.func = func