A custom datatype, capable of parsing conf files in the following format:
[CONNECTION]
# the name you use to identify this connection. must be unique.
name = demo
# information use to specify the connection type.
type = TCP/IP
auth = password
# the following fields are required for connection to a postgres database
host = localhost
port = 5432
db_name = openmolar_demo
user = om_demo
password = password
Bases: object
A custom data type to store information on how the application can connect to a postgres database.
the default connection is TCP/IP (ie. username and password connection to a specific database name on a known host and port)
an attribute to store the location of the conf file for this connection
returns params for a TCP_IP connection on localhost:5432 to openmolar_demo with the default user and password.
prompt the user for a password. (should be overwritten if subclassing by a gui)
perhaps the user got the password wrong? calling this puts it back to state