remove cd05
This commit is contained in:
parent
b36ec481a8
commit
9a99281ded
|
@ -1,42 +0,0 @@
|
||||||
# Commune de Démonstration
|
|
||||||
# Commune de Démonstration - AEC
|
|
||||||
# Commune de Démonstration - DPO
|
|
||||||
# Commune de Démonstration - SVE
|
|
||||||
# Commune de Démonstration - Urbanisme
|
|
||||||
from authentic2.a2_rbac.models import OrganizationalUnit as OU, Role
|
|
||||||
|
|
||||||
print('start')
|
|
||||||
new_ou = OU.objects.get(slug='hobo-collectivites')
|
|
||||||
old_agent = Role.objects.get(ou__slug='default', name='Agent')
|
|
||||||
new_agent = Role.objects.get(ou__slug='hobo-collectivites', name='Agent')
|
|
||||||
base_roles = (
|
|
||||||
Role.objects.filter(ou__slug='default', name__startswith='Com')
|
|
||||||
.exclude(name__contains=' - ')
|
|
||||||
.order_by('name')
|
|
||||||
)
|
|
||||||
|
|
||||||
extensions = [' - SVE', ' - AEC', ' - DPO', ' - Urbanisme']
|
|
||||||
for role in base_roles:
|
|
||||||
new_role, created = Role.objects.update_or_create(name=role.name, ou=new_ou, defaults={'slug': role.slug})
|
|
||||||
print(new_role, created)
|
|
||||||
for ext in extensions:
|
|
||||||
new_subrole, created = Role.objects.update_or_create(name=role.name + ext, ou=new_ou)
|
|
||||||
new_role.add_parent(new_subrole)
|
|
||||||
|
|
||||||
|
|
||||||
print('adding agent to old roles')
|
|
||||||
all_old_roles = Role.objects.filter(ou__slug='default', name__startswith='Com').order_by('name')
|
|
||||||
for role in all_old_roles:
|
|
||||||
role.add_parent(old_agent)
|
|
||||||
print(role)
|
|
||||||
|
|
||||||
all_new_roles = Role.objects.filter(ou__slug='hobo-collectivites', name__startswith='Com').order_by('name')
|
|
||||||
for role in all_new_roles:
|
|
||||||
role.add_parent(new_agent)
|
|
||||||
try:
|
|
||||||
old_role = Role.objects.get(ou__slug='default', name=role.name)
|
|
||||||
except Role.DoesNotExist:
|
|
||||||
pass
|
|
||||||
else:
|
|
||||||
print('move members of', old_role)
|
|
||||||
role.members = old_role.members.all()
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,64 +0,0 @@
|
||||||
{
|
|
||||||
"variables": {
|
|
||||||
"commune": "hautes-alpes"
|
|
||||||
},
|
|
||||||
"steps": [
|
|
||||||
{"create-hobo": {
|
|
||||||
"url": "https://hobo-${commune}.test.entrouvert.org/"
|
|
||||||
}},
|
|
||||||
{"create-authentic": {
|
|
||||||
"url": "https://connexion-${commune}.test.entrouvert.org/",
|
|
||||||
"title": "Connexion"
|
|
||||||
}},
|
|
||||||
{"set-idp": {
|
|
||||||
}},
|
|
||||||
{"create-combo": {
|
|
||||||
"url": "https:/portail-usager-${commune}.test.entrouvert.org/",
|
|
||||||
"title": "Portail",
|
|
||||||
"template_name": "portal-user"
|
|
||||||
}},
|
|
||||||
{"create-combo": {
|
|
||||||
"url": "https://portail-agent-${commune}.test.entrouvert.org/",
|
|
||||||
"slug": "portal-agent",
|
|
||||||
"title": "Portail Agent",
|
|
||||||
"template_name": "portal-agent"
|
|
||||||
}},
|
|
||||||
{"create-wcs": {
|
|
||||||
"url": "https://demarches-${commune}.test.entrouvert.org/",
|
|
||||||
"slug": "eservices",
|
|
||||||
"title": "Démarches",
|
|
||||||
"template_name": "publik.zip"
|
|
||||||
}},
|
|
||||||
{"create-passerelle": {
|
|
||||||
"url": "https://passerelle-${commune}.test.entrouvert.org/",
|
|
||||||
"title": "Passerelle"
|
|
||||||
}},
|
|
||||||
{"create-bijoe": {
|
|
||||||
"url": "https://statistiques-${commune}.test.entrouvert.org/",
|
|
||||||
"title": "Statistiques"
|
|
||||||
}},
|
|
||||||
{"set-theme": {
|
|
||||||
"theme": "hautes-alpes"
|
|
||||||
}},
|
|
||||||
{"set-variable": {
|
|
||||||
"name": "theme_color",
|
|
||||||
"value": "#D1351C"
|
|
||||||
}},
|
|
||||||
{"set-variable": {
|
|
||||||
"name": "email_signature",
|
|
||||||
"value": "Ce service de mise en relation avec votre collectivit\u00e9 vous est propos\u00e9 par le D\u00e9partement des Hautes-Alpes."
|
|
||||||
}},
|
|
||||||
{"set-variable": {
|
|
||||||
"name": "css_variant",
|
|
||||||
"value": "hautes-alpes"
|
|
||||||
}},
|
|
||||||
{"set-variable": {
|
|
||||||
"name": "no_extra_js",
|
|
||||||
"value": "True"
|
|
||||||
}},
|
|
||||||
{"set-variable": {
|
|
||||||
"name": "default_from_email",
|
|
||||||
"value": "ne-pas-repondre@hautes-alpes.fr"
|
|
||||||
}}
|
|
||||||
]
|
|
||||||
}
|
|
Binary file not shown.
File diff suppressed because one or more lines are too long
|
@ -1,90 +0,0 @@
|
||||||
{
|
|
||||||
"COMBO_PUBLIC_TEMPLATES": {
|
|
||||||
"standard-sidebar": {
|
|
||||||
"placeholders": {
|
|
||||||
"content": {
|
|
||||||
"name": "Content"
|
|
||||||
},
|
|
||||||
"sidebar": {
|
|
||||||
"name": "Sidebar"
|
|
||||||
},
|
|
||||||
"footer": {
|
|
||||||
"acquired": true,
|
|
||||||
"name": "Footer"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"name": "One column + sidebar",
|
|
||||||
"template": "combo/page_template_sidebar.html"
|
|
||||||
},
|
|
||||||
"standard": {
|
|
||||||
"placeholders": {
|
|
||||||
"content": {
|
|
||||||
"name": "Content"
|
|
||||||
},
|
|
||||||
"footer": {
|
|
||||||
"acquired": true,
|
|
||||||
"name": "Footer"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"name": "One column",
|
|
||||||
"template": "combo/page_template.html"
|
|
||||||
},
|
|
||||||
"two-columns-sidebar": {
|
|
||||||
"placeholders": {
|
|
||||||
"content": {
|
|
||||||
"name": "Left Column"
|
|
||||||
},
|
|
||||||
"right": {
|
|
||||||
"name": "Right Column"
|
|
||||||
},
|
|
||||||
"sidebar": {
|
|
||||||
"name": "Sidebar"
|
|
||||||
},
|
|
||||||
"footer": {
|
|
||||||
"acquired": true,
|
|
||||||
"name": "Footer"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"name": "Two columns + sidebar",
|
|
||||||
"template": "combo/page_template_2cols_sidebar.html"
|
|
||||||
},
|
|
||||||
"two-columns": {
|
|
||||||
"placeholders": {
|
|
||||||
"content": {
|
|
||||||
"name": "Left Column"
|
|
||||||
},
|
|
||||||
"right": {
|
|
||||||
"name": "Right Column"
|
|
||||||
},
|
|
||||||
"footer": {
|
|
||||||
"acquired": true,
|
|
||||||
"name": "Footer"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"name": "Two columns",
|
|
||||||
"template": "combo/page_template_2cols.html"
|
|
||||||
},
|
|
||||||
"communes": {
|
|
||||||
"name": "Commune",
|
|
||||||
"template": "combo/page_template_commune.html",
|
|
||||||
"placeholders": {
|
|
||||||
"headertitle": {
|
|
||||||
"name": "Header Title"
|
|
||||||
},
|
|
||||||
"headerlogo": {
|
|
||||||
"name": "Header Logo"
|
|
||||||
},
|
|
||||||
"content": {
|
|
||||||
"name": "Left Column"
|
|
||||||
},
|
|
||||||
"right": {
|
|
||||||
"name": "Right Column"
|
|
||||||
},
|
|
||||||
"footer": {
|
|
||||||
"name": "Footer",
|
|
||||||
"acquired": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,30 +0,0 @@
|
||||||
{% extends "combo/page_template.html" %}
|
|
||||||
{% load combo %}
|
|
||||||
|
|
||||||
{% block bodyargs %}
|
|
||||||
class="template-commune"
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block header-title %}
|
|
||||||
<div id="header-logo">
|
|
||||||
{% placeholder "headerlogo" %}
|
|
||||||
</div>
|
|
||||||
<div id="header-title">
|
|
||||||
{% placeholder "headertitle" %}
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block nav %}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block combo-content %}
|
|
||||||
<div id="columns">
|
|
||||||
<div id="left">
|
|
||||||
{% placeholder "content" %}
|
|
||||||
</div>
|
|
||||||
<div id="right">
|
|
||||||
{% placeholder "right" %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,4 +0,0 @@
|
||||||
[options]
|
|
||||||
workflow-global-actions = true
|
|
||||||
workflow-criticality-levels = true
|
|
||||||
query_string_allowed_vars = commune
|
|
|
@ -1,11 +0,0 @@
|
||||||
{
|
|
||||||
"variables": {
|
|
||||||
"theme_color": "#D1351C",
|
|
||||||
"email_signature": "Ce service de mise en relation avec votre collectivit\u00e9 vous est propos\u00e9 par le D\u00e9partement des Hautes-Alpes.",
|
|
||||||
"global_title": "Compte usager",
|
|
||||||
"css_variant": "hautes-alpes",
|
|
||||||
"no_extra_js": "True",
|
|
||||||
"theme": "hautes-alpes",
|
|
||||||
"default_from_email": "ne-pas-repondre@hautes-alpes.fr"
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,62 +0,0 @@
|
||||||
server {
|
|
||||||
listen 443 ssl;
|
|
||||||
server_name ~^(?<ville>.+)\.collectivites-hautes-alpes-test\.entrouvert\.org$;
|
|
||||||
|
|
||||||
include includes/ssl.conf;
|
|
||||||
include includes/wildcard.test.entrouvert.org.conf;
|
|
||||||
|
|
||||||
|
|
||||||
access_log /var/log/nginx/wildcard-collectivites-hautes-alpes-test.entrouvert.org-access.log combined_full;
|
|
||||||
error_log /var/log/nginx/wildcard-collectivites-hautes-alpes-test.entrouvert.org-error.log;
|
|
||||||
|
|
||||||
|
|
||||||
location ~ ^/static/(.+)$ {
|
|
||||||
root /;
|
|
||||||
try_files /var/lib/combo/tenants/portail-usager-hautes-alpes.test.entrouvert.org/static/$1
|
|
||||||
/var/lib/combo/tenants/portail-usager-hautes-alpes.test.entrouvert.org/theme/static/$1
|
|
||||||
/var/lib/combo/collectstatic/$1
|
|
||||||
=404;
|
|
||||||
add_header Access-Control-Allow-Origin *;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
location ~ ^/media/(.+)$ {
|
|
||||||
alias /var/lib/combo/tenants/portail-usager-hautes-alpes.test.entrouvert.org/media/$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /robots.txt {
|
|
||||||
alias /var/lib/combo/www/robots.txt;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/$ {
|
|
||||||
proxy_pass http://unix:/var/run/combo/combo.sock:/$ville/;
|
|
||||||
proxy_set_header Host portail-usager-hautes-alpes.test.entrouvert.org;
|
|
||||||
proxy_set_header X-Forwarded-SSL on;
|
|
||||||
proxy_set_header X-Forwarded-Protocol ssl;
|
|
||||||
proxy_set_header X-Forwarded-Proto https;
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
||||||
}
|
|
||||||
|
|
||||||
location / {
|
|
||||||
proxy_pass http://unix:/var/run/combo/combo.sock:/;
|
|
||||||
proxy_set_header Host portail-usager-hautes-alpes.test.entrouvert.org;
|
|
||||||
proxy_set_header X-Forwarded-SSL on;
|
|
||||||
proxy_set_header X-Forwarded-Protocol ssl;
|
|
||||||
proxy_set_header X-Forwarded-Proto https;
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 80;
|
|
||||||
server_name *.collectivites-hautes-alpes-test.entrouvert.org;
|
|
||||||
|
|
||||||
access_log /var/log/nginx/wildcard-collectivites-hautes-alpes-test.entrouvert.org-access.log combined_full;
|
|
||||||
error_log /var/log/nginx/wildcard-collectivites-hautes-alpes-test.entrouvert.org-error.log;
|
|
||||||
|
|
||||||
return 302 https://$host$request_uri;
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue