Re: Context priority as an alternative to configuration directive overrides

Ross Patterson <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>
Malthe Borch <[email protected]> writes:

> I always found configuration overrides (e.g. ZCML's <includeOverrides>
> directive) to be difficult to manage and hard to get right.
>
> How about an alternative where you can put a priority on a
> configuration context like so:
>
>   <adapter zcml:priority="100" ... />
>
> Default priority would be 0, traditional overrides get the maximum
> priority. ZTK components might then all be at the default priority,
> making it trivial to add a preferred component in a custom setup.
>
> If accompagnied by a sane amount of logging output, this system might
> facilitate plugging in components "for the rest of us".

I'd like to echo Malthe's concern here.  I've had many issues with this
as well.

Recently I had a conversation with someone or read something about using
add-on specific stacked component registries.  Would this be the best
way to solve these kind of problems?  Unfortunately I can't remember
where I head/read of this.

Ross

_______________________________________________
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.