[Grok-dev] Re: Using martian to load schemata
Martijn Faassen
faassen at startifact.com
Wed Jun 25 14:31:31 EDT 2008
Martin Aspeli wrote:
> Martijn Faassen <faassen <at> startifact.com> writes:
>
>> This has absolutely nothing to do with Martian, just with the way
>> configuration works in Zope 3. If you are going to define your schema at
>> configuration time (or run time) and want to *use* them during import
>> time (as grok.Fields or formlib in general actually does), i.e. *before*
>> configuration, you'll have this problem.
>
> Yeah, I understand. I can just imaging myself wanting to use things like
> utilities and adapters to write grokkers, thus getting into such a chicken
> and egg problem. Maybe it's not a common need, though.
You can use these in configuration actions, as long as you're sure
they're happening *after* the other actions that registered them have
happened. You can't use them in the grokkers themselves though for the
same reason you cannot use them in the implementation of a ZCML directive.
It's not been a common need so far, I think.
Regards,
Martijn
More information about the Grok-dev
mailing list