<div dir="ltr">On 28 May 2013 09:06,  <span dir="ltr"><<a href="mailto:lionel@olpc-france.org" target="_blank">lionel@olpc-france.org</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
- What about the Datastore Activity API (i.e. read_file and write_file)?<br>
it's the most common way for an activity to use the Datastore,<br></blockquote><div><br></div><div>I wonder if we actually need something like that (we have an activity object where we could put it) or if it's better to just let the activity author decide when saving/loading is necessary, using the TextObject stuff I proposed.<br>
<br></div><div>It feels a bit inflexible to have the activity request read/writes so directly. I'd rather have notification that the activity is closing, then the activity author decides what needs to be done.<br></div>
<div> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
- A Find feature with metadata critera is need,<br></blockquote><div><br></div><div>Yes. Can we just mirror the datastore dbus interface there?<br><br></div><div>function onFound(objectIds) {<br>}<br></div><div><br></div>
<div>datastore.find(query, properties, onFound);<br></div><div> <br></div><div>I have no idea what query/properties contains but I suppose it's documented somewhere :)<br></div><div><br></div><div>I suppose we will also need a datastore.delete.<br>
</div><div><br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
- May be we should also provide some callbacks for Created/Updated/Deleted<br>
event on an object.<br></blockquote><div><br></div><div> Can you explain the use case for these?<br><br></div><div>Thanks for the feedback!<br></div></div></div></div>