comparison twisted/plugins/libervia.py @ 446:c406e46fe9c0

server_side: update the connection mechanism to handle profile passwords
author souliane <souliane@mailoo.org>
date Wed, 07 May 2014 19:46:58 +0200
parents eca26481176f
children
comparison
equal deleted inserted replaced
445:c0ff91cabea0 446:c406e46fe9c0
54 # optArgs is not really useful in our case, we need more than a flag 54 # optArgs is not really useful in our case, we need more than a flag
55 optParameters = opt_params 55 optParameters = opt_params
56 56
57 def __init__(self): 57 def __init__(self):
58 """You want to read SàT configuration file now in order to overwrite the hard-coded default values. 58 """You want to read SàT configuration file now in order to overwrite the hard-coded default values.
59 This is because the priority is (form lowest to highest): 59 This is because the priority for the usage of the values is (from lowest to highest):
60 - use hard-coded default values 60 - hard-coded default values
61 - use the values from SàT configuration files 61 - values from SàT configuration files
62 - use the values passes on the command line 62 - values passed on the command line
63 If you do it later: after the command line options have been parsed, there's no good way to know 63 If you do it later: after the command line options have been parsed, there's no good way to know
64 if the options values are the hard-coded ones or if they have been passed on the command line. 64 if the options values are the hard-coded ones or if they have been passed on the command line.
65 """ 65 """
66 config = SafeConfigParser() 66 config = SafeConfigParser()
67 config.read(C.CONFIG_FILES) 67 config.read(C.CONFIG_FILES)