r86071 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86070‎ | r86071 | r86072 >
Date:19:19, 14 April 2011
Author:diederik
Status:deferred
Tags:
Comment:
simple sync.
Modified paths:
  • /trunk/tools/editor_trends/classes/buffer.py (modified) (history)

Diff [purge]

Index: trunk/tools/editor_trends/classes/buffer.py
@@ -19,6 +19,7 @@
2020 __version__ = '0.1'
2121
2222 import sys
 23+import itertools
2324 if '..' not in sys.path:
2425 sys.path.append('..')
2526
@@ -107,12 +108,15 @@
108109 editors.setdefault(editor_id, self.get_hash(editor_id))
109110
110111 #now, we are going to group all editors by file_id
 112+ print editors
111113 file_ids = self.invert_dictionary(editors)
 114+ print file_ids
112115 self.revisions = {}
113116 for file_id, editors in file_ids.iteritems():
114117 for editor in editors:
115118 self.revisions.setdefault(file_id, [])
116119 self.revisions[file_id].extend(data[editor])
 120+ print file_id, data[editor]
117121
118122 def add(self, revision):
119123 self.stringify(revision)