Re: [Zope] problem with createing a product object using dtml

2007-01-06 Thread Allen Huang
Thanks for Replying Andreas..
but I found the problem... it was at the 

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 <[EMAIL PROTECTED]>
To: Allen Huang <[EMAIL PROTECTED]>; Zope 
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 <[EMAIL PROTECTED]> 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
>
>   
>
>  "REQUEST.set('id',readShpPoint(shpPath,number)[0])">
> 
> 
> 
>
>   
>
> 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 ___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] problem with createing a product object using dtml

2007-01-06 Thread Andreas Jung



--On 6. Januar 2007 05:50:10 -0800 Allen Huang <[EMAIL PROTECTED]> 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

  
   




   
  

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

pgp0Mq7I5XQcC.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] problem with createing a product object using dtml

2007-01-06 Thread Allen Huang
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

  
   




   
  

it didn't create an product object.

what am I missing here??


ShpType - the product name

readShpPoint - external method

manage_adShpTypePoint - constructor method in the 
product.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com ___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )