Merge pull request #362 from chisholm/file_id_contrib_props

Add parent_directory_ref as an ID contributing property for file SCOs
master
Chris Lenk 2020-03-12 09:36:16 -04:00 committed by GitHub
commit 3dda25e976
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -382,7 +382,7 @@ class File(_Observable):
('granular_markings', ListProperty(GranularMarking)), ('granular_markings', ListProperty(GranularMarking)),
('defanged', BooleanProperty(default=lambda: False)), ('defanged', BooleanProperty(default=lambda: False)),
]) ])
_id_contributing_properties = ["hashes", "name", "extensions"] _id_contributing_properties = ["hashes", "name", "parent_directory_ref", "extensions"]
def _check_object_constraints(self): def _check_object_constraints(self):
super(File, self)._check_object_constraints() super(File, self)._check_object_constraints()