Review: Needs Fixing
The fix seems to work but it break the yaml test
[2011-10-19 15:15:41,991][check] TEST:tests.survey:Give answer of the first and
second page in "Partner Feedback" suvey.
[2011-10-19 15:15:41,993][check] ERROR:tests.survey:argument of type 'bool' is
not iterable
Traceback (most recent call last):
File "/home/openerp/source/server/trunk/openerp/tools/yaml_import.py", line
740, in process
self._process_node(node)
File "/home/openerp/source/server/trunk/openerp/tools/yaml_import.py", line
755, in _process_node
self.process_python(node)
File "/home/openerp/source/server/trunk/openerp/tools/yaml_import.py", line
426, in process_python
unsafe_eval(code_obj, {'ref': self.get_id}, code_context)
File "/home/openerp/source/addons/trunk/survey/test/survey00.yml", line 1, in
<module>
- |
File "/home/openerp/source/addons/trunk/survey/wizard/survey_answer.py", line
528, in create
resource_id = super(survey_question_wiz, self).create(cr, uid, vals,
context=context)
File "/home/openerp/source/server/trunk/openerp/osv/orm.py", line 3937, in
create
vals = self._add_missing_default_values(cr, user, vals, context)
File "/home/openerp/source/server/trunk/openerp/osv/orm.py", line 2335, in
_add_missing_default_values
defaults = self.default_get(cr, uid, missing_defaults, context)
File "/home/openerp/source/addons/trunk/survey/wizard/survey_answer.py", line
516, in default_get
for key,val in safe_eval(sur_name_read.get('store_ans',"{}")).items():
File "/home/openerp/source/server/trunk/openerp/tools/safe_eval.py", line
243, in safe_eval
if '__subclasses__' in expr:
TypeError: argument of type 'bool' is not iterable
[2011-10-19 15:15:41,995][check] ERROR:init.test:Tests failed to execute in
module survey
Traceback (most recent call last):
File "/home/openerp/source/server/trunk/openerp/modules/loading.py", line
100, in load_test
_load_data(cr, module_name, idref, mode, 'test')
File "/home/openerp/source/server/trunk/openerp/modules/loading.py", line
135, in _load_data
tools.convert_yaml_import(cr, module_name, fp, idref, mode, noupdate)
File "/home/openerp/source/server/trunk/openerp/tools/yaml_import.py", line
805, in yaml_import
yaml_interpreter.process(yaml_string)
File "/home/openerp/source/server/trunk/openerp/tools/yaml_import.py", line
740, in process
self._process_node(node)
File "/home/openerp/source/server/trunk/openerp/tools/yaml_import.py", line
755, in _process_node
self.process_python(node)
File "/home/openerp/source/server/trunk/openerp/tools/yaml_import.py", line
426, in process_python
unsafe_eval(code_obj, {'ref': self.get_id}, code_context)
File "/home/openerp/source/addons/trunk/survey/test/survey00.yml", line 1, in
<module>
- |
File "/home/openerp/source/addons/trunk/survey/wizard/survey_answer.py", line
528, in create
resource_id = super(survey_question_wiz, self).create(cr, uid, vals,
context=context)
File "/home/openerp/source/server/trunk/openerp/osv/orm.py", line 3937, in
create
vals = self._add_missing_default_values(cr, user, vals, context)
File "/home/openerp/source/server/trunk/openerp/osv/orm.py", line 2335, in
_add_missing_default_values
defaults = self.default_get(cr, uid, missing_defaults, context)
File "/home/openerp/source/addons/trunk/survey/wizard/survey_answer.py", line
516, in default_get
for key,val in safe_eval(sur_name_read.get('store_ans',"{}")).items():
File "/home/openerp/source/server/trunk/openerp/tools/safe_eval.py", line
243, in safe_eval
if '__subclasses__' in expr:
TypeError: argument of type 'bool' is not iterable
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-862168-jam/+merge/77875
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-862168-jam.
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp