Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

CassandraManager.__getitem__ fix: key must be formatted in current na…

…mespace and the db data must be unpickled.
  • Loading branch information...
commit 455d67c75a1f346cecc65f5ca9e9e5cc339dea6e 1 parent 05ae9e0
@hanula hanula authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 beaker_extensions/cassandra.py
View
4 beaker_extensions/cassandra.py
@@ -51,8 +51,8 @@ def set_value(self, key, value, expiretime=None):
def __getitem__(self, key):
try:
- result = self.cf.get(key)
- return result['data']
+ result = self.cf.get(self._format_key(key))
+ return pickle.loads(result['data'])
except pycassa.NotFoundException:
return None
Please sign in to comment.
Something went wrong with that request. Please try again.