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 <[EMAIL PROTECTED]> 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 > [EMAIL PROTECTED] > -- michael
_______________________________________________ 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 )