Skip to content

Commit

Permalink
Restore Python 2.5 compatiblity.
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Mar 10, 2012
1 parent 4bd3cf0 commit 03cdf23
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyramid_beaker/__init__.py
Expand Up @@ -15,7 +15,6 @@ def BeakerSessionFactoryConfig(**options):
""" Return a Pyramid session factory using Beaker session settings
supplied directly as ``**options``"""

@implementer(ISession)
class PyramidBeakerSessionObject(SessionObject):
_options = options
_cookie_on_exception = _options.pop('cookie_on_exception', True)
Expand Down Expand Up @@ -91,7 +90,7 @@ def get_csrf_token(self):
token = self.new_csrf_token()
return token

return PyramidBeakerSessionObject
return implementer(ISession)(PyramidBeakerSessionObject)


def call_save(wrapped):
Expand Down

0 comments on commit 03cdf23

Please sign in to comment.