openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #22800
[Bug 1296574] Re: Missing arguments in some event handler functions
No it has baffled. me.
OpenLPMixin dynamically adds debug wrappers to all (except black list) methods in the class.
No more Log.debug.
This only happens if debug is enabled. This works fine for all methods except pyqt ones which need the extra parameter.
You must have found the odd one I messed in testing.
--
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/1296574
Title:
Missing arguments in some event handler functions
Status in OpenLP - Worship Presentation Software:
New
Bug description:
I recently upgraded to Ubuntu 14.04 (Python 3.4, Qt 4.8, PyQt 4.10) and now get exceptions on certain actions.
For example when sending a song to live, I get the following exception:
Traceback (most recent call last):
File "/home/samuel/programming/openlp/trunk/openlp/core/common/openlpmixin.py", line 67, in wrapped
raise e
File "/home/samuel/programming/openlp/trunk/openlp/core/common/openlpmixin.py", line 63, in wrapped
return func(*args, **kwargs)
TypeError: on_go_live() takes 1 positional argument but 2 were given
The same happens with some other functions that are bound to Qt Events
and don't expect any parameters.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openlp/+bug/1296574/+subscriptions
References