[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope-cmf
Subject:    Re: [Zope-CMF] Portal Types: default action
From:       Dieter Maurer <dieter () handshake ! de>
Date:       2003-06-26 22:51:50
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic