Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: CMF

[GS] Running a setuphandler as first step

 

 

Zope cmf RSS feed   Index | Next | Previous | View Threaded


lists at zopyx

Jul 27, 2010, 3:44 AM

Post #1 of 3 (696 views)
Permalink
[GS] Running a setuphandler as first step

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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?

Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxOuHMACgkQCJIWIbr9KYyn7gCfaKpRdZBIQ5ALibe2ppbNbKt7
+FgAn0L0y2S0fhiPg4QATYK/DnJd9wjB
=SA9q
-----END PGP SIGNATURE-----
Attachments: lists.vcf (0.31 KB)


hanno at hannosch

Jul 27, 2010, 3:55 AM

Post #2 of 3 (627 views)
Permalink
Re: [GS] Running a setuphandler as first step [In reply to]

2010/7/27 Andreas Jung <lists [at] zopyx>:
> 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
_______________________________________________
Zope-CMF maillist - Zope-CMF [at] zope
https://mail.zope.org/mailman/listinfo/zope-cmf

See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests


lists at zopyx

Jul 27, 2010, 3:56 AM

Post #3 of 3 (632 views)
Permalink
Re: [GS] Running a setuphandler as first step [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hanno Schlichting wrote:
> 2010/7/27 Andreas Jung <lists [at] zopyx>:
>> 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.

argh...holy crap :->

Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxOu2MACgkQCJIWIbr9KYzW1gCguuhlsmheZ9mieXsScIecgWsL
8l8An0H3S4NLkAy5ta601IfUA0/JwmPO
=w2EF
-----END PGP SIGNATURE-----
Attachments: lists.vcf (0.32 KB)

Zope cmf RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.