Renaming connect_database to connect_database_from_config and using in from_celery

This commit is contained in:
Christopher Allan Webber
2011-05-18 08:44:57 -05:00
parent 468bc8afce
commit 3262ad1dbb
3 changed files with 6 additions and 8 deletions

View File

@@ -23,7 +23,7 @@ from pymongo import DESCENDING
from mongokit import ObjectId
def connect_database(app_config):
def connect_database_from_config(app_config):
"""Connect to the main database, take config from app_config"""
port = app_config.get('db_port')
if port: