[Erp5-dev] Restricted traverse and module "concept" - confusion

Jérome Perrin jerome at nexedi.com
Thu Mar 27 14:57:35 CET 2008


Hello,

IIRC this https://svn.erp5.org/?view=rev&revision=17429 has been done to 
fix the issue you are refering to.

Jérome


Łukasz Nowak a écrit :
> Hello,
> 
> First - please look at attached test. I hope it is explaining what I
> try to explain below.
> 
> In person_module there are objects with id '1' and '2'.
> 
> If I invoke '1'.getObject()restrictedTraverse('2') I've got object '2'
> returned. Well - AFAIK is it ok from acquisition point of view.
> 
> But isn't it not correct from module oriented concept? Such problems
> are rising in simulations, when they use restricted traverse, and then
> operate on wrong object, eg. on sale_order_module/1 Sale Order instead
> of sale_order_module/12312/1 Sale Order Line, which has disappeared
> (has been deleted for example), but wasn't removed from simulation
> movement order - but restrictedTraverse returned sale_order_module/1
> while invoked on sale_order_module/12312 with parameters '1', instead
> of rising exception.
> 
> Any comments, explanations, ideas welcome. I'm quite confused.
> 
> Regards,
> Luke
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Erp5-dev mailing list
> Erp5-dev at erp5.org
> http://mail.nexedi.com/mailman/listinfo/erp5-dev



More information about the Erp5-dev mailing list