<!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> </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. 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><dtml-unless
SelectedGroup><BR> <dtml-<STRONG>call</STRONG>
"REQUEST.set('SelectedGroup', 'All')"><BR></dtml-unless></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><dtml-unless start><BR> <dtml-call
"REQUEST.set('start', 1)"><BR></dtml-unless></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><dtml-unless sort_by><BR> <dtml-call
"REQUEST.set('sort_by',
'LastName,FirstName,MiddleInitial')"><BR></dtml-unless></FONT></DIV>
<DIV><FONT face=Arial size=2>
<HR>
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </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><dtml-in
"<STRONG>listEntriesByGroup(_['SelectedGroup'])"</STRONG> size=20 start=start
sort_expr="sort_by"><BR> <tr <dtml-if
sequence-even>bgcolor="#CCCCCC"</dtml-if>><BR>
<td><input type=checkbox name="EntryIDs:list"
value="&dtml-id;"></td><BR> <td><a
href="&dtml-id;"><dtml-var title></td><BR>
<td><dtml-var Title>&nbsp;</td><BR>
<td><dtml-var Company>&nbsp;</td><BR>
<td><a href="<dtml-var
id>/editEntryForm">Edit</a></td><BR>
</tr><BR></dtml-in></FONT></DIV>
<DIV>
<HR>
</DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Yet another issue is related to scalability when I
have an object 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> </DIV>
<DIV><FONT face=Arial size=2></FONT> </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> </DIV></BODY></HTML>