On Thu, 19 Sep 2013 09:02:05 -0400
Jacob Peck <[email protected]> wrote:

> As the subject states, I'm wondering if there's any way to create a 
> hidden node in an outline, one that's not visible to the user through 
> the tree pane, but still accessible through the API.

p.v.u, but the node's still visible, and subject to deletion.

What about...

c.hiddenRootNode.u - nope, .u isn't saved on that, too bad, that would
have been a handy spot for 'in the .leo file' hidden data.  It's not
just a matter of changing the code to save .u for c.hiddenRootNode, the
parent of "top level" nodes, c.hiddenRootNode has no representation in
the .leo file.

Seems like the simplest would be
p.h = "SETTINGS - DON'T DELETE"
p.b = "Invisible settings attached to the node - don't delete"
p.v.u['your_data'] = your_data

Cheers -Terry

> I'd like to store some data in an outline that shouldn't (easily) be 
> editable by the user.  I don't want to use the db for this, as I want 
> the outline to be sharable.
> 
> Any clues?  Or is this a lost cause?  (If it is, I'll just create a 
> @please-dont-edit-this node or something).  Or encrypt it.
> 
> Thanks,
> -->Jake
> 

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to