Index: trunk/tools/editor_trends/classes/buffer.py |
— | — | @@ -19,6 +19,7 @@ |
20 | 20 | __version__ = '0.1' |
21 | 21 | |
22 | 22 | import sys |
| 23 | +import itertools |
23 | 24 | if '..' not in sys.path: |
24 | 25 | sys.path.append('..') |
25 | 26 | |
— | — | @@ -107,12 +108,15 @@ |
108 | 109 | editors.setdefault(editor_id, self.get_hash(editor_id)) |
109 | 110 | |
110 | 111 | #now, we are going to group all editors by file_id |
| 112 | + print editors |
111 | 113 | file_ids = self.invert_dictionary(editors) |
| 114 | + print file_ids |
112 | 115 | self.revisions = {} |
113 | 116 | for file_id, editors in file_ids.iteritems(): |
114 | 117 | for editor in editors: |
115 | 118 | self.revisions.setdefault(file_id, []) |
116 | 119 | self.revisions[file_id].extend(data[editor]) |
| 120 | + print file_id, data[editor] |
117 | 121 | |
118 | 122 | def add(self, revision): |
119 | 123 | self.stringify(revision) |