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
Serghei Mihai
2f741c203e
basic authentic deployment agent
2015-02-09 11:40:05 +01:00
Serghei Mihai
8d45681fd8
display 403 error page if user has no admin privileges
...
Closes #6397
2015-02-09 11:40:05 +01:00
Frédéric Péters
f7dcd7b09b
fix example deployment json
2015-02-02 15:13:49 +01:00
Frédéric Péters
d956fdd814
doc: document the fact that saml-sp-metadata-url variable exists
2015-02-02 14:50:59 +01:00
Benjamin Dauvergne
8757d554c7
Add README section describing content of the environment dictionnary ( #6339 )
2015-01-23 18:45:31 +01:00
Serghei Mihai
05fe3f3650
base.html template inheriting from hobo's base for mellon application
...
Closes #6004
2015-01-15 16:15:33 +01:00
Frédéric Péters
b00261cdb8
expose SP SAML metadata url ( #4578 )
2014-12-09 13:56:56 +01:00
Frédéric Péters
c7bf16f0f9
requirements: remove obsolete allauth_authentic2 reference
2014-12-09 13:56:56 +01:00
Frédéric Péters
fc78b3bee4
add a json view of the environment to help in debugging ( #6125 )
2014-12-09 13:54:27 +01:00
Frédéric Péters
373c1f97fd
French translation
2014-12-03 08:12:13 +01:00
Serghei Mihai
303e5217d3
missing slash added to mellon urls
2014-11-24 19:47:33 +01:00
Serghei Mihai
3a44ae35fc
including mellon's urls when it's enabled
2014-11-24 17:08:37 +01:00
Serghei Mihai
10e8bff81c
authentication via django-mellon example added
2014-11-20 18:16:01 +01:00
Serghei Mihai
bdd7984dfa
only superusers can login
2014-11-20 18:15:53 +01:00
Serghei Mihai
7b9b56beac
mandatory authentication added
2014-11-19 14:23:17 +01:00
Frédéric Péters
b3367de2b9
doc: add a README file with basic installation and configuration info ( #5845 )
2014-11-14 15:50:52 +01:00
Frédéric Péters
74af59ab3a
agent: do not check wcs timestamps, this is done by the agent ( #5940 )
2014-11-14 15:50:52 +01:00
Frédéric Péters
c10b80958c
agent: empty list in AGENT_HOST_PATTERNS means nothing for the service ( #5875 )
2014-11-14 15:50:52 +01:00
Frédéric Péters
47998e1dcd
create unique slugs for services ( #5837 )
2014-11-14 15:50:52 +01:00
Frédéric Péters
b787391992
return 404 if checking an object that doesn't exist ( #5842 )
2014-11-14 15:49:08 +01:00
Thomas NOËL
582f2ec12c
add missing import (settings)
2014-11-05 12:29:57 +01:00
Frédéric Péters
0d2219398b
determine wants_frequent_checks based on last update, not current time ( #5851 )
2014-11-04 13:25:14 +01:00