<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Dear Zopers</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>During the last few weeks I have been working 
through the documentation of Zope for building my own products. One valuable 
source was the Zope Bible. With help from this list and the authors of the book 
I decided to go for a file system based product using ZPT. Unfortunately, the 
example in the book is using DTML like most others still do. When trying to 
convert from DTML to ZPT I found the following problem:</FONT></DIV>
<DIV><FONT face=Arial size=2>It is easy to change dtml-in to tal:repeat and the 
like.&nbsp;But how to convert from dtml-call to tal? Look at the folowing 
snippet:</FONT></DIV>
<DIV><FONT face=Arial size=2>
<HR>
</FONT></DIV>
<DIV><FONT face=Arial size=2>&lt;dtml-unless 
SelectedGroup&gt;<BR>&nbsp;&lt;dtml-<STRONG>call</STRONG> 
"REQUEST.set('SelectedGroup', 'All')"&gt;<BR>&lt;/dtml-unless&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&lt;dtml-unless start&gt;<BR>&nbsp;&lt;dtml-call 
"REQUEST.set('start', 1)"&gt;<BR>&lt;/dtml-unless&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&lt;dtml-unless sort_by&gt;<BR>&nbsp;&lt;dtml-call 
"REQUEST.set('sort_by', 
'LastName,FirstName,MiddleInitial')"&gt;<BR>&lt;/dtml-unless&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>
<HR>
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Another problem occurs with permissions. The 
following snippet works in dtml, but when converted to zpt (accessing 
here/listEntriesByGroup) the same method cannot be accessed any 
longer.</FONT></DIV>
<DIV>
<HR>
</DIV>
<DIV><FONT face=Arial size=2>&lt;dtml-in 
"<STRONG>listEntriesByGroup(_['SelectedGroup'])"</STRONG> size=20 start=start 
sort_expr="sort_by"&gt;<BR>&nbsp; &lt;tr &lt;dtml-if 
sequence-even&gt;bgcolor="#CCCCCC"&lt;/dtml-if&gt;&gt;<BR>&nbsp;&nbsp; 
&lt;td&gt;&lt;input type=checkbox name="EntryIDs:list" 
value="&amp;dtml-id;"&gt;&lt;/td&gt;<BR>&nbsp;&nbsp; &lt;td&gt;&lt;a 
href="&amp;dtml-id;"&gt;&lt;dtml-var title&gt;&lt;/td&gt;<BR>&nbsp;&nbsp; 
&lt;td&gt;&lt;dtml-var Title&gt;&amp;nbsp;&lt;/td&gt;<BR>&nbsp;&nbsp; 
&lt;td&gt;&lt;dtml-var Company&gt;&amp;nbsp;&lt;/td&gt;<BR>&nbsp;&nbsp; 
&lt;td&gt;&lt;a href="&lt;dtml-var 
id&gt;/editEntryForm"&gt;Edit&lt;/a&gt;&lt;/td&gt;<BR>&nbsp; 
&lt;/tr&gt;<BR>&lt;/dtml-in&gt;</FONT></DIV>
<DIV>
<HR>
</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Yet another issue is related to scalability when I 
have&nbsp;an object&nbsp;that references a list of other objects using a 
<STRONG>dictionary</STRONG>. How does this perform when the dictionary contains 
10.000 or 50.000 entries? Is that feasible or are there better 
solutions?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>thanks a lot for your help</FONT></DIV>
<DIV><FONT face=Arial size=2>Andre</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BODY></HTML>