[Checkins] SVN: Products.GenericSetup/trunk/Products/GenericSetup/ Don't bomb out with an AttributeError when encoding an attribute

Wichert Akkerman wichert at wiggy.net
Wed Mar 3 05:53:07 EST 2010


On 3/3/10 11:48 , Maurits van Rees wrote:
> Log message for revision 109595:
>    Don't bomb out with an AttributeError when encoding an attribute
>    with value None that is being exported; just use an empty string then.
>    Case in point: create a Plone Site, set the MailHost settings through
>    the Site Setup; an export of the mailhost settings would then fail if
>    some of the values (e.g. smtp_uid) were blank (None).

Might I suggest not exporting anything instead of an empty string? There 
is a big difference between None and "".

Wichert.


More information about the checkins mailing list