Glad the change fixed the first issue, would you submit a PR https://github.com/web2py/web2py/pulls? Regarding the second error, post the whole traceback here
Paolo 2017-04-11 0:11 GMT+02:00 黄祥 <[email protected]>: > *change gluon/contrib/memcache/__init__.py* > class MemcacheClientObj(Client): > def initialize(self): > pass > > *start web2py* > python ~/web2py/web2py.py --nogui --no-banner -a 'a' -i 0.0.0.0 -p 8000 > > *create new webapp and add code on top of models/db.py* > from gluon.contrib.memcache import MemcacheClient > memcache_servers = ['127.0.0.1:11211'] > cache.memcache = MemcacheClient(request, memcache_servers) > cache.ram = cache.disk = cache.memcache > > *error traceback* > ram_stats = cache.ram.stats[request.application] > KeyError: 'a' > > error traceback is different from first posted > > thanks and best regards, > stifan > > -- > 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 a topic in the > Google Groups "web2py-users" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/web2py/ycOvyOBPCMQ/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- 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.

