hdg700/autotestd — Issue #6: Ошибка при добавлении одного и того же проекта
Author: hdg700
Created: 2011-10-22 14:24:29+00:00
State: open

Добавил подряд один и тот же проект, вызвал список проектов, выпало сообщение:

org.freedesktop.DBus.Python.sqlalchemy.exc.InvalidRequestError: Traceback (most
recent call last):
File "/usr/lib/pymodules/python2.6/dbus/service.py", line 702, in _message_cb
retval = candidate_method(self, *args, **keywords)
File "autotestd.py", line 132, in dbus_list
@dbus.service.method(dbus_interface='hdg700.autotestd.AutotestDaemon.client'
)
File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/attributes.py", line 163
, in __get__
instance_dict(instance))
File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/attributes.py", line 382
, in get
value = callable_(passive=passive)
File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/state.py", line 280, in
__call__
self.manager.deferred_scalar_loader(self, toload)
File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/mapper.py", line 2434, i
n _load_scalar_attributes
only_load_props=attribute_names)
File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/query.py", line 1836, in
_get
return q.one()
File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/query.py", line 1522, in
one
ret = list(self)
File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/query.py", line 1565, in
__iter__
return self._execute_and_instances(context)
File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/query.py", line 1570, in
_execute_and_instances
mapper=self._mapper_zero_or_none())
File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 734, i
n execute
return self._connection_for_bind(engine, close_with_result=True).execute(
File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 699, i
n _connection_for_bind
return self.transaction._connection_for_bind(engine)
File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 298, i
n _connection_for_bind
self._assert_is_active()
File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 233, i
n _assert_is_active
"The transaction is inactive due to a rollback in a "
InvalidRequestError: The transaction is inactive due to a rollback in a subtrans
action. Issue rollback() to cancel the transaction.