matrixsynapse: Minor review changes

- Change the configuration minimally and more reliably.

- Rename the Apache configuration and add comments.

- Rename firewalld description file.

- Enable the matrixsynapse module by default.

- Improve category, description texts and warnings.

- Remove unused variable.

- Add missing docstrings.

- Minor styling updates.

- Fix i18n in templates.

- Fix showing description in main service view.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa committed 2017-04-05 12:58:45 +05:30
1 parent fd3df85ace
commit 93c151ab2b
12 files changed
+175 -147

No files matched your search

+4 -3
View File
@@ -16,7 +16,7 @@
#
"""
Forms for configuring matrix-synapse
Forms for configuring matrix-synapse.
"""
from django import forms
@@ -26,12 +26,13 @@ from plinth.modules import matrixsynapse
class MatrixSynapseForm(forms.Form):
"""Form to do initial configuration of matrix-synapse"""
"""Form to do initial configuration of matrix-synapse."""
domain_name = forms.ChoiceField(
label=_('Select the domain name to be used for Matrix'),
label=_('Select the domain name'),
choices=[]
)
def __init__(self, *args, **kwargs):
"""Initialize the form object."""
super().__init__(*args, **kwargs)
self.fields['domain_name'].choices = matrixsynapse.get_domain_names()