Frédéric Péters
9c734c5c13
tenant: make it possible for create_tenant to get domains from stdin ( #6464 )
2015-02-11 11:08:22 +01:00
Frédéric Péters
ec5a9149ec
multitenant: update references from entrouvert.djommon to hobo
2015-02-11 11:06:26 +01:00
Frédéric Péters
fa79801a8f
tenant: do not duplicate --domain option in tenant_command ( #6459 )
2015-02-11 11:06:26 +01:00
Frédéric Péters
1b29b549b2
tenant: add "create super user" to example commands
2015-02-11 11:06:26 +01:00
Frédéric Péters
78edcc1c8d
tenant: fix documentation reference to the manage.py command
2015-02-11 11:06:26 +01:00
Thomas NOËL
91b452768a
multitenant: update README
2015-02-11 11:06:26 +01:00
Thomas NOËL
d7cbe32076
multitenant: sync syncdb with upstream
2015-02-11 11:06:26 +01:00
Thomas NOËL
d79a8f9565
multitenant: sync_schemas disabled for django 1.7
2015-02-11 11:06:26 +01:00
Thomas NOËL
7ad118fd99
tenant: fix django 1.6 usage (missing __init__.py)
2015-02-11 11:06:26 +01:00
Thomas NOËL
9be5df36c9
result of tenant.create_schema is undefined
2015-02-11 11:06:26 +01:00
Thomas NOËL
c8d6b48c83
remove useless get_tenant_by_domain command ( #6398 )
2015-02-11 11:06:26 +01:00
Thomas NOËL
af4d4ded26
renamed create_schema to create_schemas
2015-02-11 11:06:26 +01:00
Thomas NOËL
87f72fc519
migrate: disable if django 1.7 ( #6388 )
2015-02-11 11:06:26 +01:00
Thomas NOËL
519b329e9b
multitenant: use self.schema_name in SyncCommon ( #6420 )
2015-02-11 11:06:26 +01:00
Thomas NOËL
ffd1317751
tenants in TENANT_BASE/hostname ( #6398 )
2015-02-11 11:06:26 +01:00
Thomas NOËL
9e5f897975
migrate_schemas: use django 1.7 if available ( #6388 )
2015-02-11 11:06:26 +01:00
Serghei Mihai
89a12778ea
tenant object passed to context manager.
...
"deploy tenant" method should be called with three parameters
Closes #6340
2015-02-11 11:06:26 +01:00
Benjamin Dauvergne
3eaa5bd521
Add a generic command to deploy service tenants from hobo ( #6340 )
...
It must be overloaded by applications.
2015-02-11 11:06:26 +01:00
Jérôme Schneider
27bc15dd05
middleware: PythonSettingsMiddleware overload FileBasedTenantSettingBaseMiddleware and not JSONSettingsMiddleware
...
Closes #5972
2015-02-11 11:06:26 +01:00
Thomas NOËL
4efc80c3b9
add safemigrate_schemas command ( #5791 )
2015-02-11 11:06:26 +01:00
Thomas NOËL
d13582478c
sync_schemas: notice syncdb before doing it (fix)
2015-02-11 11:06:26 +01:00
Jérôme Schneider
de6f2a46f6
multitenant: add a command to create tenant(s) by hostname
...
Closes #5759
2015-02-11 11:06:26 +01:00
Benjamin Dauvergne
8b43de2b96
In management commands of multitenant app rename variable schema_name as domain
2015-02-11 11:06:26 +01:00
Benjamin Dauvergne
0e08ddc327
Add tenant based storage handler ( fixes #5501 )
...
To use it, add this to your settings.py:
DEFAULT_FILE_STORAGE = 'entrouvert.djommon.multitenant.storage.TenantFileSystemStorage'
2015-02-11 11:06:26 +01:00
Benjamin Dauvergne
f87a4c59fa
Add tests on multitenants features ( fixes #5106 )
2015-02-11 11:06:26 +01:00
Benjamin Dauvergne
9af341e8da
Add command list_tenants ( fixes #5044 )
...
refs #5106
2015-02-11 11:06:26 +01:00
Benjamin Dauvergne
61e474114b
Add command get_tenant_by_domain
...
refs #5106
2015-02-11 11:06:26 +01:00
Benjamin Dauvergne
840d94056d
Add command to create missing tenant schemas
...
refs #5106
2015-02-11 11:06:25 +01:00
Benjamin Dauvergne
b9bdb8d833
Import django-tenant-schemas commands to adapt them to our way of managing tenants
...
refs #5106
2015-02-11 11:06:25 +01:00
Benjamin Dauvergne
e133c6ceb4
Make tenant model non savable
...
refs #5106
2015-02-11 11:06:25 +01:00
Benjamin Dauvergne
7380857cd7
Remove create-tenant command
...
refs #5106
2015-02-11 11:06:25 +01:00
Benjamin Dauvergne
d3142abeb7
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
2015-02-11 11:06:25 +01:00
Benjamin Dauvergne
f596d8af7c
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
2015-02-11 11:06:25 +01:00
Benjamin Dauvergne
181e525a0d
In FileSystemLoader use the schema name instead of the domain name for building template path
...
Also add a templates/ suffix.
refs #5106
2015-02-11 11:06:25 +01:00
Benjamin Dauvergne
1c7323072d
In FileSystemLoader rename settings from MULTITENANT_TEMPLATE_DIRS to TENANT_TEMPLATE_DIRS to unformize with other settings
...
refs #5106
2015-02-11 11:06:25 +01:00
Benjamin Dauvergne
ea04b35c75
Remove dead import on tenant_schemas.utils
...
refs #5106
2015-02-11 11:06:25 +01:00
Serghei Mihai
2250eb1e93
readme updated
2015-02-11 11:06:25 +01:00
Thomas NOËL
2160406276
multitenant: little fixes in models.py
2015-02-11 11:06:25 +01:00
Benjamin Dauvergne
6a6dad495f
multitenant: fix instructions on the settings in the README
2015-02-11 11:06:25 +01:00
Benjamin Dauvergne
4126c1f6f6
multitenenant extension
2015-02-11 11:06:25 +01:00
Frédéric Péters
6caa277f2e
agent: use commoncode to deploy passerelle instances ( #6112 )
2015-02-10 14:22:49 +01:00
Frédéric Péters
b75d3b46b7
agent: use common code to deploy combo ( #6461 )
2015-02-10 14:22:39 +01:00
Frédéric Péters
c7beabc56c
agent: assume the management command will find its settings
2015-02-10 14:20:31 +01:00
Frédéric Péters
74673fa6fa
add combo services ( #6461 )
2015-02-10 13:56:07 +01:00
Frédéric Péters
0f080ad8d1
use first zone URL when checking for operationality ( #6460 )
...
Checking the base URL doesn't work for services such as Combo where the base
URL will 404 as long as no page have been added.
2015-02-10 13:56:07 +01:00
Frédéric Péters
33f03405a2
add default deployment code ( #6462 )
2015-02-10 13:56:07 +01:00
Jérôme Schneider
71d503218a
requirements: allows django 1.7
2015-02-09 18:43:46 +01:00
Jérôme Schneider
4d9e15a0d9
settings: use a single settings.py file
...
use just HOBO_SETTINGS_FILE variable environment to set the
configuration file
Closes #6454
2015-02-09 15:55:38 +01:00
Serghei Mihai
ddc96a9b42
computing idp metadata url for each service
...
Closes #6451
2015-02-09 11:40:05 +01:00
Serghei Mihai
b882564635
command checking services status
...
Closes #6445
2015-02-09 11:40:05 +01:00