1.1 --- a/moinformat/input/__init__.py Mon Aug 13 22:54:01 2018 +0200
1.2 +++ b/moinformat/input/__init__.py Tue Aug 14 22:33:30 2018 +0200
1.3 @@ -32,17 +32,10 @@
1.4
1.5 return inputs.get(name)
1.6
1.7 -def make_input(name, parameters):
1.8 +def make_input(metadata, name=None):
1.9
1.10 - """
1.11 - Return an input context of the type indicated by 'name', employing the
1.12 - given 'parameters'.
1.13 - """
1.14 + "Return an input context using 'metadata' and the optional 'name'."
1.15
1.16 - input_cls = get_input(name)
1.17 - if not input_cls:
1.18 - return None
1.19 -
1.20 - return input_cls(parameters)
1.21 + return metadata.get_input(name)
1.22
1.23 # vim: tabstop=4 expandtab shiftwidth=4