[Neo-report] r2424 vincent - /trunk/neo/client/handlers/master.py

nobody at svn.erp5.org nobody at svn.erp5.org
Sat Nov 6 00:22:58 CET 2010


Author: vincent
Date: Sat Nov  6 00:22:58 2010
New Revision: 2424

Log:
Factorise access to mq_cache.

Modified:
    trunk/neo/client/handlers/master.py

Modified: trunk/neo/client/handlers/master.py
==============================================================================
--- trunk/neo/client/handlers/master.py [iso-8859-1] (original)
+++ trunk/neo/client/handlers/master.py [iso-8859-1] Sat Nov  6 00:22:58 2010
@@ -123,10 +123,11 @@ class PrimaryNotificationsHandler(BaseHa
         app._cache_lock_acquire()
         try:
             # ZODB required a dict with oid as key, so create it
+            mq_cache = app.mq_cache
             oids = dict.fromkeys(oid_list, tid)
             for oid in oid_list:
-                if oid in app.mq_cache:
-                    del app.mq_cache[oid]
+                if oid in mq_cache:
+                    del mq_cache[oid]
             db = app.getDB()
             if db is not None:
                 db.invalidate(tid, oids)





More information about the Neo-report mailing list