This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Setting the server in the dict data engine

Tags: None
(comma "," separated)
admoore
Registered Member
Posts
103
Karma
0
OS
I'm working on my first plasmoid, in python. I'm trying to work up a dictionary plasmoid as an exercise.

I can't figure out how to tell the data engine what server to use. I looked at the code for the dict data engine, and it has a "setServer()" function, but how do I access it? If I do this:
Code: Select all
dict_engine=dataEngine("dict")
dict_engine.setServer("localhost")


It says that dict_engine has no member setServer(), which (on inspection using dir()) it doesn't.

Can I access those functions, and if not how do I set the server? It's hard-coded to dict.org in the sourcecode, but there seems to be an intention in the code for it to be changeable via setServer().


admoore, proud to be a member of KDE forums since 2008-Oct.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Unfortunately it appears that setServer() is a private function at this time, hence why you are unable to use or access it.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
admoore
Registered Member
Posts
103
Karma
0
OS
Well, that's a bummer. I guess I should read the header files too :< .

Would it be terribly bad practice to use a non-standard python library like python-dict?


admoore, proud to be a member of KDE forums since 2008-Oct.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
If you ask on plasma-devel@kde.org it is likely that the process of making the Dictionary data engine able to use more sites would happen faster..


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]