+ distro = session['image'].distro
+ ostype = session['image'].ostype
+ name = WizardInputPage(
+ "ImageName", "Image Name", "Please provide a name for the image:",
+ title="Image Name", init=ostype if distro == "unknown" else distro)
+
+ descr = WizardInputPage(
+ "ImageDescription", "Image Description",
+ "Please provide a description for the image:",
+ title="Image Description", init=session['metadata']['DESCRIPTION'] if
+ 'DESCRIPTION' in session['metadata'] else '')
+
+ registration = WizardRadioListPage(
+ "ImageRegistration", "Registration Type",
+ "Please provide a registration type:",
+ [("Private", "Image is accessible only by this user"),
+ ("Public", "Everyone can create VMs from this image")],
+ title="Registration Type", default="Private")
+
+ def validate_account(token):
+ """Check if a token is valid"""