Yeah, didn't notice that. Honestly, I'd prefer both to be accessible as
instance attributes just like in [1] but it's more of taste I guess.
[1]
http://tornado.readthedocs.org/en/latest/web.html#tornado.web.RequestHandler.request
P.
On 12/03/2014 02:03 PM, Sebastian Kalinowski wrote:
2014-12-03 13:47 GMT+01:00 Igor Kalnitsky <ikalnit...@mirantis.com
<mailto:ikalnit...@mirantis.com>>:
> I don't like that Flask uses a global request object [3].
Przemyslaw, actually Pecan does use global objects too. BTW, what's
wrong with global objects? They are thread-safe in both Pecan and
Flask.
To be fair, Pecan could also pass request and response explicit to
method [1]
[1] http://pecan.readthedocs.org/en/latest/contextlocals.html
_______________________________________________
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
_______________________________________________
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev