[Zope] Dynamic Update SQLs like in Delphi

Lennart Regebro regebro at nuxeo.com
Wed Dec 10 05:26:54 EST 2003


From: <fowlertrainer at anonym.hu>
> Great idea - but how ?
>
> Anyone create a ZSQL method on-fly ?

No, I never have, but after a quick look at the code it looks like this
should work:

from Shared.DC.ZRDB.DA import DA

  sql = DA('id', '', 'id_of_the_database_connection', 'the sql arguments',
'the sql code')
  result_records = sql(parameters=likethis)

It's worth a try.

//Lennart





More information about the Zope mailing list