[Zope-CMF] Default action

seb bacon seb@jamkit.com
Wed, 11 Jul 2001 09:46:09 +0100


I presume you looked at the source, right?  

(short answer: it returns the first action from the actions list for
which the user has appropriate permissions)

seb

* Chris Withers <chrisw@nipltd.com> [010711 07:21]:
> > [Chris Withers]
> >
> > | ...what determines the method that gets called on mycontent to
> > | return a result to the above?
> >
> > I thought __call__() was always called, because index_html is set to
> > None (and this is supposedly a hint to ZPublisher to use __call__).
> 
> I may be mistaken, but I think PortalContent has it's own __call__ which
> finds the appropriate method to call and then calls that. I guess I should
> take a look at the source ;-)
> 
> cheers,
> 
> Chris