c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #37215
[Bug 889315] Re: etl_interface: wrong csv_params when processing csv_in
Hello Jan,
"etl_interface" is part of the extra-addons, which are maintained by the
community, including all the modules created by "OpenERP" or "Tiny", as
none of these are actively developed by our teams anymore.
So if you or anyone from the community would like to work on it, please
mark the bug as "In progress" and assign it to yourself (or ask us or
anyone from OpenERP Drivers to do it for you). In the mean time, I will
mark it as "Won't fix" to indicate that no further progress is expected
at the moment. If you require further assistance with any similar
trouble while updating the module, do not hesitate to ask here or via a
question: https://answers.launchpad.net/openobject-addons
Thank you!
PS: For whomever works on fixing this, you probably want to apply/merge your changes in both the 6.0 and trunk branches of extra-addons:
https://code.launchpad.net/~openerp-commiter/openobject-addons/extra-6.0
https://code.launchpad.net/~openerp-commiter/openobject-addons/trunk-extra-addons
** Summary changed:
- etl_interface: wrong csv_params when processing csv_in
+ [Extra-addons]etl_interface: wrong csv_params when processing csv_in
** Changed in: openobject-addons
Status: New => Won't Fix
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/889315
Title:
[Extra-addons]etl_interface: wrong csv_params when processing csv_in
Status in OpenERP Addons (modules):
Won't Fix
Bug description:
When using the component csv_in on a Job and starting the Process, it
will return an exception because a non-dictionary value was given as
'csv_params' parameter. After some in depth debugging I found the
error to be in /etl_interface/etl_component/input/csv_in.py (ver
6.0.3,revision 5499, Line 49):
val =etl.component.input.csv_in(conn_instance, cmp.csv_params
and eval(cmp.csv_params) or {}, cmp.name, trans_instance,
cmp.row_limit)
The problem is, that the 'etl' python library will receive the
parameters in the order that they are given, which will lead to a
complete scramble of variables. Considering how the __init__ function
is defined, the correct way to call this instance would be:
val =etl.component.input.csv_in(conn_instance, name=cmp.name,
transformer=trans_instance, row_limit=cmp.row_limit,
csv_params=(cmp.csv_params and eval(cmp.csv_params) or {}))
Hope it helps.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/889315/+subscriptions
References