wmark/anzu — Issue #5: Unable to use RedisSession
Author: bbergmann
Created: 2011-11-18 00:15:24+00:00
State: open

Unable to use RedisSession:

in chatdemo.py:
...
import redis

class Application(anzu.web.Application):
def __init__(self):
settings = dict(
#other settings
#....
session_storage = "redis://", #redis://[auth@][host[:port]][/db]
)
anzu.web.Application.__init__(self, **settings)

result:
(anzu)unknown:chat bbergmann$ python chatdemo.py
Traceback (most recent call last):
File "chatdemo.py", line 203, in
main()
File "chatdemo.py", line 197, in main
app = Application()
File "chatdemo.py", line 52, in __init__
anzu.web.Application.__init__(self, **settings)
File "/Developer/anzu/lib/python2.7/site-packages/anzu-2.1.1-py2.7.egg/anzu/web.py", line 1290, in __init__
settings['session_storage'])
TypeError: unbound method _parse_connection_details() must be called with RedisSession instance as first argument (got str instance instead)

How do I make this work?