On Saturday, March 26, 2016 at 6:58:42 AM UTC-5, Edward K. Ream wrote: It...would be better to use something like this signature: > > def register_class(c, factory, name, id_=None, ns_do_context=None): > ''' > A top-level function that registers a factory for use by the > NestedSplitter action menu. > > c: The Commander of the class being registered. > factory: A function f(c) returning a new instance of a_class. > name: Name to be used in NestedSplitter action menus. > id_: Optional provider id, defaults to name. > ns_do_context: An optional predicate pred(id_)... > ' > At long last I see that this function should be called register_factory. Because that is what it does, and *nothing else. *The 'name' argument should be 'menu_name'. I've upped these changes.
EKR -- 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 https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
