[Zope] is it possible to bypass ZSQL methods and call
storedprocedures in sqlserver straight from ZPT?
michael nt milne
michael.milne at gmail.com
Wed Nov 7 04:07:02 EST 2007
ok thanks. I guess then if you're using the ZMI could you embed this in your
ZPT? But I guess that is not best practice.
On 11/6/07, Andrew Milton <akm at theinternet.com.au> wrote:
>
> +-------[ michael nt milne ]----------------------
> | thanks. Is there an example or a tutorial at all on this anywhere?
>
>
> # queryConnection holds the id of a DA
>
>
> connectionObject=getattr(self, queryConnection)
> connection = connectionObject()
> results = connection.query(SQL_GOES_HERE)
>
> This is from Product code, it should be usable (s/self/context/) in a
> PythonScript, but, I haven't tested it.
>
>
> --
> Andrew Milton
> akm at theinternet.com.au
>
--
michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20071107/ac576f92/attachment.htm
More information about the Zope
mailing list