I don't have c or p, so i prefer the version that doesn't require them
On 11.3.2012 14:11 Edward K. Ream wrote: On Sun, Mar 11, 2012 at 1:23 AM, Ville M. Vainio <[email protected]> wrote: > What function do i need to call to invoke this handler? There are two possible candidates: g.handleUrlInUrlNode(url,c=None,p=None) and its helper: g.handleUrl(c,p,url) g.handleUrl is likely what you want if you already have an url. BTW, as I was answering your previous question, I realized that relative file names in file:// url's should be resolved using c.loadDir, so it's good to see that the c arg is mandatory in g.handleUrl. For example, suppose an url is in leoPy.leo. Rather than having to say: @url file://C:\leo.repo\trunk\leo\doc\LeoDocs.leo#Leo 4.10 Release notes it would be much better to be able to say:: @url file://../docs/LeoDocs.leo#Leo 4.10 Release notes This will turn @url nodes into true "link" nodes. For many people and situations, such link nodes are more natural than clones. I'll do this today. 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 file://../docs/LeoDocs.leo#Leo. -- 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.
