私のconfigure.zcmlファイルに次のコードがあります。私は私のクラスがあまりにも別のインターフェイスのために実装することにしたい、私は私のZCMLファイルでこれを宣言するにはどうすればよいのはInterface2
Zope3ブラウザ:page multiple interfaces
<browser:page
for="Interface1"
class="plone.app.content.browser.reviewlist.FullReviewListView"
name="full_review_list"
template="document_full_review_list.pt"
permission="cmf.ReviewPortalContent" />
を言わせて?
は長いので、私はfolowingを試してみました:
<browser:page
for="Interface1 Interface2"
class="plone.app.content.browser.reviewlist.FullReviewListView"
name="full_review_list"
template="document_full_review_list.pt"
permission="cmf.ReviewPortalContent" />
と
<browser:page
for="Interface1"
allowed_interface="Interface2"
class="plone.app.content.browser.reviewlist.FullReviewListView"
name="full_review_list"
template="document_full_review_list.pt"
permission="cmf.ReviewPortalContent" />
ありがとう、それは私のために完璧に働いた。 – bogtan