5 return text.replace("_", " ").capitalize()
7 class Controller(object):
8 def __init__(self, dir, schema, input):
12 def ask(self, options):
14 Interactively ask the user for information.
16 self.schema.commit(self.dir)
17 self.schema.fill(options)
18 for name, arg in self.schema.args.items():
19 if name in self.schema.provides:
22 val = self.input.inputbox(arg.help + "\n\n" + humanize(name) + ":")
25 val = self.input.passwordbox(arg.help + "\n\n" + humanize(name) + " (cursor will not move):")
26 val2 = self.input.passwordbox("Please enter the password again (cursor will not move):")
28 self.input.msgbox("Passwords didn't match.")
31 setattr(options, name, val)
32 self.schema.load(options)