Skip to content

Commit

Permalink
* Fixed error with exception still raised for PyCrypto missing.
Browse files Browse the repository at this point in the history
--HG--
branch : trunk
  • Loading branch information
bbangert committed Feb 28, 2008
1 parent 58d6cd2 commit e8049f7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Beaker Changelog
================

0.9.3 (**tip**)
* Fixed error with exception still raised for PyCrypto missing.
* WARNING: Session middleware no longer catches Paste HTTP Exceptions, apps
are now expected to capture and handle Paste HTTP Exceptions themselves.
* Fixed Python 2.4 compatibility bug in hmac.
Expand Down
3 changes: 2 additions & 1 deletion beaker/ext/memcached.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ def __init__(self, namespace, url, data_dir=None, lock_dir=None, **params):

verify_directory(self.lock_dir)

self.mc = MemcachedNamespaceManager.clients.get(url, lambda: memcache.Client(url.split(';'), debug=0))
self.mc = MemcachedNamespaceManager.clients.get(url,
lambda: memcache.Client(url.split(';'), debug=0))

# memcached does its own locking. override our own stuff
def do_acquire_read_lock(self): pass
Expand Down
5 changes: 3 additions & 2 deletions beaker/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,9 @@ class CookieSession(Session):
def __init__(self, request, key='beaker.session.id', timeout=None,
cookie_expires=True, cookie_domain=None, encrypt_key=None,
validate_key=None, secure=False, **kwargs):
if not crypto_ok:
raise BeakerException("PyCrypto is not installed, can't use cookie-only Session.")
if not crypto_ok and encrypt_key:
raise BeakerException("pycryptopp is not installed, can't use "
"encrypted cookie-only Session.")

self.request = request
self.key = key
Expand Down
Empty file modified tests/test_database.py
100644 → 100755
Empty file.

0 comments on commit e8049f7

Please sign in to comment.