【发布时间】:2012-01-28 23:35:54
【问题描述】:
注意:我是 ZCA 的新手,所以代码可能不正确;不过,我对 ZCA 的工作方式有点熟悉。
例如:
class I1(Interface):
def c1():
pass
class U1(object):
implements(I1) #is this necessary?
def c1():
#do some things here
是否需要 implements(I1) 行,或者 ZCA 是否可以自行确定 U1 实现了 I1(有点像 Go 中的接口工作方式)?
【问题讨论】:
标签: python zope zope.interface zope.component