[Erp5-dev] Default parameter (list) [eg] in OrderBuilder - which way is better?

Łukasz Nowak lukasz.nowak at ventis.com.pl
Mon Jun 16 09:55:46 CEST 2008


Hello,

On 2008-06-12, 11:35:13
Mikolaj Antoszkiewicz <mikolaj at erp5.pl> wrote:

(...)
> Arghh, sorry, sorry, my bad! Of course I meant MUTABLES and list
is
> of course mutable.

Having in mind what you said, I've created another patch, which is
initialising list in case of parameter passed as None.

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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OrderBuilder.py-initialise-list-to-empty-list-if-None.patch
Type: text/x-patch
Size: 840 bytes
Desc: not available
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20080616/d5480adb/attachment.bin>


More information about the Erp5-dev mailing list