3

Is it possible to register named adapters with five.grok.

The ZCML equivalent would be:

    <adapter name="description" factory=".indexers.mytype_description" />
Mikko Ohtamaa
  • 82,057
  • 50
  • 264
  • 435

1 Answers1

5

The grok equivalent is

from five import grok
grok.global_adapter(mytype_description, name='description')
David Glick
  • 5,422
  • 17
  • 23