<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div>On Tue, 2021-05-25 at 18:56 -0700, bodosugar wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>Thank you. That'd be exactly what I need. I can easily find the uid (object</div><div>identifier) for the journal entry I want--i.e., the one created by Turtle</div><div>Block's "Save snapshot" option.</div><div><br></div><div>Would you please point me to whatever info/doc is available on those cmd</div><div>line utilities you mentioned? I just need to read an object (e.g., given its</div><div>uid) out of the datastore and write it to regular file(s). Plus the reverse</div><div>operation: given such file(s), create a new object in the datastore.</div></blockquote><div><br></div><div>You can look at the <a href="https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/src/sugar3/datastore/datastore.py">datastore module of the sugar-toolkit-gtk3 API,</a> it contains what you'll need</div><div>to interact with the datastore.</div><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div><br></div><div>It seems conceptually simple. Of all the metadata I see for a TB snapshot,</div><div>all attrs could remain unchanged after recreating the object--except for the</div><div>uid. But I'm having trouble writing the code because I've no experience with</div><div>asynchronous D-Bus calls, so any existent code would be a huge help.</div><div><br></div><div>About running a persistent image: that would only solve some problems. I</div><div>still wouldn't be able to recover from various crashes or to take my work</div><div>over to other computers/VMs. This solution I'm pursuing, albeit messy, is</div><div>powerful enough to do the job.</div><div><br></div><div>Cheers,</div><div>--Ken Irusta</div><div><br></div><div><br></div><div>Walter Bender-2 wrote</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>The object in the datastore is what you need. There are cmd line</div><div>utilities for grabbing objects from the Sugar datastore. A bit</div><div>awkward. Any reason you don't want to run a persistent image?</div></blockquote><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>--</div><div>Sent from:  <a href="http://sugarlabs.1511649.n2.nabble.com/Sugar-on-a-Stick-development-f3721053.html">http://sugarlabs.1511649.n2.nabble.com/Sugar-on-a-Stick-development-f3721053.html</a></div><div>_______________________________________________</div><div>SoaS mailing list</div><div><a href="mailto:SoaS@lists.sugarlabs.org">SoaS@lists.sugarlabs.org</a></div><div><a href="http://lists.sugarlabs.org/listinfo/soas">http://lists.sugarlabs.org/listinfo/soas</a></div></blockquote><div><br></div><div><span></span></div></body></html>