[Zope3-dev] Re: [z3-five] zcml questions

Tres Seaver tseaver at palladion.com
Tue Sep 26 14:04:34 EDT 2006


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

Dieter Maurer wrote:
> Chris Withers wrote at 2006-9-25 18:44 +0100:
>> ...
>> Can we have a papal edict that zcml that has side effects is a bug?
>> (including the dotted name thing...)
> 
> Hm: the purpose of "zcml" is to have side effects (register things,
> patch classes with marker interfaces, add permissions, ...)

But not during *parsing* of the ZCML:  parsing is supposed to create a
sequence of actions, which, when executed in sequence, make those changes.

Because we check some kinds of errors too early (during parsing:  in
particular, we check the resolvability of "dotted names"), we force some
directives to have "early" effects.


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

iD8DBQFFGWuy+gerLs4ltQ4RAjlIAJwK15uUCu6ZRTID+lYnQcsxekQCzQCfbkwI
MukYTI07cG07nUAgdVudcTQ=
=OU26
-----END PGP SIGNATURE-----


More information about the Zope3-dev mailing list