[MERGE] latest trunk
[odoo/odoo.git] / openerp / tools / cache.py
index fd28a65..2c5c4a4 100644 (file)
@@ -107,9 +107,6 @@ class dummy_cache(object):
     def clear(self, *l, **kw):
         pass
 
-#ormcache = dummy_cache
-cache = dummy_cache
-
 if __name__ == '__main__':
 
     class A():
@@ -135,3 +132,8 @@ if __name__ == '__main__':
     r=a.n("cr",1,[1,2])
     print r
     r=a.n("cr",1,[1,2])
+
+# For backward compatibility
+cache = ormcache
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: