[Zope-CMF] Re: [dev] GenericSetup: using global steps
Wichert Akkerman
wichert at wiggy.net
Fri Dec 21 06:28:02 EST 2007
Previously yuppie wrote:
> Hi!
>
>
> Wichert Akkerman wrote:
> >Previously yuppie wrote:
> >>GenericSetup trunk has global step registries. I propose to use the new
> >>ZCML directive for registering all GenericSetup and CMF import and
> >>export steps globally. And to remove the import_steps.xml and
> >>export_steps.xml files from the profiles shipped with CMF.
> >>
> >>This also requires to add a flag file for the 'various' step.
> >>
> >>I already started implementing this. If there are no objections, I'll
> >>soon check in my changes.
> >
> >+1
> >
> >there is one thing missing at the moment: unregistering the old
> >profile-registered steps. I'm not sure what the right way to do that is.
>
> listExportSteps() and getSortedImportSteps() now have unit tests and no
> longer return duplicates. AFAICS we now have a clean override behavior
> and nothing breaks if the same step is registered locally *and* globally.
Great, thanks for doing that.
> But I agree there should be a way to remove obsolete and broken local
> steps. A method that removes local duplicates of global steps and a
> method that removes broken steps would be useful. Not sure if they
> should be run automatically or if there should be a cleanup button in
> the UI.
I would prefer manually: otherwise we risk breaking things if someone
tries a newer version of a product and then downgrades and suddenly
looses the step registrations. I will see if I can make a ZMI page for
that over the next week.
Wichert.
--
Wichert Akkerman <wichert at wiggy.net> It is simple to make things.
http://www.wiggy.net/ It is hard to make things simple.
More information about the Zope-CMF
mailing list