root/IoTa-Installer/lib/common.py @ bf9c3717
2e0a7cb1 | Sylvain L. Sauvage | # -*- coding: utf-8 -*-
|
|
#
|
|||
# This program is a part of the IoTa project.
|
|||
#
|
|||
19b58bab | Rémy Ménard | # Copyright © 2012-2013 Université de Caen Basse-Normandie, GREYC
|
|
#
|
|||
2e0a7cb1 | Sylvain L. Sauvage | # This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|||
# the Free Software Foundation, either version 3 of the License, or
|
|||
# (at your option) any later version.
|
|||
#
|
|||
# This program is distributed in the hope that it will be useful,
|
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|||
# GNU General Public License for more details.
|
|||
# <http://www.gnu.org/licenses/>
|
|||
#
|
|||
# See AUTHORS for a list of contributors.
|
|||
#
|
|||
import installer
|
|||
from config import CONFIG
|
|||
96454bcd | Sylvain L. Sauvage | ||
2e0a7cb1 | Sylvain L. Sauvage | class GlobalConfigurer(installer.Configurer):
|
|
def __init__(self):
|
|||
installer.Configurer.__init__(self, "Global", "global", [
|
|||
96454bcd | Sylvain L. Sauvage | ("Enter this server hostname (as it will be known to the clients)", "global", "host", {}),
|
|
19b58bab | Rémy Ménard | ("Enter the anonymous user identity", "global", "anonymous_user", {}),
|
|
("Is the TLS client ID used?", "global", "use_tls_id", {"type": "YN"}),
|
|||
("Enter the default user identity", "global", "default_user", {"unless": ("global", "use_tls_id")})
|
|||
2e0a7cb1 | Sylvain L. Sauvage | ])
|