Fix fields_view_get cache

This commit is contained in:
Cédric Krier committed 2008-07-29 12:12:56 +02:00
1 parent e1022e9f0a
commit a696bbb794
1 file changed
+1 -1
+1 -1
View File
@@ -134,7 +134,7 @@ def execute(obj, method, *args):
raise Exception('Not logged!')
logging.getLogger('rpc.request').info(str((obj, method, args)))
key = False
if len(args) >= 7 and args[3] == 'fields_view_get':
if len(args) >= 6 and args[1] == 'fields_view_get':
key = str(args)
if key in _VIEW_CACHE and _VIEW_CACHE[key][0]:
args = args[:]