<!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.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I think this will help <A 
href="http://old.zope.org/Members/peterbe/DTML2ZPT/index_html?pp=1">http://old.zope.org/Members/peterbe/DTML2ZPT/index_html?pp=1</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>dragos</FONT></DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=a.meyer@hccnet.nl href="mailto:a.meyer@hccnet.nl">Andre Meyer</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=zope@zope.org 
  href="mailto:zope@zope.org">zope@zope.org</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=webmaven@cox.net 
  href="mailto:webmaven@cox.net">webmaven@cox.net</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, November 20, 2003 9:53 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [Zope] some Zope issues: 
  dtml-zpt, permissions, scalability</DIV>
  <DIV><BR></DIV>
  <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>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>Zope maillist&nbsp; 
  -&nbsp; 
  Zope@zope.org<BR>http://mail.zope.org/mailman/listinfo/zope<BR>**&nbsp;&nbsp; 
  No cross posts or HTML encoding!&nbsp; **<BR>(Related lists - 
  <BR>&nbsp;http://mail.zope.org/mailman/listinfo/zope-announce<BR>&nbsp;http://mail.zope.org/mailman/listinfo/zope-dev 
  )<BR></BLOCKQUOTE></BODY></HTML>