Re: Cursor Not Passed Properly Inter-Module

Rich Shepard <[email protected]>
Newsgroups gmane.comp.python.db.pysqlite.user
Message-ID <[email protected]>
On Tue, 28 Nov 2006, Rich Shepard wrote:

>   File "/data1/eikos/modelPage.py", line 202, in OnSaveMod
>     self.dba = DBtools.cur.execute("insert or replace into model

   Oh, darn! That's an old one. remove the 'self.dba = ' and you'll have the
correct error message:

   File "/data1/eikos/modelPage.py", line 202, in OnSaveMod
     DBtools.cur.execute("insert or replace into model (model_name, model_desc, model_type, \
AttributeError: class DBtools has no attribute 'cur'

   Sorry. Too much trial-and-error here.

Rich

-- 
Richard B. Shepard, Ph.D.               |    The Environmental Permitting
Applied Ecosystem Services, Inc.(TM)    |            Accelerator
<http://www.appl-ecosys.com>     Voice: 503-667-4517      Fax: 503-667-8863
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.