[Zope3-dev] Re: yagni on overrides?

Tres Seaver tseaver at palladion.com
Fri Apr 27 12:31:47 EDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Martijn Faassen wrote:
> Tres Seaver wrote:
> [snip]
>> One example of such an implementation would be an optional, lxml-based
>> directive which uses the native structure of the ZCML file and XPath.
>> E.g. to include only adapters from a package ::
>>
>>   <select package="my.package" file="configure.zcml">
>>    <path>//adapter//path>
>>   </select>
>>
>> The XPath processor would need to be passed the current namespace
>> mapping here, if we want to select items from the non-default namespace.
>> Otherwise, this would function pretty much like the 'include' directive
>> (it might even use that diretive's handler under the hood).
>>
>> With an egg-based story, we can more easily use stuff which depends on a
>> third-party library like lxml;  folks who can't install lxml just lose
>> this feature.
> 
> In general, I don't like relying on the syntactic structure of ZCML 
> files for this. I'd prefer to have a semantic of configuration actions 
> and a way to disable them.
> 
> If this can be a quick fix that helps people, so be it, but I think a 
> way to manipulate configuration actions from Python code is a better 
> overall approach.

I disagree, as I've said before:  I don't want policy in software.  This
may be de gustibus at this point.


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGMiVz+gerLs4ltQ4RAnzKAKCmTFyb+a05W2+4DolvtZEJXIP3uACgyXZ+
wsQBv4pQEGXjfDwnGqtjnJI=
=ueYm
-----END PGP SIGNATURE-----



More information about the Zope3-dev mailing list