I have a config.py
in my product, having:
DEPENDENCIES = ['bbbbbbbbbbbb'] #This doesn't exist
And in my setuphandlers.py
:
for dependency in DEPENDENCIES:
if not quickinstaller.isProductInstalled(dependency):
quickinstaller.installProduct(dependency)
And now I have a bbbbbbbbbbbb entry in my portal_quickinstaller's Contents tab. (http://localhost:8080/Plone/portal_quickinstaller/manage_main).
What should I do to make the dependencies section 'complain' (raise an exception, whatever) if the dependency doesn't exist? Thanks!
EDIT: I've found a hack using quickinstaller.getProductVersion
: if nothing comes, it doesn't exist. Is there another way?