OMServerConfig
Incomplete documentation - sorry!
Note
Neil - please put some data in technical/class_headings/OMServerConfig.rst
methods and attributes
-
class lib_openmolar.server.misc.om_server_config.OMServerConfig[source]
Bases: ConfigParser.SafeConfigParser
-
__init__()[source]
-
conf_dir
-
config_version[source]
return the version of the stored conf file.
-
is_current[source]
returns a boolean stating whether the config file is up to date.
-
is_installed[source]
see if the config file is installed.
This is checked every server startup, and if returns False,
re-installs stuff.. which could be devastating!
-
location[source]
-
managers[source]
a list of user/passwords who authenticate with the server
passwords should be md5 hashes.
-
new_config()[source]
-
port[source]
-
postgres_host[source]
parse the conf file for the main postgresql location
-
postgres_pass[source]
parse the conf file for the main postgresql password
-
postgres_port[source]
parse the conf file for the main postgresql password
-
postgres_user[source]
parse the conf file for the main postgresql user
-
private_key[source]
the location of the private key
(for ssl connections with openmolar-server)
-
pub_key[source]
the location of the public key
(for ssl connections with openmolar-server)
-
update()[source]
move up to the lastest version
-
write(f=None)[source]