Are you using trunk? I just fixed this in trunk but I do not believe this 
is an error in trunk.

On Saturday, 16 July 2016 13:54:18 UTC-5, Dmitri Ermolaev wrote:
>
> I use 
>
> if not request.env.web2py_runtime_gae:
>     migrate = 0
>     fake_migrate = myconf.take('db.fake_migrate') and True or False
>     migrate = (myconf.take('db.migrate') or migrate) and True or False
>     ## if NOT running on Google App Engine use SQLite or other DB
>     ## folder="../databases"
>     if True or DEVELOP:
>         db = DAL(myconf.take('db.uri_dvp'), check_reserved = ['all'],
>                 fake_migrate = fake_migrate,
>                 migrate = migrate
>                 )
>     else:
>         db = DAL(myconf.take('db.uri'), pool_size=myconf.take('db.pool_size', 
> cast=int), check_reserved=['all'],
>                 fake_migrate =fake_migrate,
>                 migrate = migrate
>                 )
>     ## define session here
>     
> ###session.connect(request,response,cookie_key='kdswewref9q0328409rifcghytf65',compression_level=None)
>     session.connect(request, response, db=db)
> else:
>     ## connect to Google BigTable (optional 'google:datastore://namespace')
>     db = DAL('google:datastore+ndb')
>     ## store sessions and tickets there
>     session.connect(request, response, db=db)
>     ## or store session in Memcache, Redis, etc.
>     ## from gluon.contrib.memdb import MEMDB
>     ## from google.appengine.api.memcache import Client
>     ## session.connect(request, response, db = MEMDB(Client()))
>
>
> and error :
>
> Traceback (most recent call last):
>   File ".\gluon\main.py", line 482, in wsgibase
>     session._try_store_in_cookie_or_file(request, response)
>   File ".\gluon\globals.py", line 1193, in _try_store_in_cookie_or_file
>     return self._try_store_in_file(request, response)
>   File ".\gluon\globals.py", line 1206, 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 has no attribute '__getitem__'
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.

Reply via email to