File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ environment-vars =
124124 VISION_API_URL ${port:vision-api-url}
125125 VISION_AUTH_USERNAME ${port:vision-auth-username}
126126 VISION_AUTH_PASSWORD ${port:vision-auth-password}
127+ MUNICIPALITY_ID ${port:municipality-id}
127128
128129eggs =
129130 ${buildout:eggs}
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ def __init__(
3232 self .vision_api_url = env .get ("VISION_API_URL" , "https://ipa.imio.be/imio/vision/v1/" )
3333 self .vision_auth_username = env .get ("VISION_AUTH_USERNAME" , "" )
3434 self .vision_auth_password = env .get ("VISION_AUTH_PASSWORD" , "" )
35+ self .municipality_id = env .get ("MUNICIPALITY_ID" , "" )
3536
3637 self .instance1_conf = '/plone/parts/instance/etc/zope.conf'
3738 self .instance_amqp_conf = '/plone/parts/instance-amqp/etc/zope.conf'
@@ -62,6 +63,7 @@ def _fix(self, path):
6263 filedata = re .sub (r'VISION_API_URL .*' , 'VISION_API_URL ' + self .vision_api_url , filedata )
6364 filedata = re .sub (r'VISION_AUTH_USERNAME .*' , 'VISION_AUTH_USERNAME ' + self .vision_auth_username , filedata )
6465 filedata = re .sub (r'VISION_AUTH_PASSWORD .*' , 'VISION_AUTH_PASSWORD ' + self .vision_auth_password , filedata )
66+ filedata = re .sub (r'MUNICIPALITY_ID .*' , 'MUNICIPALITY_ID ' + self .municipality_id , filedata )
6567
6668 return filedata
6769
Original file line number Diff line number Diff line change @@ -40,3 +40,4 @@ vision-client-secret = secret
4040vision-api-url = https://api.imio.be/imio/vision/v1/
4141vision-auth-username =
4242vision-auth-password =
43+ municipality-id =
You can’t perform that action at this time.
0 commit comments