On Fri, Jan 8, 2010 at 6:27 PM, Guilherme Salgado <[email protected]> wrote:

We'll have a bunch of callsites for the utility
(DatabaseConfig.main_master/slave, model/pofile.py, webapp/adapter.py,
webapp/authorization.py, webapp/dbpolicy.py, and others), and nearly all
of them would benefit from a cache in the request, so I'd rather do it
in the utility.

If you are caching the request, you need to use a thread global. The reason you 
are caching the request is so you can access a request annotation. Why not just 
store your information in a thread global instead of a request annotation?


--
Stuart Bishop <[email protected]>
http://www.stuartbishop.net/

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mailing list: https://launchpad.net/~launchpad-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~launchpad-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to