On Thu, Jan 29, 2009 at 12:40 PM, Edward K. Ream <[email protected]> wrote: > > A recent rev of the trunk now defines b and h properties for > positions. You can use p.b to get or set a node's body. Similarly, > p.h gets or gets a node's headline. > > For example, you can execute the following from the body text of any > node:: > > print p.h > print p.b > p.b = p.b + '\n# new' > p.h = p.h + 'z'
That is _so_ cool! How about p.u for 'unknown attributes'? Thanks, Kent > > The code is taken directly from ipy_leo.py. I think this is a good > step forward. I'll be documenting this soon. > > Edward > > P.S. At present, I don't think it would be a great idea to implement > similar properties for vnodes or tnodes: typical scripts should use > positions almost exclusively. But I'll reconsider this choice if it > causes hardship. > > EKR > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en -~----------~----~----~----~------~----~------~--~---
