More DataEngines questions
Aaron J. Seigo
aseigo at kde.org
Sun Jan 4 12:03:21 CET 2009
On Sunday 04 January 2009, Luca Beltrame wrote:
> On domenica 4 gennaio 2009 10:20:32 Chani wrote:
> > perhaps what you want is a Service, not a Source. my memory of such
> I'll turn the question to everyone in the list: is Service exposed through
> the Python API?
it should be; however, there is no scripted Service plugin support like there
is for DataEngine, Applet and Runner. i'll be adding a ScriptEngine class for
those in 4.3. but you should be able to provide a Service from a DataEngine in
Python, though again that may not be exactly what you wanted; a Service
without a DataEngine may be more what you're looking for.
> > sources. depending on what you're doing that might not be the Right
> > approach, though.
> It would not work, as you hin, because the user can select one from
> potentially 10,000-30,000 names.
well, sources are created on demand, though. there are a few million twitter
users; we don't load everyone's account in the TwitterEngine ;)
when a DataEngine gets a request for a source that does not exist yet, it is
given a chance to create that source on deman in sourceRequestEvent.
so in such a situation, your DataEngine would only need to create the sources
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43
KDE core developer sponsored by Qt Software
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20090104/8307c542/attachment.sig
More information about the Plasma-devel