[Zope-CMF] [GS] Running a setuphandler as first step

Hanno Schlichting hanno at hannosch.eu
Tue Jul 27 06:55:04 EDT 2010


2010/7/27 Andreas Jung <lists at zopyx.com>:
> I have the requirement to execute my own setuphandler.py inside my own
> profile before GenericSetup applies all other steps (*.xml) file.
> Is there a way to configure this requirement somehow in import_steps.xml?

import_steps.xml is deprecated, register the handlers in ZCML.
Handlers registrations are global and not specific to a profile, so it
didn't make sense to keep them inside a profile.

You could maybe configure two profiles for your package. Have the
first only do your custom step and depend on the second "real" profile
via a dependency in metadata.xml. Maybe that works. Otherwise there's
no explicit support for ordering a step before another step. Steps
only have dependencies which cause them to execute after other steps.

Hanno


More information about the Zope-CMF mailing list