r76859 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76858‎ | r76859 | r76860 >
Date:23:52, 16 November 2010
Author:diederik
Status:deferred
Tags:
Comment:
Refactored db code, removed old sqlite code.
Modified paths:
  • /trunk/tools/editor_trends/database/cache.py (modified) (history)
  • /trunk/tools/editor_trends/database/db.py (modified) (history)

Diff [purge]

Index: trunk/tools/editor_trends/database/cache.py
@@ -35,7 +35,8 @@
3636 import datetime
3737 import random
3838
39 -import settings
 39+import configuration
 40+settings = configuration.Settings()
4041 import db
4142 from utils import utils
4243
@@ -109,7 +110,7 @@
110111 return False
111112
112113 def store(self):
113 - utils.store_object(self, settings.BINARY_OBJECT_FILE_LOCATION, self.__repr__())
 114+ utils.store_object(self, settings.binary_location, self.__repr__())
114115
115116 def drop_n_observations(self, n=1):
116117 editors_to_remove = set()
Index: trunk/tools/editor_trends/database/db.py
@@ -21,7 +21,8 @@
2222 from pymongo import Connection
2323
2424
25 -import settings
 25+import configuration
 26+settings = configuration.Settings()
2627 from database import db_settings
2728
2829

Status & tagging log