Hello Tim,
You can still use Extensions/Install.py, but you just need it to call your
GenericSetup profile.
To do so, have a look here: http://dev.plone.org/collective/changeset/41071
(apply the same Install.py modifications to your own Install.py)
basically you remove almost everything and you add this:
EXTENSION_PROFILES = ('Products.YouProduct:default',)
portal_setup = getUtility(ISetupTool)
(...)
# The following section is boilerplate code that can be reused when you
# need to invoke a GenericSetup profile from Install.py.
for extension_id in EXTENSION_PROFILES:
portal_setup.setImportContext('profile-%s' % extension_id)
portal_setup.runAllImportSteps(purge_old=False)
product_name = extension_id.split(':')[0]
quickinstaller.notifyInstalled(product_name)
transaction.savepoint()
Cheers,
Eric BREHAULT
On 11/4/07, TimSki <[EMAIL PROTECTED]> wrote:
>
>
> Thanks to Eric Brehault for pointing me in the right direction for a
> solution.
>
> I had originally built my product along zope 2 lines and didn't realise
> that
> I needed to go down the zope 3 path with configure.zcml etc.
>
> In fixing the problem however I found an issue with installation scripts.
> My zope 2 style product had the standard Extensions/install.py script to
> install it. When I added configure.zcml and referenced the
> Products.GenericSetup.interfaces.EXTENSION interface it wouldn't process
> my
> viewlets.xml file. After much experimenting I found that the presence of
> Extensions/install.py was the problem. Once I removed this and made the
> product a cleaner zope 3 style it installed OK.
>
> Has anyone met this issue before. What concerns me is that I may need to
> run install scripts for other parts of my product where they don't fit
> neatly into configure.zcml tags.
>
> Tim
> --
> View this message in context:
> http://www.nabble.com/Customising-the-searchbox-viewlet-tf4620878s20094.html#a13570761
> Sent from the Product Developers mailing list archive at Nabble.com.
>
>
> _______________________________________________
> Product-Developers mailing list
> [email protected]
> http://lists.plone.org/mailman/listinfo/product-developers
>
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers