コード例 #1
0
 def _determine_pulse_author(pulse: Pulse, provider: Identity) -> Identity:
     pulse_author = pulse.author_name
     if not pulse_author:
         return provider
     if pulse_author == provider.name:
         return provider
     return create_organization(pulse_author, author=provider)
コード例 #2
0
 def _create_author() -> Identity:
     return create_organization("AlienVault")
コード例 #3
0
 def _create_dummy_object(self) -> Identity:
     return create_organization(self._DUMMY_OBJECT_NAME, self.pulse_author)