parameters: (self, participants)
return_statement: return self
docstring: Ensure that participants lookup and hash lookup tables are filled
          for these participants
  
          :param user:
          :param participants: a collection of parameters/Participant
          :type uris: set
          :return: Discussion
docstring_summary: Ensure that participants lookup and hash lookup tables are filled
          for these participants
docstring_tokens: Ensure that participants lookup and hash lookup tables are filled for these participants
function: def upsert_lookups_for_participants(self, participants):
          """
          Ensure that participants lookup and hash lookup tables are filled
          for these participants
  
          :param user:
          :param participants: a collection of parameters/Participant
          :type uris: set
          :return: Discussion
          """
          if not participants:
              raise Exception("missing mandatory property to create lookup entry")
  
          uris = hash_participants_uri(participants)
          hash_lookup = ParticipantHash.find(user_id=self.user.user_id,
                                             kind="uris",
                                             key=uris['hash'])
          if len(hash_lookup) > 0:
              self.participants = hash_lookup[0].components
              self.participants_hash = hash_lookup[0].value
          else:
              parts = participants_from_uris(self.user, uris['uris'],
                                             uris['hash'])
              self.participants = parts['components']
              self.participants_hash = parts['hash']
  
          return self
function_tokens: def upsert_lookups_for_participants ( self , participants ) : if not participants : raise Exception ( "missing mandatory property to create lookup entry" ) uris = hash_participants_uri ( participants ) hash_lookup = ParticipantHash . find ( user_id = self . user . user_id , kind = "uris" , key = uris [ 'hash' ] ) if len ( hash_lookup ) > 0 : self . participants = hash_lookup [ 0 ] . components self . participants_hash = hash_lookup [ 0 ] . value else : parts = participants_from_uris ( self . user , uris [ 'uris' ] , uris [ 'hash' ] ) self . participants = parts [ 'components' ] self . participants_hash = parts [ 'hash' ] return self