Module user_input
[hide private]
[frames] | no frames]

Module user_input

source code

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:


Author: Brian Bockelman

Classes [hide private]
  InputHandler
  GipQuestions
Functions [hide private]
 
oneOfList(answer, list) source code
 
makeBoolean(answer) source code
 
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