Ploneおぼえがき

取り急ぎ、メモ。(ちゃんとした記事でなく、自分用..。)

Ploneをbuildoutして、プロダクトの追加を行ったら、以下のようなエラーが出てインスタンスが起動してくれませんでした。

ConfigurationExecutionError: zope.component.interfaces.ComponentLookupError: (<InterfaceClass zope.security.interfaces.IPermission>, 'plone.app.portlets.ManageOwnPortlets')
  in:
  File "/usr/local/Plone3.3.2/buildout-cache/eggs/collective.portlet.feedmixer-1.4-py2.4.egg/collective/portlet/feedmixer/configure.zcml", line 30.4-37.10
      <plone:portlet
          name="collective.portlet.feedmixer.FeedMixer"
          interface=".portlet.IFeedMixer"
          assignment=".portlet.Assignment"
          renderer=".portlet.Renderer"
          addview=".portlet.AddForm"
          editview=".portlet.EditForm"
          />

なにやら、セキュリティのパーミッションでのエラーらしい。

とりいそぎ、上記のエラーに出ていたプロダクトのconfigure.zcml を修正しました。

具体的には、以下の一行を追加するだけ。

<include package="plone.app.portlets" />

これだけでとりあえず済んでよかった….

#なぜこの方法がわかったのか、ちょっと忘れてしまいましたが、いろいろとエラーが出なかったバージョンのzcmlを参照しまくったような気が…。

コメント

人気の投稿