On Sep 10, 7:13 am, "Ville M. Vainio" <vivai...@gmail.com> wrote:

> Why not move registerHandler to g?

I may have replied privately.  In any case, this is a great idea, and
it and several related changes are now on the trunk.  See the checkin
logs at revs 3368 and 3369.

The highlights:

1. leoGlobals.py now has wrappers for all common (public) pc
(g.app.pluginsController) methods.

2. There was horrible code (an unsafe exec) in g.plugin_signon.  This
code has now been moved into the pc class, where the exec is easily
avoided.

3. All plugins use g.registerHander & g.unregisterHandler instead of
the very ugly pc variants.  This is really a nice touch.

4. The g.app.loadedPlugins global is gone.  That's a good thing.  It's
been replaced by g.getLoadedPlugins() and g.pluginIsLoaded().

All unit tests pass.  There is a slight potential for breakage in some
plugins.  Please report any problems immediately.

Imo, this will be the end of the recent plugins work.  The result is
much cleaner than before, and will form a solid foundation for any
future plugins work.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to leo-edi...@googlegroups.com.
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to