[Zope-CMF] Re: Abusing GenericSetup during traditional installs

Tres Seaver tseaver at palladion.com
Fri Jul 28 09:57:24 EDT 2006

Hash: SHA1

Martin Aspeli wrote:
> Hi,
> I realise this isn't entirely kosher (and that yuppie has much better
> long-term ideas), but I am wondering if it's possible to invoke some
> GenericSetup handler code during a more traditional Extensions/Install.py
> install.
> This is purely for convenience - but if I need a more traditional product
> install (with a UI for uninstall and so on), I can use CMFQuickInstaller or
> external methods. However, doing things like FTIs and workflow definitions
> with GS XML syntax is way more convenient and maintainable.
> Is there some way I could invoke a handler explicitly, e.g. say "run the
> workflow installation handler on this particular XML file from my product
> only"? Or do handlers have pre-requisites of context and/or side-effects
> that make them usable only within the context of a GS import run?

I would actually like to surface the functionality which makes "partial"
imports easy.  My CMFFolderExport product demos this for "content space"


The product uses the registered GS handlers to drive views for exporting
/ importing a folder's contents as a tarball.

I think it would be possible to write new ZMI views for the tools which
have GS profile support to allow exporting / importing their
configurations as well.  TypeInformation and DCWorkflow objects could
benefit from this as well.

- --
Tres Seaver          +1 202-558-7113          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


More information about the Zope-CMF mailing list