4 class Controller(object):
5 def __init__(self, dir, schema, input):
9 def ask(self, options):
11 Interactively ask the user for information.
13 self.schema.commit(self.dir)
14 self.schema.fill(options)
15 for name, arg in self.schema.args.items():
16 if name in self.schema.provides:
19 val = self.input.inputbox(arg.help + "\n\n" + name + ":")
21 val = self.input.passwordbox(arg.help + "\n\n" + name + " (cursor will not move):")
22 setattr(options, name, val)
23 self.schema.load(options)