Hello,
I've been trying to write my first Plasmoid in python, and I've been stuck on using the DataEngines [1]. I'm working off of the microblog applet [2] to try and understand how to interact with that engine. My problem comes when I try to get a service from my engine. I'm getting an error: AttributeError: 'DataEngine' object has no attribute 'serviceForSource' even though the api says it should be there [3]
Here is the chunk that is erroring out on me:
self.engine = self.dataEngine("microblog")
if not self.engine.isValid:
self.setFailedToLaunch(True, "Could not get DataEngine")
service = self.engine.serviceForSource("Timeline:Jmhobbs@https://twitter.com/")
cg = service.operationDescription("auth");
cg.writeEntry("password", "SuperSecret");
service.startOperationCall(cg);
I'm running Python 2.5.4, and KDE - 4.2.4 (Debian sid)
My questions are,