Discussion:
[Erp5-dev] recursive container list
Łukasz Nowak
2008-11-25 14:38:04 UTC
Permalink
Hello,

What do you think to have recursive container list on Delivery and
Container types?

Patch attached.

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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ERP5-Document-Container-Delivery-recursive-container-list.patch
Type: text/x-patch
Size: 1825 bytes
Desc: not available
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20081125/efe9e274/attachment.bin>
Łukasz Nowak
2008-11-25 16:09:58 UTC
Permalink
Hello,
Post by Łukasz Nowak
Hello,
What do you think to have recursive container list on Delivery and
Container types?
Patch attached.
My patch had error, corrected version attached. Thanks Boris.

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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ERP5-Document-Container-Delivery-recursive-container-list.patch
Type: text/x-patch
Size: 1863 bytes
Desc: not available
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20081125/00e100b4/attachment.bin>
Yoshinori Okuji
2008-11-25 20:58:07 UTC
Permalink
Post by Łukasz Nowak
Hello,
What do you think to have recursive container list on Delivery and
Container types?
What use cases do you have in your mind?

Regards,
YO
--
Yoshinori Okuji, Nexedi KK President / Nexedi SA CTO
Nexedi: Consulting and Development of Free / Open Source Software
http://www.nexedi.co.jp/
ERP5: Full Featured High End Open Source ERP
http://www.erp5.com/
ERP5 Wiki: Developer Zone for ERP5 Community
http://www.erp5.org/
Łukasz Nowak
2008-11-26 08:07:16 UTC
Permalink
Hello,
Post by Yoshinori Okuji
Post by Łukasz Nowak
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/
Loading...