hdg700 / autotestd Goto Github PK
View Code? Open in Web Editor NEWAutotest daemon
Autotest daemon
Добавил подряд один и тот же проект, вызвал список проектов, выпало сообщение:
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.
Сессии, похоже, не закрываются при уничтожении их объекта.
Когда создаются объекты записей (ADTest, ADCode, ADProject), они присоединяются к сессии текущего потока. Потом, при создании новой сессии и попытке сохранить через нее новый объект, выпадает исключение, что объект принадлежит другой сессии. Разобраться.
См. models.py: 175
При создании теста или класса добавлять информацию о них в базу
Демон нотификации от xfce. Может выводить несколько сообщений одновременно, позволяет их закрывать и, возможно, поддерживает таймауты.
Классы с наследованием!
Поле filename в коде и тесте сделать относительно пути проекта!
Пользователь может изменить имя класса в каком-нибудь файле.
Нужно каждый раз парсить измененные файлы и сравнивать имя класса. Обновлять его, если необходимо.
Файлы парсить до строчки, содержащей "class"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.