Eradicate **magic where possible and rename where appropriate.

This commit is contained in:
Mike Auty
2015-01-04 04:55:17 +00:00
parent e9e7f396ed
commit 95238f7f01
3 changed files with 16 additions and 16 deletions
+5 -5
View File
@@ -112,19 +112,19 @@ class Template(validity.ValidityRoutines):
This is effectively a class for currying object calls
"""
def __init__(self, structure_name, **kwargs):
def __init__(self, structure_name, **arguments):
"""Stores the keyword arguments for later use"""
# Allow the updating of template arguments whilst still in template form
self._volinfo = collections.ChainMap(kwargs, {'structure_name': structure_name})
self._volinfo = collections.ChainMap(arguments, {'structure_name': structure_name})
@property
def volinfo(self):
"""Returns a volatility information object, much like the ObjectInterface provides"""
return ReadOnlyInformation(self._volinfo)
return ReadOnlyMapping(self._volinfo)
def update_volinfo(self, **newargs):
def update_volinfo(self, **new_arguments):
"""Updates the keyword arguments"""
self._volinfo.update(newargs)
self._volinfo.update(new_arguments)
def __call__(self, context, object_info):
"""Constructs the object