[Zope] Providing Arguments to ZSQL Methods that Insert and Update in Python

Muk Yan myan at umich.edu
Sun Aug 6 15:21:48 EDT 2006


Thanks Andreas, I think I get it now after getting it spoon fed to me from
Roberto (which I greatly appreciate).  Thanks all and have a great rest of
the weekend for tomorrow is Monday.

Peace and take care,
Muk Yan

On 8/6/06, Andreas Jung <lists at zopyx.com> wrote:
>
>
>
> --On 6. August 2006 15:13:33 -0400 Muk Yan <myan at umich.edu> wrote:
>
> > Thanks Andreas, sorry about the confusion.
> >
> > What I want to do is call the ZSQL Method from a Python script instead
> of
> > from a DTML Document or Method.  I want to know if there's a way to
> > provide
> > arguments from the Python Script to ZSQL Methods with Updates and
> Inserts.
> >
> >
> > I want to avoid using <dtml-sqlvar emp_id type=string>.
>
> Huh? <dtml-sqlvar...> is only used inside the *ZSQL* method. A ZSQL method
> is a first-class object in Zope and can be called from DTMl,
> PythonScripts,
> ZPT, external methods, filesystem code ... an object is an object is an
> object ....and can be called from always basically in the same way...so
> where is the problem?
>
> -aj
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20060806/0a545e6d/attachment.htm


More information about the Zope mailing list