On Saturday, March 26, 2016 at 6:31:32 AM UTC-5, Edward K. Ream wrote:
> Here is the top level of register_class...
Ha again. a_class is not used at all except to define self.id_. So 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_)...
'''
That's enough for now. I'll await comments.
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 https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.