Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: DB
Re: RE : How lunch SQL request from python script ?
 

Index | Next | Previous | View Flat


maciej.wisniowski at coig

Jan 19, 2007, 4:27 AM


Views: 1163
Permalink
Re: RE : How lunch SQL request from python script ?

Please, stay on the list :)


First, isn't Charlie Clark solution good for you? It seems to be
reasonable.
> I have try to use external method but without success... (I have read some post as you suggested it)
>
Create database connection object called 'myconnection' in ZMI and
connect it to your database.
Create external method like:

def callSQL(self, statement):
conn = self.myconnection()
return conn.query(statement)

--
Maciej Wisniowski
_______________________________________________
Zope-DB mailing list
Zope-DB[at]zope.org
http://mail.zope.org/mailman/listinfo/zope-db

Subject User Time
Re: RE : How lunch SQL request from python script ? maciej.wisniowski at coig Jan 19, 2007, 4:27 AM
    Re: RE : How lunch SQL request from python script ? charlie at egenix Jan 19, 2007, 4:31 AM
        Re: RE : How lunch SQL request from python script ? ed at leafe Jan 19, 2007, 5:10 AM
    Re: RE : How lunch SQL request from python script ? charlie at egenix Jan 19, 2007, 4:37 AM
        Re: RE : How lunch SQL request from python script ? maciej.wisniowski at coig Jan 19, 2007, 4:58 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.