On Tue, 29 Jul 2014 09:29:44 -0500
"Edward K. Ream" <edream...@gmail.com> wrote:

> On Tue, Jul 29, 2014 at 9:13 AM, Edward K. Ream <edream...@gmail.com>
> wrote:
> 
> > You must not return a value from a ctor.
> 
> leoPluginsRef.leo contains the sources for all importers & writers.
> Following those patterns may help.

I think what's throwing me off is the BaseScanner ctor is:

def __init__ (self,importCommands,atAuto,language,alternate_language=None):
    '''ctor for BaseScanner.'''

and

line 611, in scanner_for_at_auto_cb does
    scanner = aClass(importCommands=self,atAuto=atAuto)

which doesn't match the BaseScanner ctor signature.  I don't have
anything to say to BaseScanner, so I didn't expect to have to
re-implement __init__.

So I re-implement it throwing in "En" for language, just to get it to
run, and what I expect to happen happens, my re-implemented .run()
runs, which allows me to build a tree under `parent` from `s` however I
want without getting tangled up in all this "scan" voodoo ;-)  My
re-implemented .scan() is never called, which makes sense given
my .run()

So that's good, now I'm just back to wondering why this doesn't happen
automatically during Leo launch / outline loading when the `@auto-test`
node is encountered.  My importer is never instantiated.

Also, context menu refresh from disk doesn't show up for my `@auto-test`
node.

Cheers -Terry

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to