r81045 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r81044‎ | r81045 | r81046 >
Date:19:11, 26 January 2011
Author:diederik
Status:deferred
Tags:
Comment:
Fixed broken import
Modified paths:
  • /trunk/tools/editor_trends/manage.py (modified) (history)

Diff [purge]

Index: trunk/tools/editor_trends/manage.py
@@ -26,11 +26,8 @@
2727 from argparse import RawTextHelpFormatter
2828 import ConfigParser
2929
30 -
3130 import configuration
32 -import config
3331 from utils import file_utils
34 -
3532 from utils import ordered_dict
3633 from utils import log
3734 from utils import timer
@@ -41,10 +38,9 @@
4239 from etl import store
4340 from etl import sort
4441 from etl import transformer
 42+from analyses import analyzer
4543
46 -from analyses import count_editors
4744
48 -
4945 def show_choices(settings, attr):
5046 choices = getattr(settings, attr).items()
5147 choices.sort()
@@ -200,7 +196,11 @@
201197 # dbname=properties.full_project,
202198 # collection=properties.collection)
203199 print 'Dataset is created by: %s' % target
204 - count_editors.generate_chart_data(properties.project, properties.collection, target)
 200+
 201+ analyzer.generate_chart_data(properties.project,
 202+ properties.collection,
 203+ properties.language_code,
 204+ target)
205205 stopwatch.elapsed()
206206 log.log_to_mongo(properties, 'dataset', 'export', stopwatch, event='finish')
207207
@@ -424,7 +424,7 @@
425425
426426 parser.add_argument('-d', '--datasets',
427427 action='store',
428 - choices=count_editors.available_analyses(),
 428+ choices=analyzer.available_analyses(),
429429 help='Indicate what type of data should be exported.',
430430 default='cohort_dataset_backward_bar')
431431

Status & tagging log