[Zope-DB] Re: Formulator issue with Z Search Interface (Was: Form
evaluation in ZSQL-Method)
Dieter Maurer
dieter at handshake.de
Sun Sep 28 15:53:03 EDT 2003
Andreas Tille wrote at 2003-9-27 16:45 +0200:
> On Fri, 26 Sep 2003, Dieter Maurer wrote:
>
> > > <params>field_iditem</params>
> > > select * from test
> > > <dtml-sqlgroup where>
> > > <dtml-if "_.int(field_iditem)>0">
> > > <dtml-sqltest field_iditem column=iditem op=eq type=nb optional>
> > > </dtml-if>
> > > </dtml-sqlgroup>
> >
> > The traceback you posted does not correspond to this code.
> >
> > It would (only) if you had a typo in the argument name (or
> > "<params>...</params>" were really part of the template and
> > not some meta devices to indicate parameters).
> No, this is the view if you use Emacs ftp mode and was quite handy for posting
> here. The ZSQL method is below and the text between the <params>-brackets is
> the according field in the ZMI view.
But this Z SQL Method will not raise a "NameError 'field_iditem'".
Maybe, the exception came from a different Z SQL Method?
Dieter
More information about the Zope-DB
mailing list