defnull/bottle — Issue #298: access to response.COOKIES  throws exception
Author: royshan
Created: 2012-03-08 14:20:06+00:00
State: open

try the following simple code:

>>> import bottle
>>> bottle.response.COOKIES
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/site-packages/bottle.py", line 1376, in COOKIES
if not self._cookies:
File "/usr/local/lib/python2.7/site-packages/bottle.py", line 1456, in
lambda self: getattr(_lctx, name),
AttributeError: 'thread._local' object has no attribute 'response_cookies'

looks like the response object was not initialized properly.