[FIX] gunicorn: pfff too hard to initialize stuff in the ctor.

bzr revid: vmt@openerp.com-20120209111226-95bmhy1uxq03dbaj
This commit is contained in:
Vo Minh Thu
2012-02-09 12:12:26 +01:00
parent bad0bc8511
commit a5ed5aa08c
+1 -1
View File
@@ -42,7 +42,7 @@ class ir_ui_menu(osv.osv):
def __init__(self, *args, **kwargs):
self.cache_lock = threading.RLock()
self.clear_cache()
self._cache = {}
r = super(ir_ui_menu, self).__init__(*args, **kwargs)
self.pool.get('ir.model.access').register_cache_clearing_method(self._name, 'clear_cache')
return r