[z3-five] Problems with defaultView/defaultViewable and CMF

yuppie y.2006_ at wcm-solutions.de
Wed Oct 4 11:46:44 CEST 2006


Hi Sidnei!


Sidnei da Silva wrote:
> I've recently discovered that five:defaultViewable and browser:defaultView 
> do *not* work with CMF 1.6+, due to the fact that DynamicType overrides
> __before_publishing_traverse___ which prevents __browser_default__ from 
> being called.
> 
> Questions:
> 
>   - Anyone else has faced this issue?
>   - Would you say this is a Five or CMF bug (or maybe Zope?) bug?
> 

I haven't tried that for a long time because I still prefer to use CMF's 
__before_publishing_traverse__ hook for all default view settings. But 
IIRC you can use browser:defaultView *if* you don't set a default using 
DynamicType.

Of course the __before_publishing_traverse__ hook in CMF was added 3 
years ago, long before browser:defaultView was available in Zope 2. So 
they compete in some way, but I don't consider this a bug.


Cheers,

	Yuppie



More information about the z3-five mailing list