openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #04881
[Bug 691952] [NEW] To create a songs fails
Public bug reported:
Hello!
trunk r1152
When I attempt to save a just create song I get a traceback. This can be
reproduced with r1149 (or later).
Traceback (most recent call last):
File "/home/andreas/Projekte/openlp/trunk/openlp/plugins/songs/forms/editsongform.py", line 676, in accept
if self.saveSong():
File "/home/andreas/Projekte/openlp/trunk/openlp/plugins/songs/forms/editsongform.py", line 725, in saveSong
self.manager.save_object(self.song)
File "/home/andreas/Projekte/openlp/trunk/openlp/core/lib/db.py", line 153, in save_object
self.session.commit()
File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/scoping.py", line 129, in do
return getattr(self.registry(), name)(*args, **kwargs)
File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 653, in commit
self.transaction.commit()
File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 364, in commit
self._prepare_impl()
File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 348, in _prepare_impl
self.session.flush()
File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 1346, in flush
self._flush(objects)
File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 1427, in _flush
flush_context.execute()
File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/unitofwork.py", line 299, in execute
rec.execute(self)
File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/unitofwork.py", line 443, in execute
uow
File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/mapper.py", line 1833, in _save_obj
execute(statement, params)
File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1157, in execute
params)
File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1237, in _execute_clauseelement
return self.__execute_context(context)
File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1268, in __execute_context
context.parameters[0], context=context)
File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1367, in _cursor_execute
context)
File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1360, in _cursor_execute
context)
File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/default.py", line 288, in do_execute
cursor.execute(statement, parameters)
IntegrityError: (IntegrityError) songs.lyrics may not be NULL u'INSERT INTO songs (song_book_id, title, alternate_title, lyrics, verse_order, copyright, comments, ccli_number, song_number, theme_name, search_title, search_lyrics) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' (0, u'test song', u'', None, u'V1 V2', u'', u'', u'', u'', None, u'test song', None)
** Affects: openlp
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/691952
Title:
To create a songs fails
Status in OpenLP - Worship Presentation Software:
New
Bug description:
Hello!
trunk r1152
When I attempt to save a just create song I get a traceback. This can be reproduced with r1149 (or later).
Traceback (most recent call last):
File "/home/andreas/Projekte/openlp/trunk/openlp/plugins/songs/forms/editsongform.py", line 676, in accept
if self.saveSong():
File "/home/andreas/Projekte/openlp/trunk/openlp/plugins/songs/forms/editsongform.py", line 725, in saveSong
self.manager.save_object(self.song)
File "/home/andreas/Projekte/openlp/trunk/openlp/core/lib/db.py", line 153, in save_object
self.session.commit()
File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/scoping.py", line 129, in do
return getattr(self.registry(), name)(*args, **kwargs)
File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 653, in commit
self.transaction.commit()
File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 364, in commit
self._prepare_impl()
File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 348, in _prepare_impl
self.session.flush()
File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 1346, in flush
self._flush(objects)
File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 1427, in _flush
flush_context.execute()
File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/unitofwork.py", line 299, in execute
rec.execute(self)
File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/unitofwork.py", line 443, in execute
uow
File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/mapper.py", line 1833, in _save_obj
execute(statement, params)
File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1157, in execute
params)
File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1237, in _execute_clauseelement
return self.__execute_context(context)
File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1268, in __execute_context
context.parameters[0], context=context)
File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1367, in _cursor_execute
context)
File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1360, in _cursor_execute
context)
File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/default.py", line 288, in do_execute
cursor.execute(statement, parameters)
IntegrityError: (IntegrityError) songs.lyrics may not be NULL u'INSERT INTO songs (song_book_id, title, alternate_title, lyrics, verse_order, copyright, comments, ccli_number, song_number, theme_name, search_title, search_lyrics) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' (0, u'test song', u'', None, u'V1 V2', u'', u'', u'', u'', None, u'test song', None)
Follow ups
References