Fix fairly deep flaw where resolved templates could be modified by casting or creating an object.

This commit is contained in:
Mike Auty
2016-12-18 19:21:27 +00:00
parent 1754f3bc85
commit 09ee0e6258
4 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ class ObjectTemplate(interfaces.objects.Template, validity.ValidityRoutines):
def __init__(self, object_class = None, type_name = None, **arguments):
super().__init__(type_name = type_name, **arguments)
self._check_class(object_class, interfaces.objects.ObjectInterface)
self.update_vol(object_class = object_class)
self._arguments['object_class'] = object_class
@property
def size(self):