77# Last updated 08/27/2014
88
99import maec
10+ from . import _namespace
1011import maec .bindings .maec_bundle as bundle_binding
12+ from maec .bundle import MalwareAction
1113from cybox .core .action_reference import ActionReference
1214from cybox .common .measuresource import MeasureSource
1315from cybox .common .platform_specification import PlatformSpecification
14- from maec .bundle .malware_action import MalwareAction
1516from cybox .objects .code_object import Code
1617#from maec.bundle.bundle import ActionCollection
1718import datetime
1819
1920class BehavioralActionEquivalenceReference (maec .Entity ):
2021 _binding = bundle_binding
2122 _binding_class = bundle_binding .BehavioralActionEquivalenceReferenceType
22- _namespace = maec . bundle . _namespace
23+ _namespace = _namespace
2324
2425 action_equivalence_idref = maec .TypedField ('action_equivalence_idref' )
2526 behavioral_ordering = maec .TypedField ('behavioral_ordering' )
2627
2728class BehavioralActionReference (ActionReference ):
2829 _binding = bundle_binding
2930 _binding_class = bundle_binding .BehavioralActionReferenceType
30- _namespace = maec . bundle . _namespace
31+ _namespace = _namespace
3132
3233 behavioral_ordering = maec .TypedField ('behavioral_ordering' )
3334
3435class BehavioralAction (maec .Entity ):
3536 _binding = bundle_binding
3637 _binding_class = bundle_binding .BehavioralActionType
37- _namespace = maec . bundle . _namespace
38+ _namespace = _namespace
3839
3940 behavioral_ordering = maec .TypedField ('behavioral_ordering' )
4041
4142class BehavioralActions (maec .Entity ):
4243 _binding = bundle_binding
4344 _binding_class = bundle_binding .BehavioralActionsType
44- _namespace = maec . bundle . _namespace
45+ _namespace = _namespace
4546
4647 #action_collection = maec.TypedField('Action_Collection', ActionCollection, multiple=True) #TODO: solve recursive import
4748 action = maec .TypedField ('Action' , BehavioralAction , multiple = True )
@@ -53,20 +54,20 @@ class PlatformList(maec.EntityList):
5354 _binding_class = bundle_binding .PlatformListType
5455 _binding_var = "Platform"
5556 _contained_type = PlatformSpecification
56- _namespace = maec . bundle . _namespace
57+ _namespace = _namespace
5758
5859class CVEVulnerability (maec .Entity ):
5960 _binding = bundle_binding
6061 _binding_class = bundle_binding .CVEVulnerabilityType
61- _namespace = maec . bundle . _namespace
62+ _namespace = _namespace
6263
6364 cve_id = maec .TypedField ('cve_id' )
6465 description = maec .TypedField ('Description' )
6566
6667class Exploit (maec .Entity ):
6768 _binding = bundle_binding
6869 _binding_class = bundle_binding .ExploitType
69- _namespace = maec . bundle . _namespace
70+ _namespace = _namespace
7071
7172 known_vulnerability = maec .TypedField ('known_vulnerability' )
7273 cve = maec .TypedField ('CVE' , CVEVulnerability )
@@ -76,7 +77,7 @@ class Exploit(maec.Entity):
7677class BehaviorPurpose (maec .Entity ):
7778 _binding = bundle_binding
7879 _binding_class = bundle_binding .BehaviorPurposeType
79- _namespace = maec . bundle . _namespace
80+ _namespace = _namespace
8081
8182 description = maec .TypedField ('Description' )
8283 vulnerability_exploit = maec .TypedField ('Vulnerability_Exploit' , Exploit )
@@ -86,12 +87,12 @@ class AssociatedCode(maec.EntityList):
8687 _binding_class = bundle_binding .AssociatedCodeType
8788 _binding_var = "Code_Snippet"
8889 _contained_type = Code
89- _namespace = maec . bundle . _namespace
90+ _namespace = _namespace
9091
9192class Behavior (maec .Entity ):
9293 _binding = bundle_binding
9394 _binding_class = bundle_binding .BehaviorType
94- _namespace = maec . bundle . _namespace
95+ _namespace = _namespace
9596
9697 id_ = maec .TypedField ('id' )
9798 ordinal_position = maec .TypedField ('ordinal_position' )
0 commit comments