Re: Please Explain This Error
Rich Shepard <[email protected]>
| Newsgroups | gmane.comp.python.db.pysqlite.user |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 2 Nov 2006, Christian Boos wrote:
>> natComp = []
>> self.cur.execute("select * from component where category=natural;")
> cur.execute("select * from component where category=natural;")
>> row = cur.fetchone()
>
> From the limited context you gave, it seems to be a simple typo, isn't it?
Christian,
If so, I'm just not seeing it. The cursor has to be tied to the instance
of the class with a prepended 'self.'.
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