[Zope] problem with createing a product object using dtml

Allen Huang swapp0 at yahoo.com
Sat Jan 6 08:59:40 EST 2007


Thanks for Replying Andreas..
but I found the problem... it was at the <dtml-call "manage_addShpTypePoint">

I forget that I was calling a python method that required 4 argument in the parenthesis.

If I were to do it using python scripting (do you mean internal or external methods or python scripting) what would it look like?



----- Original Message ----
From: Andreas Jung <lists at zopyx.com>
To: Allen Huang <swapp0 at yahoo.com>; Zope <zope at zope.org>
Sent: Saturday, January 6, 2007 9:52:36 PM
Subject: Re: [Zope] problem with createing a product object using dtml


--On 6. Januar 2007 05:50:10 -0800 Allen Huang <swapp0 at 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

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20070106/2d703c70/attachment.htm


More information about the Zope mailing list