On Mon, Oct 10, 2011 at 11:20 AM, Terry Brown <[email protected]> wrote:
> def get_UNL(self, with_file=True):
>
>    UNL = '-->'.join(reversed([
>        i.h.replace('-->', '--%3E')
>        for i in self.self_and_parents()
>    ]))
>
>    if with_file:
>        return "%s#%s" % (self.v.context.fileName(), UNL)
>    else:
>        return UNL
>
> any comments?  status line would be set with p.get_UNL(with_file=False)

Good.  Please commit this.

We can change this function as needed: it's no big deal provided we
follow the DRY principle.

Edward

-- 
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.

Reply via email to