Skip to content

Commit

Permalink
Ported communities to Protocol Buffers
Browse files Browse the repository at this point in the history
Ported the AllChannel, Bartercast4, Channel, Demers and Template communities to Protocol Buffers serialization. This version has been made backward compatible with the old wire format.
  • Loading branch information
qstokkink committed Jul 5, 2016
1 parent f5396b4 commit bf9fe83
Show file tree
Hide file tree
Showing 26 changed files with 3,545 additions and 2,217 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
[submodule "Tribler/Core/DecentralizedTracking/pymdht"]
path = Tribler/Core/DecentralizedTracking/pymdht
url = https://github.com/LipuFei/pymdht.git
[submodule "Tribler/community/TriblerProtobufSerialization"]
path = Tribler/community/serializer
url = https://github.com/qstokkink/TriblerProtobufSerialization.git
3 changes: 2 additions & 1 deletion Tribler/Core/Modules/search_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,9 @@ def _on_channel_search_results(self, subject, change_type, object_id, search_res

if keywords != self._current_keywords:
return
import sys

channel_cids = results.keys()
channel_cids = [result.cid for result in results]
channel_results = self.channelcast_db.getChannelsByCID(channel_cids)

results_data = {'keywords': keywords,
Expand Down
478 changes: 265 additions & 213 deletions Tribler/community/allchannel/community.py

Large diffs are not rendered by default.

Loading

0 comments on commit bf9fe83

Please sign in to comment.