<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">Thanks for Replying Andreas..</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">but I found the problem... it was at the &lt;dtml-call "manage_addShpTypePoint"&gt;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">I forget that I was calling a python method that required 4 argument in the parenthesis.</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">If I were to do it using python scripting (do you mean internal or external methods or python scripting) what would it look like?</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR><BR>&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Andreas Jung &lt;lists@zopyx.com&gt;<BR>To: Allen Huang &lt;swapp0@yahoo.com&gt;; Zope &lt;zope@zope.org&gt;<BR>Sent: Saturday, January 6, 2007 9:52:36 PM<BR>Subject: Re: [Zope] problem with createing a product object using dtml<BR><BR>
<DIV>--On 6. Januar 2007 05:50:10 -0800 Allen Huang &lt;swapp0@yahoo.com&gt; wrote:<BR><BR>&gt; I created a product using python scripting and worked fine when I create<BR>&gt; it from the pulldown add menu. But when I try to use<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dtml-let number=sequence-index&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;dtml-with "manage_addProduct['ShpType']"&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dtml-call<BR>&gt; "REQUEST.set('id',readShpPoint(shpPath,number)[0])"&gt;<BR>&gt; &lt;dtml-call "REQUEST.set('x',readShpPoint(shpPath,number)[1])"&gt;<BR>&gt; &lt;dtml-call "REQUEST.set('y',readShpPoint(shpPath,number)[2])"&gt;<BR>&gt; &lt;dtml-call
 "manage_addShpTypePoint"&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/dtml-with&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/dtml-let&gt;<BR>&gt;<BR>&gt; it didn't create an product object.<BR>&gt;<BR><BR>Sorry but your code is nonsense. Use a PythonScript instead.<BR>There is no need to use DTML at this point.<BR><BR>-aj</DIV></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR></DIV></div><br>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com </body></html>