[openstack-dev] [Fuel][Nailgun] Web framework

Przemyslaw Kaminski pkaminski at mirantis.com
Wed Dec 3 13:22:05 UTC 2014


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 <ikalnitsky at mirantis.com 
> <mailto:ikalnitsky at 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 at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20141203/47f771d4/attachment.html>


More information about the OpenStack-dev mailing list