Permalink
Browse files

process_view csrf needs attr on view

  • Loading branch information...
1 parent b2cffa5 commit 19e87672120f81fd2b96802bb0b7dc4b75d106d9 @sorl committed May 10, 2011
Showing with 7 additions and 4 deletions.
  1. +2 −2 docs/conf.py
  2. +1 −1 setup.py
  3. +4 −1 utkik/dispatch.py
View
@@ -48,9 +48,9 @@
# built documents.
#
# The short X.Y version.
-version = '0.6.9'
+version = '0.7.1'
# The full version, including alpha/beta/rc tags.
-release = '0.6.9'
+release = '0.7.1'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
View
@@ -3,7 +3,7 @@
setup(
name='aino-utkik',
- version='0.7.0',
+ version='0.7.1',
description='Small, clean code with a lazy view dispatcher and class based views for Django.',
long_description=open('README.rst').read(),
author='Mikko Hellsing',
View
@@ -53,11 +53,14 @@ def __call__(self, request, *args, **kwargs):
msg = 'Exception in %s.%s: %s' % (
self.view.__module__, self.view.__name__, e)
raise cls(msg), None, trace
- except:
+ except Exception:
raise e
raise ImproperlyConfigured('%s.%s does not define a view function or '
'class.' % (self.view.__module__, self.view.__name__))
+ def __getattr__(self, name):
+ return getattr(self.view, name)
+
class LazyViewWrapper(ViewWrapper):
"""

0 comments on commit 19e8767

Please sign in to comment.