A simple module for handling user input to configure the GIP.
The GIP uses simple question-and-answer based scripts to attempt to
create a valid configuration for a site. This module takes care of:
|
|
|
|
|
|
|
|
makeInt(answer)
Make sure the anwer to the question is an integer. |
source code
|
|
|
|
validHostname(answer)
Verify that the question's answer is a valid hostname. |
source code
|
|
|
|
validPort(answer)
Verify that the question's answer is a valid port number. |
source code
|
|
|
|
save(cp,
filename='gip.conf',
mode=420,
uid=None,
gid=None)
Save the information in the ConfigParser to gip.conf |
source code
|
|