Skip to content

Commit

Permalink
process_view csrf needs attr on view
Browse files Browse the repository at this point in the history
  • Loading branch information
sorl committed May 10, 2011
1 parent b2cffa5 commit 19e8767
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -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',
Expand Down
5 changes: 4 additions & 1 deletion utkik/dispatch.py
Expand Up @@ -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):
"""
Expand Down

0 comments on commit 19e8767

Please sign in to comment.