On Thu, Jun 11, 2009 at 9:09 AM, Ville M. Vainio<[email protected]> wrote:

> The problem I saw with @detect_urls.py is a bug caused by hashcache -
> clones to @thin nodes (the root node) will cause the children to
> multiply.
>
> Try having "@thin ~/foo.py", clone it, add child, restart.
>
> This should be easy to fix - we just shouldn't enter the read() code
> if we are in a clone & have already read in the contents. This could

A fix for this is this change for Code-->Core classes-->@thin
leoAtFile.py-->at.Reading-->Reading (top level)-->readAll (atFile)

http://pastebin.com/m2cc56528


It skips every clone of already parsed nodes. It should also eliminate
need for valious "hacks" in node type specific parsing. I think this
is the cleanest thing to do.

I didn't commit it yet, have to test it properly first. Just posted
this to see if it sets off any alarm bells immediately.

-- 
Ville M. Vainio
http://tinyurl.com/vainio

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