[Zope] How to change default method for calling object from the web?

Thierry FLORAC thierry.florac@onf.fr
Wed, 5 Mar 2003 15:31:57 +0100


On Wednesday 05 March 2003 13:26, Lubos Culen wrote:
> Hello!
>
> I have a problem:
>
> Let's assume I have object 'obj' and its method 'view' . So, calling the
> object 'obj' from web URL (e.g. 'www.mysite.com/path/obj' ) will display
> content of 'obj'. Calling 'www.mysite.com/path/obj/view' will call method
> 'view' of the object 'obj'.
>
> Now I want that the method 'view' should be DEFAULT method for the object
> 'obj', so calling 'www.mysite.com/path/obj' should automatically call the
> method 'view' of object 'obj'. Is it possible to do in Zope and how?

Just call your method 'index_html' instead of 'view'.

Thierry

-- 
  Linux every day, keeps Dr Watson away...
  http://gpc.sourceforge.net -- http://www.ulthar.net