On Thu, Jul 9, 2015 at 4:11 PM, john lunzer <[email protected]> wrote:
> > Edward/Terry, can you help explain what is happening and what is a more > Leonic way of dealing with this issue. > The term is "Leonine" :-) It appears that your plugin is trying to "cheat" somehow by not keeping careful track of commanders. This is likely to cause serious problems. The recommended way of writing plugins is to create a separate controller instance for each commander. The controller sets self.c to that commander. The controller handles all and *only *the events pertaining to the commander. There are many examples of this pattern in leoPlugins.leo. I suggest you follow the pattern unless there is a strong reason not to do so. Edward -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
