Re: Fun with vocabularies

Fred Drake <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>
On Thu, Oct 7, 2010 at 8:21 AM, Charlie Clark
<[email protected]> 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
_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.