Re: [SQLObject] problem with querying a table
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
|
From: Ian B. <ia...@co...> - 2004-09-28 19:56:20
|
Markus Jais wrote:
> <sqlobject.main.SelectResults object at 0x400b26ec>
> Traceback (most recent call last):
> File "./query.py", line 11, in ?
> print res1.count()
> File "/usr/local/lib/python2.3/site-packages/sqlobject/main.py", line
> 1239, in count
> count = self.accumulate('COUNT(*)')
> File "/usr/local/lib/python2.3/site-packages/sqlobject/main.py", line
> 1235, in accumulate
> return conn.accumulateSelect(self,expression)
> AttributeError: 'NoneType' object has no attribute 'accumulateSelect'
It looks like "conn" is None, which means you probably haven't set up a
connection for your table.
--
Ian Bicking / ia...@co... / http://blog.ianbicking.org
|