DB connection + External Method
Hello zope users, I have a question: how can I use DB Connection in Zope folder from within an External Method? Any suggestions will be appreciated. Best regards, Ruslan mailto:alienoid@is.lg.ua
On 1/7/02 11:41 am, "Ruslan Spivak" <alienoid@is.lg.ua> wrote:
Hello zope users,
I have a question: how can I use DB Connection in Zope folder from within an External Method?
Any suggestions will be appreciated.
Here's a start point http://www.zope.org/Members/jpenny/Accessing_a_ZSQL_Method_from_an_External_ Method Tone Ps the 'search' box at www.zope.org is your friend.... -- Dr Tony McDonald, Assistant Director, FMCC, http://www.fmcc.org.uk/ The Medical School, Newcastle University Tel: +44 191 243 6140 A Zope list for UK HE/FE http://www.fmcc.org.uk/mailman/listinfo/zope
On Monday 01 July 2002 06:41 am, Ruslan Spivak wrote:
Hello zope users,
I have a question: how can I use DB Connection in Zope folder from within an External Method?
Any suggestions will be appreciated.
Best regards, Ruslan mailto:alienoid@is.lg.ua
Here's a sample for ya: def useSQL(self): """Query a database adapter in an external method""" db = self.my_database_adapter() i, results = db.query('select * from my_table') for record in results: print record.my_field hth, -Casey
participants (3)
-
Casey Duncan -
Ruslan Spivak -
Tony McDonald