[Zope-CMF] Re: Portal Types: default action
Yuppie
schubbe@web.de
Wed, 25 Jun 2003 15:02:35 +0200
Hi!
Arjan Huizer wrote:
> Since I want my users to create links from other documents to this
> newsletter I do not want them to have to include the method in the
> URL.
>
> Is this simple to solve?
ZPublisher looks for index_html.
Either
you adjust index_html
or
you do in your class the same PortalContent does:
def __call__(self):
'''
Invokes the default view.
'''
view = _getViewFor(self)
if getattr(aq_base(view), 'isDocTemp', 0):
return view(self, self.REQUEST)
else:
return view()
index_html = None # This special value informs ZPublisher to use
__call__
HTH,
Yuppie