app/soc/views/helper/decorators.py
changeset 367 5d5730f65fc8
parent 365 74dec172944e
child 499 d22e4fe8e64b
--- a/app/soc/views/helper/decorators.py	Fri Oct 17 02:43:39 2008 +0000
+++ b/app/soc/views/helper/decorators.py	Fri Oct 17 12:52:02 2008 +0000
@@ -34,9 +34,9 @@
 def view(func):
   """Decorator that insists that exceptions are handled by view."""
   @wraps(func)
-  def view_wrapper(request, *args, **kwds):
+  def view_wrapper(*args, **kwds):
     try:
-      return func(request, *args, **kwds)
+      return func(*args, **kwds)
     except DeadlineExceededError:
       logging.exception('DeadlineExceededError')
       return http.HttpResponse('DeadlineExceededError')