Thursday, 7. February 2008, 12:27:50
Opera XML Store
Hmmm, intriguing....http://xmlstore.labs.opera.com
http://widgets.opera.com/widget/9082/1.5/
Thursday, 7. February 2008, 12:42:26
Is there any kind of security model on this? Basically, is there anything restricting a widget to only reading/writing data it created?
Can another widget read or write my data - can a second widget read my GMail login from a first widget, or is it up to the author to make sure nothing sensitive gets stored online?
Can another widget read or write my data - can a second widget read my GMail login from a first widget, or is it up to the author to make sure nothing sensitive gets stored online?
Saturday, 9. February 2008, 10:26:40
The security model is rather simple. By default all data is private with regards to the user. There is no identification other than by username. Widgets have now unique ID.
If you want to, you can set permissions on a data collection per my.opera group to allow other users to create, read, update and delete documents in the collection. Data collections can also be marked as public, so anyone can read it, regardless of beeing logged in or not or group memberships.
Please keep in mind that this is a labs service, that is, it is an experimental service delievered "as is" and in particular there are no guarantees, so please do not save your social security number or a list of your passwords in the Opera XML Store.
If you want to, you can set permissions on a data collection per my.opera group to allow other users to create, read, update and delete documents in the collection. Data collections can also be marked as public, so anyone can read it, regardless of beeing logged in or not or group memberships.
Please keep in mind that this is a labs service, that is, it is an experimental service delievered "as is" and in particular there are no guarantees, so please do not save your social security number or a list of your passwords in the Opera XML Store.
Saturday, 14. February 2009, 21:59:36
I'm trying to save and retrieve a widget preference from the xml store, but running into issues.
I'm following the documentation and using the following xml to save: <?xml version="1.0" encoding="UTF-8"?><p:preferences xmlns:p="http://oxs.opera.com/ns/preferences" id="widgetname"><p:entry><p:key>alias</p:key><p:value>foobar</p:value></p:entry><p:entry><p:key>level</p:key><p:value>10</p:value></p:entry></p:preferences>
When I log into the xml store directly I see the new widget preference in the list, but the link seems to be wrong, I get a "no such user" error when I click on it.
Is there any example that people could point me to that shows how to get / set widget preferences in the xml store?
I'm following the documentation and using the following xml to save: <?xml version="1.0" encoding="UTF-8"?><p:preferences xmlns:p="http://oxs.opera.com/ns/preferences" id="widgetname"><p:entry><p:key>alias</p:key><p:value>foobar</p:value></p:entry><p:entry><p:key>level</p:key><p:value>10</p:value></p:entry></p:preferences>
When I log into the xml store directly I see the new widget preference in the list, but the link seems to be wrong, I get a "no such user" error when I click on it.
Is there any example that people could point me to that shows how to get / set widget preferences in the xml store?
Monday, 16. February 2009, 12:03:45
Hi, nomadicsettler!
Bookmarks widget:
http://widgets.opera.com/widget/11832/
and Sudoku-X widget:
http://widgets.opera.com/widget/11331/
are using XML Store preferences collection.
I am sure, however, that you're doing everything right. There's a bug in XML Store that makes links point to some strange location like:
http://xmlstore.labs.opera.com/user/preferences/%20%20...%20c23d8513d22898c7e6b2d23d7a515bd2
What you need to do in order to see your preferences is change the url to:
http://xmlstore.labs.opera.com/user/YOURUSERNAME/preferences/default/c23d8513d22898c7e6b2d23d7a515bd2
You can retrieve the id (c23d...) from the link by removing white spaces (%20). Also, add your username to the url. You can do it manually (and paste the new string to address bar) or you can write user javascript to do it for you (that's what i did).
Bookmarks widget:
http://widgets.opera.com/widget/11832/
and Sudoku-X widget:
http://widgets.opera.com/widget/11331/
are using XML Store preferences collection.
I am sure, however, that you're doing everything right. There's a bug in XML Store that makes links point to some strange location like:
http://xmlstore.labs.opera.com/user/preferences/%20%20...%20c23d8513d22898c7e6b2d23d7a515bd2
What you need to do in order to see your preferences is change the url to:
http://xmlstore.labs.opera.com/user/YOURUSERNAME/preferences/default/c23d8513d22898c7e6b2d23d7a515bd2
You can retrieve the id (c23d...) from the link by removing white spaces (%20). Also, add your username to the url. You can do it manually (and paste the new string to address bar) or you can write user javascript to do it for you (that's what i did).
Wednesday, 18. February 2009, 03:18:47
That's understood... I wanted to make sure that I was going down the right path with using the service, and the examples that I have with the Bookmarks widget should be a good starting point.
Cheers.
Cheers.
Forums » Opera Community » General Opera topics » Opera Widgets
