<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 <dtml-call "manage_addShpTypePoint"></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"> </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"> </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> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Andreas Jung <lists@zopyx.com><BR>To: Allen Huang <swapp0@yahoo.com>; Zope <zope@zope.org><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 <swapp0@yahoo.com> wrote:<BR><BR>> I created a product using python scripting and worked fine when I create<BR>> it from the pulldown add menu. But when I try to use<BR>><BR>> <dtml-let number=sequence-index><BR>> <dtml-with "manage_addProduct['ShpType']"><BR>> <dtml-call<BR>> "REQUEST.set('id',readShpPoint(shpPath,number)[0])"><BR>> <dtml-call "REQUEST.set('x',readShpPoint(shpPath,number)[1])"><BR>> <dtml-call "REQUEST.set('y',readShpPoint(shpPath,number)[2])"><BR>> <dtml-call
"manage_addShpTypePoint"><BR>> </dtml-with><BR>> </dtml-let><BR>><BR>> it didn't create an product object.<BR>><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>