Re: [Zope-dev] Fun with vocabularies

2010-10-12 Thread Charlie Clark
Am 07.10.2010, 14:50 Uhr, schrieb Charlie Clark charlie.cl...@clark-consulting.eu: Thanks for the tip. For a vocabulary it has to provide IBaseVocabulary as well, although I guess I can just define a source. Unfortunately I'm getting now getting an AssertionError when the widgets are setup

[Zope-dev] Fun with vocabularies

2010-10-07 Thread Charlie Clark
Hi, I was wondering whether it's possible to use callables for schema vocabularies without registering them first? ie. def my_vocab(context): while some_constraint: yield zope.schema.SimpleTerm() alsoProvides(my_vocab, zope.schema.interfacesIBaseVocabulary) class

Re: [Zope-dev] Fun with vocabularies

2010-10-07 Thread Hanno Schlichting
Hi. On Thu, Oct 7, 2010 at 2:21 PM, Charlie Clark charlie.cl...@clark-consulting.eu wrote: I was wondering whether it's possible to use callables for schema vocabularies without registering them first? No offense, but isn't this a question for a users mailing list? It's not really about

Re: [Zope-dev] Fun with vocabularies

2010-10-07 Thread Fred Drake
On Thu, Oct 7, 2010 at 8:21 AM, Charlie Clark charlie.cl...@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

Re: [Zope-dev] Fun with vocabularies

2010-10-07 Thread Charlie Clark
Am 07.10.2010, 14:31 Uhr, schrieb Hanno Schlichting ha...@hannosch.eu: No offense, None taken. but isn't this a question for a users mailing list? It's not really about developing Zope itself, but developing with Zope isn't it? I thought we were consolidating the mailing lists? It is a

Re: [Zope-dev] Fun with vocabularies

2010-10-07 Thread Fred Drake
On Thu, Oct 7, 2010 at 8:35 AM, Charlie Clark charlie.cl...@clark-consulting.eu wrote: I thought we were consolidating the mailing lists? It is a developer's rather than a user's question but I would agree not related to ZTK development. Another consolidation? We already tossed the zope3-dev

Re: [Zope-dev] Fun with vocabularies

2010-10-07 Thread Charlie Clark
Am 07.10.2010, 14:38 Uhr, schrieb Fred Drake fdr...@acm.org: Another consolidation? We already tossed the zope3-dev list. This was the suggestion at the summit: http://wiki.zope.org/ztk/ZopeSummit2010Summary Charlie -- Charlie Clark Managing Director Clark Consulting Research German

Re: [Zope-dev] Fun with vocabularies

2010-10-07 Thread Charlie Clark
Am 07.10.2010, 14:34 Uhr, schrieb Fred Drake fdr...@acm.org: 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. Thanks for the tip. For a vocabulary

Re: [Zope-dev] Fun with vocabularies

2010-10-07 Thread Fred Drake
On Thu, Oct 7, 2010 at 8:45 AM, Charlie Clark charlie.cl...@clark-consulting.eu wrote: This was the suggestion at the summit: http://wiki.zope.org/ztk/ZopeSummit2010Summary Interestingly, I can't find anything that suggests consolidation by searching that page for mail or list. Was that what

Re: [Zope-dev] Fun with vocabularies

2010-10-07 Thread Charlie Clark
Am 07.10.2010, 14:58 Uhr, schrieb Fred Drake fdr...@acm.org: Interestingly, I can't find anything that suggests consolidation by searching that page for mail or list. Was that what IRC/mailinglist rationalisation means? Yes, that's the one. Charlie -- Charlie Clark Managing Director Clark