[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    GSoC: PMC: JavaScript backends progress
From:       Hayri Bakici <thehayro () gmail ! com>
Date:       2010-06-28 10:49:19
Message-ID: AANLkTinL1ClX8qqFtRR86Jq-USZcBy6sWMAZRxO1sMr4 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hey guys!

Here is a quick update about the Plasma Media Center backends in writing a
dataengine in JS.

The DateEngine really runs (thanks to aaron :) )
For now, it can make a flickr.photo.search requests get the response and
parse the xml, and display it on the dataEngine.
I had to paste the xml to script lib into my dataengine, due to "include"
problems. I know that a JS plasmoid has a command

plasmoid.include('libsomething.js');

however it doesn't work with my dataengine (although i used
engine.include('libsomething.js'); )
If you are wondering why the dataengine data, such as "published date" or
"keywords" is empty, then it is because of flickr: there should be a
specific getPhotoInfo request when you want to get the information.

the next thing is to write the "fetch addons" function (waiting for aaron ;)
) in this DataEngine and extract my request-response-parseXml code into an
Addon.
btw. i remember that the addon should have some kind of a main function? how
should the addon give its information to the DateEngine?

Another thing I was wondering about the MediaData API: since we merged the
"video" and "photo" API together, there are still attributes that are
disjunct. should i just drop them for now?


the code can be found here:

git://gitorious.org/lilflickr/lilflickr.git


cheers

[Attachment #5 (text/html)]

Hey guys!<br><br>Here is a quick update about the Plasma Media Center backends in \
writing a dataengine in JS.<br><br>The DateEngine really runs (thanks to aaron :) \
)<br>For now, it can make a flickr.photo.search requests get the response and parse \
the xml, and display it on the dataEngine.<br>

I had to paste the xml to script lib into my dataengine, due to &quot;include&quot; \
problems. I know that a JS plasmoid has a \
command<br><br>plasmoid.include(&#39;libsomething.js&#39;);<br><br>however it \
doesn&#39;t work with my dataengine (although i used \
engine.include(&#39;libsomething.js&#39;); )<br>

If you are wondering why the dataengine data, such as &quot;published date&quot; or \
&quot;keywords&quot; is empty, then it is because of flickr: there should be a \
specific getPhotoInfo request when you want to get the information.<br>

<br>the next thing is to write the &quot;fetch addons&quot; function (waiting for \
aaron ;) ) in this DataEngine and extract my request-response-parseXml code into an \
Addon.<br>btw. i remember that the addon should have some kind of a main function? \
how should the addon give its information to the DateEngine?<br>

<br>Another thing I was wondering about the MediaData API: since we merged the \
&quot;video&quot; and &quot;photo&quot; API together, there are still attributes that \
are disjunct. should i just drop them for now?<br><br><br>

the code can be found here:<br><br>git://<a \
href="http://gitorious.org/lilflickr/lilflickr.git">gitorious.org/lilflickr/lilflickr.git</a><br><br><br>cheers<br>




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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic