web/db/dbapi.py
def _connect(self, context):
		"""Initialize the database connection."""
		
		if __debug__:
			log.info("Connecting " + self.engine.partition(':')[0] + " database layer.", extra=dict(
					uri = redact_uri(self.uri, self.protect),
					config = self.config,
					alias = self.alias,
				))
		
		self.connection = context.db[self.alias] = self._connector(self.uri, **self.config)
def _connect(self, context):
		"""Initialize the database connection."""
		
		if __debug__:
			log.info("Connecting " + self.engine.partition(':')[0] + " database layer.", extra=dict(
					uri = redact_uri(self.uri, self.protect),
					config = self.config,
					alias = self.alias,
				))
		
		self.connection = context.db[self.alias] = self._connector(self.uri, **self.config)
def _connect ( self , context ) : if __debug__ : log . info ( "Connecting " + self . engine . partition ( ':' ) [ 0 ] + " database layer." , extra = dict ( uri = redact_uri ( self . uri , self . protect ) , config = self . config , alias = self . alias , ) ) self . connection = context . db [ self . alias ] = self . _connector ( self . uri , * * self . config )
Initialize the database connection.
Initialize the database connection .