[Erp5-dev] recursive container list

Łukasz Nowak email at lnowak.com
Wed Nov 26 09:07:16 CET 2008


Hello,

On Tue, 2008-11-25 at 21:58 +0100, Yoshinori Okuji wrote:
> On Tuesday 25 November 2008 15:38:04 Łukasz Nowak wrote:
> > Hello,
> >
> > What do you think to have recursive container list on Delivery and
> > Container types?
> 
> What use cases do you have in your mind?

I did that, because it was possible. :)

Well - in reality I was exploring possibility of automatic setting
Containers serial_number. And as new Container might be added/cloned
when others are still indexed, using portal_catalog wouldn't be enough.

I tested it a little on my machine, with quite complicated container
tree - fetching recursive list that way took ~0.8s, and that's too long
- copy & paste of quite big container tree made this unusable - for
every added Container there was walk over tree of containers.

My original problem was: How to implement automatic serial numbers of
Containers in Nexedish way, having in mind Container resource's
product_line (eg. to have distinction between cartoon and palet)?

Well - there is low efficiency of recursive algorithm in this case I
think I'll do something in activities.

Regards,
Luke

-- 
Łukasz Nowak IT Specialist email at lnowak.com http://lnowak.com/
Skype: Shufla jid: shufla at jabster.pl
``Use the Source, Luke...'' My blog: http://shufla.rootnode.net/




More information about the Erp5-dev mailing list