[Zope] is it possible to bypass ZSQL methods and call storedprocedures in sqlserver straight from ZPT?

Andrew Milton akm at theinternet.com.au
Tue Nov 6 11:03:17 EST 2007

+-------[ 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

More information about the Zope mailing list