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 
requested.

-- 
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

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to