Commit Graph

4 Commits

Author SHA1 Message Date
Jérôme Schneider 1b18c2d90d middleware: PythonSettingsMiddleware overload FileBasedTenantSettingBaseMiddleware and not JSONSettingsMiddleware
Closes #5972
2014-11-20 10:08:46 +01:00
Benjamin Dauvergne aae80ef0a3 New TenantMiddleware which try to find tenants based on the filesystem
If path <settings.TENANT_BASE>/<hostname>/schema exists, read this file an build
tenant modle with Tenant(domain_url=<hostname>, schema_name=file(<path>).read()).

refs #5106
2014-09-12 12:02:29 +02:00
Benjamin Dauvergne ec0613c1a8 Add middleware to load settings from a JSON file based on the tenant
* Loaded settings are cached based on the mtime of the setting file
* JSON file path is <settings.TENANT_BASE>/<schema_name>/settings.json

refs #5106
2014-09-12 12:02:27 +02:00
Benjamin Dauvergne e62d56fcc1 multitenenant extension 2014-02-04 15:14:44 +01:00