![]() Registered Member ![]()
|
Hy
I want to pass some info (username, passwort and an url) to a DataEngine. If I undersood the API[1] right, I will have to implement serviceForSource() in my DataEngine and return an instance of a subclass of Plasma.Service. My problem: If I create a subclass of Plasma.Service and try to instantiate it I get a runtime exception:
Sombody got a solution for this problem? thx - [1] http://api.kde.org/pykde-4.2-api/plasma ... rvice.html |
![]() Administrator ![]()
|
You understood correctly. I do not know why that message appeared though, are you sure that your function definition returns a pointer?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
I get the error when I instantiate my service-class:
I also tried to overwrite __init__(..) with different numbers of arguments (without luck).
The error is thrown before the "print" statement.
Pointer in python - how would you do that? Thanks for your reply |
![]() Administrator ![]()
|
Unfortunately I do not know much about Python, but I do know that type instantiation errors usually occur when the type is protected like Plasma::Service is in C++.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
I wrote a bug-report: https://bugs.kde.org/show_bug.cgi?id=209051 ...
|
Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]