标签: plone zope grok
是否可以使用five.grok注册命名适配器。
ZCML的等价物是:
<adapter name="description" factory=".indexers.mytype_description" />
答案 0 :(得分:4)
grok等价物是
from five import grok grok.global_adapter(mytype_description, name='description')