after taking that out from my db.py file, I get the following error:
Traceback (most recent call last):
File "C:\Temp\web2py\gluon\main.py", line 577, in wsgibase
session._try_store_in_cookie_or_file(request, response)
File "C:\Temp\web2py\gluon\globals.py", line 753, in
_try_store_in_cookie_or_file
self._try_store_in_file(request, response)
File "C:\Temp\web2py\gluon\globals.py", line 763, in _try_store_in_file
session_folder = os.path.dirname(response.session_filename)
File "C:\Python27\lib\ntpath.py", line 205, in dirname
return split(p)[0]
File "C:\Python27\lib\ntpath.py", line 170, in split
d, p = splitdrive(p)
File "C:\Python27\lib\ntpath.py", line 125, in splitdrive
if p[1:2] == ':':
TypeError: 'NoneType' object is not subscriptable
On Wednesday, March 6, 2013 2:51:15 PM UTC-7, Derek wrote:
>
> I have Web2Py 2.4.2 (source edition) on Windows.
>
> Reading the book, I see that I can store sessions in cache. So, here's how
> it says to do it...
>
> http://web2py.com/books/default/chapter/29/13#Sessions-in-memcache
>
> from gluon.contrib.memdb import MEMDB
>
> session.connect(request,response,db=MEMDB(cache.memcache))
>
> Well, i tried that, but I get an error...
>
> <type 'exceptions.AttributeError'> 'Cache' object has no attribute
> 'memcache'
>
> So, how do I store sessions in cache?
>
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.