new: Delete tags via update_attribute, search by sharing group

pull/500/head
Tom King 2019-11-26 12:21:24 +00:00
parent 5ebaca3b52
commit cf45bf0c46
2 changed files with 6 additions and 0 deletions

View File

@ -422,3 +422,7 @@ class MISPTag(AbstractMISP):
if hasattr(self, 'exportable') and not self.exportable:
return False
return super(MISPTag, self)._to_feed()
def delete(self):
self.deleted = True
self.edited = True

View File

@ -1392,6 +1392,7 @@ class ExpandedPyMISP(PyMISP):
headerless: Optional[bool]=None,
include_sightings: Optional[bool]=None, includeSightings: Optional[bool]=None,
include_correlations: Optional[bool]=None, includeCorrelations: Optional[bool]=None,
sharinggroup: Optional[SearchType]=None,
pythonify: Optional[bool]=False,
**kwargs):
'''Search in the MISP instance
@ -1585,6 +1586,7 @@ class ExpandedPyMISP(PyMISP):
analysis: Optional[List[SearchType]]=None,
org: Optional[SearchParameterTypes]=None,
timestamp: Optional[DateInterval]=None,
sharinggroup: Optional[SearchType]=None,
pythonify: Optional[bool]=None):
"""Search only at the index level. Using ! in front of a value means NOT (default is OR)