[Zope-dev] Fun with vocabularies

Fred Drake fdrake at acm.org
Thu Oct 7 08:34:01 EDT 2010


On Thu, Oct 7, 2010 at 8:21 AM, Charlie Clark
<charlie.clark at clark-consulting.eu> wrote:
> I was wondering whether it's possible to use callables for schema
> vocabularies without registering them first?
...
> I'm sure it should be possible but my weak and feeble brain has somehow
> failed to solve the puzzle!

Have you tried using a callable that provides
zope.schema.interfaces.IContextSourceBinder?

Looking at the code in 3.7.0 (the newest zope.schema in my egg cache),
that should work out of the box.


  -Fred

--
Fred L. Drake, Jr.    <fdrake at acm.org>
"A storm broke loose in my mind."  --Albert Einstein


More information about the Zope-Dev mailing list