[Zope3-dev] "for" attribute not checked in zcml

Christophe Combelles ccomb at free.fr
Sun Jun 10 05:35:30 EDT 2007


Hello,

Many zcml directives have a "for" attribute, which take an interface as 
argument. Absent-minded people like me sometimes happen to put a real class 
instead of an interface in the "for" attributes.

* On browser:page, one can put a real class with no error. Is it correct?
* On browser:containerViews, that lead to a non explicit error :
  Error object: list.index(x): x not in list

Is there a possibility to check this thing during startup, when zcml is parsed?
That would save time finding out what the real problem is.


Christophe


More information about the Zope3-dev mailing list