'Searches for channels using AllChannelCommunity with the given keywords.
:param keywords: The given keywords.'

@call_on_reactor_thread
def search_for_channels(self, keywords):

    if (self.dispersy is None):
        return
    for community in self.dispersy.get_communities():
        if isinstance(community, AllChannelCommunity):
            self._current_keywords = keywords
            community.create_channelsearch(keywords)
            break
