예제 #1
0
    def _initialize_meta_messages(self):
        super(SearchCommunity, self)._initialize_meta_messages()

        ori = self._meta_messages[u"dispersy-introduction-request"]
        new = Message(self, ori.name, ori.authentication,
                      ori.resolution, ori.distribution, ori.destination,
                      TasteIntroPayload(), ori.check_callback,
                      ori.handle_callback)
        self._meta_messages[u"dispersy-introduction-request"] = new
예제 #2
0
    def _initialize_meta_messages(self):
        Community._initialize_meta_messages(self)

        ori = self._meta_messages[u"dispersy-introduction-request"]
        self._disp_intro_handler = ori.handle_callback

        new = Message(self, ori.name, ori.authentication,
                      ori.resolution, ori.distribution, ori.destination,
                      TasteIntroPayload(), ori.check_callback,
                      self.on_taste_intro)
        self._meta_messages[u"dispersy-introduction-request"] = new