[Zope-CMF] Re: GenericSetup: removing objects

Maurits van Rees m.van.rees at zestsoftware.nl
Tue Feb 26 10:29:05 EST 2008


Maurits van Rees, on 2008-02-26:
> Hi,
>
> Say you have for example an actions.xml like this:
>
>  <object name="portal_actions" meta_type="Plone Actions Tool">
>       <object name="history" remove="True"/>
>  </object>
>
> So you want to remove the history object.  When you run a GS extension
> profile with this file twice, you get an AttributeError: at the
> second run the importer cannot remove this object because it was
> already removed.  Pretty lame.
>
> Does anyone mind if I fix that so the importer just continues when the
> to-be-removed object is already removed?  That would go like this on
> GS trunk:

Wichert told me to go ahead. :)

Fixed on GS trunk in rev 84270 and on branch 1.3 in rev 84271.

-- 
Maurits van Rees | http://maurits.vanrees.org/
            Work | http://zestsoftware.nl/
"This is your day, don't let them take it away." [Barlow Girl]



More information about the Zope-CMF mailing list