[Erp5-dev] OOoDocument_updateMetadata.xml - why not default to list?

Yusei TAHARA yusei at nexedi.com
Wed Dec 19 15:46:33 CET 2007


Hello Łukasz,

On Wed, 19 Dec 2007 15:31:25 +0100
Łukasz Nowak <lukasz.nowak at ventis.com.pl> wrote:

> Hello,
> 
> In 18416 I've seen, that value_list is default to None, but it might be
> default to list, so code would be simpler (attached).
> 
> As I'm doing such "code readiblity optimisation" I'd like to know if is
> it not performance drawback (or maybe performance advantage?) to default
> to [] instead of None in such cases.
> 
> Spying erp5-report as always ;-),
> Regards,
> Luke

My purpose is that I'd like to set value only if inputted value exists.
if default is [] instead, then value will be ''(empty string)
even if listfield is not exists in form.

-- 
Yusei TAHARA <yusei at nexedi.com>



More information about the Erp5-dev mailing list