doc="""How to handle duplicate Dataflow
with same properties, except name and notes""",
)
+ assumptions = varStrings(
+ [],
+ required=False,
+ doc="A list of assumptions about the design/model.",
+ )
def __init__(self, name, **kwargs):
for key, value in kwargs.items():
@@ -3603,6 +3608,7 @@
if result.describe is not None:
_describe_classes(result.describe.split())
+ if result.list_elements:
+ _list_elements()
+
if result.list is True:
[print("{} - {}".format(t.id, t.description)) for t in TM._threats]
@@ -3961,6 +3970,22 @@
Static methods
Instance variables
+
var assumptions
+
+
A list of assumptions about the design/model.
+
+
+Expand source code
+
+
def __get__(self, instance, owner):
+ # when x.d is called we get here
+ # instance = x
+ # owner = type(x)
+ if instance is None:
+ return self
+ return self.data.get(instance, self.default)
+
+
var description
Model description
@@ -4160,6 +4185,9 @@
Methods
if result.describe is not None:
_describe_classes(result.describe.split())
+ if result.list_elements:
+ _list_elements()
+
if result.list is True:
[print("{} - {}".format(t.id, t.description)) for t in TM._threats]
@@ -4231,6 +4259,7 @@