<!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> </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> </DIV>
<DIV><FONT face=Arial size=2>dragos</FONT></DIV>
<DIV> </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> </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>
<P>
<HR>
<P></P>_______________________________________________<BR>Zope maillist
-
Zope@zope.org<BR>http://mail.zope.org/mailman/listinfo/zope<BR>**
No cross posts or HTML encoding! **<BR>(Related lists -
<BR> http://mail.zope.org/mailman/listinfo/zope-announce<BR> http://mail.zope.org/mailman/listinfo/zope-dev
)<BR></BLOCKQUOTE></BODY></HTML>