new: change_distribution method

Fix: #294
pull/301/head
Raphaël Vinot 2018-11-09 10:55:27 +01:00
parent ada955a9e6
commit bc8a397752
1 changed files with 6 additions and 0 deletions

View File

@ -468,6 +468,12 @@ class PyMISP(object):
e.analysis = analysis_status e.analysis = analysis_status
return self.update(e) return self.update(e)
def change_distribution(self, event, distribution):
"""Change the distribution of an event"""
e = self._make_mispevent(event)
e.distribution = distribution
return self.update(e)
def change_sharing_group(self, event, sharing_group_id): def change_sharing_group(self, event, sharing_group_id):
"""Change the sharing group of an event""" """Change the sharing group of an event"""
e = self._make_mispevent(event) e = self._make_mispevent(event)