Minor tidying.

This commit is contained in:
Mike Auty
2015-09-28 09:27:54 +01:00
parent 65fcd5fbe5
commit c3a52118e5
2 changed files with 3 additions and 4 deletions
+3 -3
View File
@@ -38,7 +38,8 @@ class CommandLine(object):
# Run the argparser
parser.parse_args()
# Validate the requirement
# Generate the layers from the arguments
# Construct the plugin
runner = plugin(context)
@@ -67,8 +68,7 @@ class CommandLine(object):
# Choose an appropriate LayerFactory (add layer to the req.name so we don't blat the requirement itself
namespace = configuration.namespace_join([plugin.__name__, req.name + "_layer"])
factory = self.construct_translation_layer_factory(namespace, req)
facreqs = factory.requirements()
for facreq in facreqs:
for facreq in factory.requirements():
context.config.add_item(facreq, namespace = namespace)
else:
context.config.add_item(req, plugin.__name__)
@@ -31,7 +31,6 @@ class LayerFactory(validity.ValidityRoutines, list):
return self._name
def __setitem__(self, key, value):
print("Running setitem")
self._class_check(value, ContextModifierInterface)
super(LayerFactory, self).__setitem__(key, value)