Skip to content
Snippets Groups Projects
Commit 9f482429 authored by Sean Farley's avatar Sean Farley
Browse files

namespaces: make the constructor into named args

None of the arguments are truly optional but this makes adding future arguments
more robust and perhaps optional.
parent b2d8f368
No related branches found
No related tags found
No related merge requests found
......@@ -120,7 +120,8 @@
"""
def __init__(self, name, templatename, listnames, namemap, nodemap):
def __init__(self, name, templatename=None, listnames=None, namemap=None,
nodemap=None):
"""create a namespace
name: the namespace to be registered (in plural form)
......@@ -124,4 +125,5 @@
"""create a namespace
name: the namespace to be registered (in plural form)
templatename: the name to use for templating
listnames: function to list all names
......@@ -127,5 +129,4 @@
listnames: function to list all names
templatename: the name to use for templating
namemap: function that inputs a node, output name(s)
nodemap: function that inputs a name, output node(s)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment