[Zope-CMF] Portal Types: default action

Dieter Maurer dieter@handshake.de
Fri, 27 Jun 2003 00:51:50 +0200


Arjan Huizer wrote at 2003-6-25 12:17 +0200:
 > I am using Zope 2.6.1 with CMF 1.3 on a Linux box. I have a question: How does Zope/CMF determine what to send to the user when he visits a URL like http://localhost/portal/myObject without a trailing method added to it? How can this behaviour be changed?

It uses the method "_getViewFor" to determine the action.
Read its source to find out the details.

When I remember right (it was documented somewhere but I forgot where),
it searches for a "view" action. If it does not find one, it uses
the first action available for "Anonymous".


Dieter