[Zope-dev] Context priority as an alternative to configuration directive overrides
Malthe Borch
mborch at gmail.com
Thu Dec 2 03:15:44 EST 2010
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".
\malthe
More information about the Zope-Dev
mailing list