can u help me for sloving dbexts using database connectivity in jython scripting

brian zimmer bzimmer at ziclix.com
Tue Jun 10 04:28:26 CEST 2003


> Hii,
> i ma trying connectivity mysql with zxjdbc in jython scripting. but i
> faced problem that i mentioned below:
> >>>from dbexts import dbexts
> >>>d = dbexts
> >>>d.isql("select * from emp")
> Traceback (innermost last):
> File "<console>", line1, in ?
> TypeError :unbound method isql() must be called with instance as first
> argument
> 

You need to create an instance of dbexts.  Try:

>>> d = dbexts()
>>> d.isql("select * from emp")

thanks,

brian




More information about the Python-list mailing list