#221 — ComponentLookupError while using in Plone 4.1b2
by
Max Brauer
—
last modified
Jul 04, 2011 07:33 PM
| State | Unconfirmed |
|---|---|
| Version: | 2.2 |
| Area | Migration |
| Issue type | Patch |
| Severity | Low |
| Submitted by | Max Brauer |
| Submitted on | May 13, 2011 |
| Responsible |
—
|
| Target release: |
—
|
Hello,
I tried to install Ploneboard in a (fresh) Plone 4.1b2 instance but i got the following error:
[...]
zope.configuration.config.ConfigurationExecutionError: <class 'zope.component.interfaces.ComponentLookupError'>: (<InterfaceClass zope.security.interfaces.IPermission>, 'cmf.ManagePortal')
[...]
This can pretty easily be solved by adding <include package="Products.CMFCore" file="permissions.zcml" /> to your configure.zcml
On the other hand, this fix will make Ploneboard incompatible with some older versions (e.g. tested with Plone 3.3.5). Plone 3.3.5 use a older version of Products.CMFCore (mine was 2.1.2) which have no permissions.zcml (a fresh installed Plone 4
use 2.2.2 and a Plone 4.1b2 use 2.2.4).
I hope i could help.
With kind regards,
Max Brauer
I tried to install Ploneboard in a (fresh) Plone 4.1b2 instance but i got the following error:
[...]
zope.configuration.config.ConfigurationExecutionError: <class 'zope.component.interfaces.ComponentLookupError'>: (<InterfaceClass zope.security.interfaces.IPermission>, 'cmf.ManagePortal')
[...]
This can pretty easily be solved by adding <include package="Products.CMFCore" file="permissions.zcml" /> to your configure.zcml
On the other hand, this fix will make Ploneboard incompatible with some older versions (e.g. tested with Plone 3.3.5). Plone 3.3.5 use a older version of Products.CMFCore (mine was 2.1.2) which have no permissions.zcml (a fresh installed Plone 4
use 2.2.2 and a Plone 4.1b2 use 2.2.4).
I hope i could help.
With kind regards,
Max Brauer
- Steps to reproduce:
- * set up a net Plone4.1b2
* add Products.Ploneboard to buildout
* run buildout and try to start the instance
Added by
artb1sh
on
Jul 04, 2011 07:33 PM
If you are using `buildout`_ to manage your instance installing Ploneboardis very simple. You can install it by adding it to the eggs line for your
instance::
[instance]
eggs = Products.Ploneboard
and changing the imports in
Products/Ploneboard/vocabulary.py
from
from zope.interface import implements
from zope.app.schema.vocabulary import IVocabularyFactory
from Products.CMFCore.utils import getToolByName
from zope.schema.vocabulary import SimpleVocabulary
to
from zope.interface import implements
from zope.schema.interfaces import IVocabularyFactory
from Products.CMFCore.utils import getToolByName
from zope.schema.vocabulary import SimpleVocabulary
No responses can be added.
If you can, please log in before submitting a reaction.
