[Erp5-dev] Activity semaphoring/locking mechanisms, was: activate_kw for activities - how to use?
Łukasz Nowak
lukasz.nowak at ventis.com.pl
Tue Mar 11 13:16:10 CET 2008
Hello,
On 2008-03-11, 12:58:50
Yoshinori Okuji <yo at nexedi.com> wrote:
> On Tuesday 11 March 2008 12:23, Łukasz Nowak wrote:
> > Thank you very much. Is it ok if I update wiki with those
> > information?
>
> If you do, please include this:
Done.
> activity_kw is a way to pass parameters to the activate method which
> is invoked internally from another method. That is the only way to
> pass such parameters at the moment, but the design is flawed.
> Originally, I (yo) invented this parameter only for reindexObject,
> and it was good enough in this case, because a single method call
> happened here at one level. Other developers, however, extended the
> meaning, and started to propagate activity_kw at multiple levels to
> multiple methods, and this was wrong, since the scope is too large.
I've stopped here and added link to our discussion - if it is not
enough feel free to correct my wiki update.
Thanks for explanation - I'm sure I wouldn't be able to figure it out
from code or revision history in such short time.
Regards,
Luke
--
Łukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...'' I am only craftsman.
More information about the Erp5-dev
mailing list