- name = WizardInputPage("ImageName", "Please provide a name for the image:",
- title="Image Name", init=session['device'].distro)
- descr = WizardInputPage("ImageDescription",
- "Please provide a description for the image:",
- title="Image Description", empty=True,
- init=session['metadata']['DESCRIPTION'] if 'DESCRIPTION' in
- session['metadata'] else '')
- account = WizardInputPage("account",
- "Please provide your ~okeanos account e-mail:",
- title="~okeanos account information", init=Kamaki.get_account())
- token = WizardInputPage("token",
- "Please provide your ~okeanos account token:",
- title="~okeanos account token", init=Kamaki.get_token())
-
- msg = "All necessary information has been gathered. Confirm and Proceed."
- proceed = WizardYesNoPage(msg, title="Confirmation")
+ return account
+
+ account = WizardInputPage(
+ "Account", "Account",
+ "Please provide your ~okeanos authentication token:",
+ title="~okeanos account", init=init_token, validate=validate_account,
+ display=lambda account: account['username'])