r86543 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86542‎ | r86543 | r86544 >
Date:20:14, 20 April 2011
Author:diederik
Status:deferred
Tags:
Comment:
Implemented pylint suggestions
Modified paths:
  • /trunk/tools/editor_trends/etl/transformer.py (modified) (history)

Diff [purge]

Index: trunk/tools/editor_trends/etl/transformer.py
@@ -49,13 +49,15 @@
5050
5151 class Editor:
5252 def __init__(self, rts, editor_id):
53 - self.db_raw = storage.init_database(rts.storage, rts.dbname, rts.editors_raw)
54 - self.db_dataset = storage.init_database(rts.storage, rts.dbname, rts.editors_dataset)
 53+ self.editor_id = editor_id
 54+ self.rts = rts
5555
5656 def __str__(self):
5757 return '%s' % (self.editor_id)
5858
5959 def __call__(self):
 60+ self.db_raw = storage.init_database(rts.storage, rts.dbname, rts.editors_raw)
 61+ self.db_dataset = storage.init_database(rts.storage, rts.dbname, rts.editors_dataset)
6062 cutoff = 9
6163 editor = self.db_raw.find_one('editor', self.editor_id)
6264 if editor == None: