Skip to content

Feature dburi

LE GAC Renaud requested to merge feature-dburi into develop

In order to serve several applications using the same code, the global dictionary DBURIS is introduced. The keys are the name of the application while the values are the corresponding database connection string.

The content of the dictionary is defined in the _db.py file.

At the beginning of the model, in the access.py file:

  mysql = DBURIS[request.application]
  db = DAL(mysql,....)

The obsolete constant DB_USER, DB_HOST, DB_PWD and DATABASE have been removed.

Merge request reports