Hi,

I'm trying to use the "q-magic" and multiple connections to run a query such as the following:

Person.select(Person.q.object_id =="con1", connection = sql_con1)

However, I'm getting the following exception:

  File "/Users/ochipara/Working/workspace/wiisardpy/provider/junk/test_multipleconnections.py", line 29, in <module>
    print Person.select(Person.q.object_id =="con1", connection= sql_con1)
  File "/Library/Python/2.6/site-packages/SQLObject-0.13.0-py2.6.egg/sqlobject/sqlbuilder.py", line 346, in __eq__
    other = self._from_python(other)
  File "/Library/Python/2.6/site-packages/SQLObject-0.13.0-py2.6.egg/sqlobject/sqlbuilder.py", line 341, in _from_python
    value = column.from_python(value, SQLObjectState(self.soClass))
  File "/Library/Python/2.6/site-packages/SQLObject-0.13.0-py2.6.egg/sqlobject/col.py", line 501, in to_python
    connection = state.soObject._connection
  File "/Library/Python/2.6/site-packages/SQLObject-0.13.0-py2.6.egg/sqlobject/dbconnection.py", line 837, in __get__
    return self.getConnection()
  File "/Library/Python/2.6/site-packages/SQLObject-0.13.0-py2.6.egg/sqlobject/dbconnection.py", line 850, in getConnection
    "No connection has been defined for this thread "
AttributeError: No connection has been defined for this thread or process
Exception AttributeError: "'NoneType' object has no attribute 'print_exc'" in <function _removeReceiver at 0x1004e3398> ignored


Is there a way to use the q-magic over multiple connections?

Thanks,
-- Octav