summaryrefslogtreecommitdiff
path: root/addons/base_module_record
diff options
context:
space:
mode:
authorVo Minh Thu <vmt@openerp.com>2011-06-15 15:23:47 +0200
committerVo Minh Thu <vmt@openerp.com>2011-06-15 15:23:47 +0200
commitf4401422fcdb8fba1dd9d8a01c4f7b2f001dda05 (patch)
tree4eb6202d1db5e84d45a24502bc28157594a99b59 /addons/base_module_record
parent91c957b3f1c4243b81fdfa3a1a3e787b863ad305 (diff)
[REF] base_module_recorde: moved old code from base_module_record to base_module_recorder.
- It seems the two modules were split in the past but not very carefully. - base_module_record has still probably some unused code that should be moved there. bzr revid: vmt@openerp.com-20110615132347-fnh7l2p5t5wpjjs8
Diffstat (limited to 'addons/base_module_record')
-rw-r--r--addons/base_module_record/base_module_record.py41
1 files changed, 0 insertions, 41 deletions
diff --git a/addons/base_module_record/base_module_record.py b/addons/base_module_record/base_module_record.py
index 22bc7f3a089..7a9dc780af5 100644
--- a/addons/base_module_record/base_module_record.py
+++ b/addons/base_module_record/base_module_record.py
@@ -26,47 +26,6 @@ import pooler
import string
import tools
-class recording_objects_proxy(osv_pool):
- def execute(self, *args, **argv):
- if args[3] == 'create':
- _old_args = args[4].copy()
- elif args[3] == 'write':
- _old_args = args[5].copy()
- elif len(args) >= 5 and isinstance(args[4], dict):
- _old_args = args[4].copy()
- elif len(args) > 5 and args[3] != 'write' and isinstance(args[5], dict):
- _old_args = args[5].copy()
- else:
- _old_args = None
- res = super(recording_objects_proxy, self).execute(*args, **argv)
- pool = pooler.get_pool(args[0])
- mod = pool.get('ir.module.record')
-
- if mod and mod.recording:
- if args[3] not in ('default_get','read','fields_view_get','fields_get','search','search_count','name_search','name_get','get','request_get', 'get_sc', 'unlink'):
- if _old_args is not None:
- if args[3] != 'write' and args[3] != 'create' and len(args) > 5 and isinstance(args[5], dict):
- args=list(args)
- args[5]=_old_args
- args=tuple(args)
- mod.recording_data.append(('osv_memory_action', args, argv ,None))
- else:
- if args[3] == 'create':
- args[4].update(_old_args)
- elif args[3] == 'write':
- args[5].update(_old_args)
- mod.recording_data.append(('query', args, argv,res))
- return res
-
- def exec_workflow(self, *args, **argv):
- res = super(recording_objects_proxy, self).exec_workflow(*args, **argv)
- pool = pooler.get_pool(args[0])
- mod = pool.get('ir.module.record')
- if mod and mod.recording:
- mod.recording_data.append(('workflow', args, argv))
- return res
-
-recording_objects_proxy()
class xElement(minidom.Element):
"""dom.Element with compact print