<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.0.9">
</HEAD>
<BODY>
On Wed, 2004-03-24 at 14:21, Chris Withers wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE><FONT COLOR="#40a3c5"><I>FLORAC Thierry wrote:
> Concerned objects are custom classes instances, inherited from
> SimpleItem or ObjectManager (for which the "absolute_url" is never
> defined).
Yeah, but be DAMN sure your class returns an id get .getID() is called ;-)</I></FONT></PRE>
</BLOCKQUOTE>
<BR>
Do you mean "getId" or "getID" ??<BR>
The "getId" method is never redefined and the "id" property is always set...<BR>
<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE><FONT COLOR="#40a3c5"><I>> I can use several methods :
> - <dtml-let MYINSTANCE="otherObject.callMethod()"> (which retrieves an
> object)
> - <dtml-call "REQUEST.set('MYINSTANCE', otherObject.callMethod())">
> (which is used mainly when the result can be used in several scripts)
> - <dtml-in ... prefix="sequence">
> <dtml-let MYINSTANCE=sequence_item>
Ewww... DTML :'(</I></FONT></PRE>
</BLOCKQUOTE>
<BR>
I know that DTML doesn't seems to be the best way to define pages templates, but my application which is quite old now il heavily based on DTML and I can't modify all my templates to use ZPT...<BR>
<BR>
<BR>
Thierry<BR>
<BR>
<PRE><TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>--
Linux every day, keeps Dr Watson away...
http://gpc.sourceforge.net -- http://www.ulthar.net</PRE>
</TD>
</TR>
</TABLE>
</PRE>
</BODY>
</HTML>