[Zope] Form action -> zsql method linkage ? - was Re: [Zope]
how to get details of sql.error ? of sql.error ?
Michel Pelletier
michel@digicool.com
Thu, 9 Dec 1999 16:56:47 -0500
> -----Original Message-----
> From: Nitin Borwankar [mailto:nitin@borwankar.com]
> Sent: Thursday, December 09, 1999 3:58 PM
> To: Christopher Petrilli; zope@zope.org
> Subject: [Zope] Form action -> zsql method linkage ? - was Re: [Zope]
> how to get details of sql.error ? of sql.error ?
>
>
>
> When I use the action=insert_survey_rec in the form tag in
> survey_form,
> on submit I see
> a) no data inserted
> b) Zope returns to me the Zope generated test form for the
> ZSQL method.
>
> Clearly I need something in between the form and the ZSQL
> method that I
> am missing.
> What exactly is it ?
You cannot call ZSQL method directly via HTTP (which you are trying to
do by making the ZSQL method the target to your form); this is a
security feature. ZSQL methods can only be called from internal
methods, like DTML Methods. So, make the target of your form a DTML
method that calls the ZSQL Method for you.
-Michel