My Plone product does not appear in the quick installer
I have a Plone site with a legacy product BaseProduct
(a version directly in the filesystem directory Products
for installing Zope); the rest of the customization buildout
.
For a fork of the project, I need another product AdditionalProduct
that I did exactly the same (I know this is not a modern modern method, but how it worked before for me ...).
I have now managed to install AdditionalProduct
using the quick install tool (it now only contains one directory with a single template, but that will of course change).
Unfortunately this stopped working; the product no longer appears in the quick installer. There is no visible error; I was able to do pdb.set_trace()
it during instance startup and there is no error in error.log either.
The file profiles.zcml
looks like this:
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
i18n_domain="BaseProduct">
<include package="Products.GenericSetup" file="meta.zcml" />
<genericsetup:registerProfile
name="default"
title="AdditionalProduct"
directory="profiles/default"
description="Extension profile for AdditionalProduct."
provides="Products.GenericSetup.interfaces.EXTENSION"
/>
</configure>
(Copied and modified from an earlier AdditionalProduct
other fork, I don't really understand this part "meta.zcml"
.)
How can I debug this?
I would like to "tell" my product ( AdditionalProduct
firstly, as it has a problem, possibly BaseProduct
later), but I'm not sure about the scope of work and how - It would be helpful ...
source to share
You can debug this by excluding the following:
- ZCML not loaded (Enter a syntax error in profiles.zcml and restart Plone to ensure that the zcml profiles are loaded.)
- You don't have an entry point
'z3c.autoinclude.plugin': 'target = plone'
(not applicable as you are not using the Python package) - Your product won't load Zope2 because it is not in the products folder or has some related problems, for example. missing
__init__.py
.
Also, you may not need the following as it must already be enabled by Plone before uploading your products:
<include package="Products.GenericSetup" file="meta.zcml" />
(And file='meta.zcml'
means "load meta.zcml instead of the default filename ie configure.zcml")
Finally, I would recommend creating a Python package (AKA "eggify"). See the following information:
source to share