Permalink
Browse files

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

…mespace and the db data must be unpickled.
  • Loading branch information...
1 parent 05ae9e0 commit 455d67c75a1f346cecc65f5ca9e9e5cc339dea6e @hanula hanula committed Jun 5, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 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

0 comments on commit 455d67c

Please sign in to comment.