6 Jan
2007
6 Jan
'07
1:52 p.m.
--On 6. Januar 2007 05:50:10 -0800 Allen Huang <swapp0@yahoo.com> wrote:
I created a product using python scripting and worked fine when I create it from the pulldown add menu. But when I try to use
<dtml-let number=sequence-index> <dtml-with "manage_addProduct['ShpType']"> <dtml-call "REQUEST.set('id',readShpPoint(shpPath,number)[0])"> <dtml-call "REQUEST.set('x',readShpPoint(shpPath,number)[1])"> <dtml-call "REQUEST.set('y',readShpPoint(shpPath,number)[2])"> <dtml-call "manage_addShpTypePoint"> </dtml-with> </dtml-let>
it didn't create an product object.
Sorry but your code is nonsense. Use a PythonScript instead. There is no need to use DTML at this point. -aj