diff options
| author | Julien Thewys <jth@openerp.com> | 2010-04-01 15:26:03 +0200 |
|---|---|---|
| committer | Julien Thewys <jth@openerp.com> | 2010-04-01 15:26:03 +0200 |
| commit | 8d62e97ff5030095ea3ab415a09fe5d8062d5cf0 (patch) | |
| tree | 92d933c14763e07514113058def47a897afde692 /bin/tools/yaml_import.py | |
| parent | 3ebd4313d94faa3dfb77a7b6b9e6d81889b9d114 (diff) | |
[FIX] Assertion expressions list is a direct child of !assert block.
bzr revid: jth@openerp.com-20100401132603-2ar1hsmi62c0vs3p
Diffstat (limited to 'bin/tools/yaml_import.py')
| -rw-r--r-- | bin/tools/yaml_import.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/tools/yaml_import.py b/bin/tools/yaml_import.py index 6b098289611..df273103130 100644 --- a/bin/tools/yaml_import.py +++ b/bin/tools/yaml_import.py @@ -217,7 +217,7 @@ class YamlInterpreter(object): context = self.get_context(assertion, self.eval_context) for id in ids: record = model.browse(self.cr, self.uid, id, context) - for test in expressions.get('test', ''): + for test in expressions: try: success = eval(test, self.eval_context, RecordDictWrapper(record)) except Exception, e: |
