web/db/me.py
def start(self, context):
		"""Initialize the database connection."""
		
		self.config['alias'] = self.alias
		safe_config = dict(self.config)
		del safe_config['host']
		
		log.info("Connecting MongoEngine database layer.", extra=dict(
				uri = redact_uri(self.config['host']),
				config = self.config,
			))
		
		self.connection = connect(**self.config)
def start(self, context):
		"""Initialize the database connection."""
		
		self.config['alias'] = self.alias
		safe_config = dict(self.config)
		del safe_config['host']
		
		log.info("Connecting MongoEngine database layer.", extra=dict(
				uri = redact_uri(self.config['host']),
				config = self.config,
			))
		
		self.connection = connect(**self.config)
Initialize the database connection.