그것은 나를 위해 잘 작동했습니다.
from zope.interface import Interface
class IBogusInterface(Interface):
""" Marker bogus interface
"""
그리고이 configure.zcml이 interfaces.py 파일로
paster create -t plone bogus.interface
:
나는 paster와 패키지를 만든 플론 (Plone) 4.0.3
에서 테스트 파일 :
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:five="http://namespaces.zope.org/five"
xmlns:i18n="http://namespaces.zope.org/i18n"
i18n_domain="bogus.interface">
<five:registerPackage package="." initialize=".initialize" />
<!-- -*- extra stuff goes here -*- -->
<interface interface=".interfaces.IBogusInterface" />
</configure>
아무것도 놓치지 않았습니까?
오류에 대한 전체 추적을 포함 할 수 있습니까? –
문제의 인터페이스를 제공하는 가짜을 추가했는데 현재 작동하는 것처럼 보입니다. 그러나 이유는 모르겠습니다. –
joeforker