make mg_globals.translations thread-safe
authorJakob Kramer <jakob.kramer@gmx.de>
Wed, 18 Jul 2012 17:25:53 +0000 (19:25 +0200)
committerJakob Kramer <jakob.kramer@gmx.de>
Wed, 18 Jul 2012 17:25:53 +0000 (19:25 +0200)
commitc80982c7a0d64f01cb4dd44bfde334782f2a72c0
tree6804c8d00d90622d1b48be1a4a2c423cd066b01b
parent8464bcc3e86e223db0739101c0b5d914eea225af
make mg_globals.translations thread-safe

I added mg_globals.thread_scope (an instance of threading.local)
and made `translations' an attribute of it.
mediagoblin/mg_globals.py
mediagoblin/tools/template.py
mediagoblin/tools/translate.py