[Zope] Re: index_html

Danae and Andy dna@agmweb.bc.ca
Sat, 6 May 2000 21:18:50 -0700


This is a multi-part message in MIME format.

------=_NextPart_000_0006_01BFB7A0.AC5D28A0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Alright so I fixed this one by creating an index_html method. That makes =
sense. So I was reading an article by Amos which said =
http://www.zope.org/Documentation/How-To/changeIndex that you can make a =
method that calls an object, so that you can change to a different =
object for index_html. For example:=20

<dtml-var Default>

When I call this I get <MyObject instance at 017CB800>.
However when I call it directly it works fine.

Thanks.

----- Original Message -----=20
From: Danae and Andy=20
To: zope@zope.org=20
Sent: Saturday, May 06, 2000 5:52 PM
Subject: index_html


I have a custom ZClass as my index_html in a folder. It seems though =
Zope doesnt choose this as the default page. Any idea how I can make it =
do that, is that adding a method to my Class?

Thanks.

------=_NextPart_000_0006_01BFB7A0.AC5D28A0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Alright so I fixed this one by creating =
an=20
index_html method. That makes sense. So I was reading an article by Amos =
which=20
said <A=20
href=3D"http://www.zope.org/Documentation/How-To/changeIndex">http://www.=
zope.org/Documentation/How-To/changeIndex</A>&nbsp;that=20
you can make a method that calls an object, so that you can change to a=20
different object for index_html. For example: </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;dtml-var Default&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>When I call this&nbsp;I get =
&lt;MyObject instance=20
at 017CB800&gt;.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>However when I call it directly it =
works=20
fine.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV style=3D"FONT: 10pt arial">----- Original Message -----=20
<DIV style=3D"BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> <A=20
href=3D"mailto:dna@agmweb.bc.ca" title=3Ddna@agmweb.bc.ca>Danae and =
Andy</A> </DIV>
<DIV><B>To:</B> <A href=3D"mailto:zope@zope.org"=20
title=3Dzope@zope.org>zope@zope.org</A> </DIV>
<DIV><B>Sent:</B> Saturday, May 06, 2000 5:52 PM</DIV>
<DIV><B>Subject:</B> index_html</DIV></DIV>
<DIV><BR></DIV>
<DIV><FONT face=3DArial size=3D2>I have a custom ZClass as my index_html =
in a=20
folder. It seems though Zope doesnt choose this as the default page. Any =
idea=20
how I can make it do that, is that adding a method to my =
Class?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks.</FONT></DIV></BODY></HTML>

------=_NextPart_000_0006_01BFB7A0.AC5D28A0--