def members(self): # TODO we should not just trust this information, a member can put any address in their # dispersy-identity message. The database should contain a column with a 'verified' flag. # This flag is only set when a handshake was successfull. return [Member.get_instance(str(public_key)) for public_key, in list(DispersyDatabase.get_instance().execute(u"SELECT public_key FROM user WHERE host = ? AND port = ? -- AND verified = 1", (unicode(self._address[0]), self._address[1])))]
def database_id(self): return Member.get_instance(self.public_key).database_id