wrap directives list

This commit is contained in:
rowanc1
2014-05-16 22:01:02 -07:00
parent 18f0e61780
commit f865106db9
+2
View File
@@ -24,6 +24,8 @@ class BaseInversion(object):
@directiveList.setter
def directiveList(self, value):
if type(value) is list:
value = Directives.DirectiveList(value)
assert isinstance(value, Directives.DirectiveList), 'Must be a DirectiveList'
self._directiveList = value
self._directiveList.inversion = self