Revision 09743d3a image_creator/dialog_main.py
b/image_creator/dialog_main.py | ||
---|---|---|
316 | 316 |
return False |
317 | 317 |
|
318 | 318 |
if "upload" not in session: |
319 |
d.msgbox("You need to have an image uploaded to pithos+ before you " |
|
320 |
"can register it to cyclades", |
|
321 |
width=MSGBOX_WIDTH) |
|
319 |
d.msgbox("You need to upload the image to pithos+ before you can " |
|
320 |
"register it to cyclades", width=MSGBOX_WIDTH) |
|
322 | 321 |
return False |
323 | 322 |
|
324 | 323 |
while 1: |
... | ... | |
362 | 361 |
choices = [("Account", "Change your ~okeanos username: %s" % account), |
363 | 362 |
("Token", "Change your ~okeanos token: %s" % token), |
364 | 363 |
("Upload", "Upload image to pithos+"), |
365 |
("Register", "Register image to cyclades: %s" % upload)] |
|
364 |
("Register", "Register the image to cyclades: %s" % upload)]
|
|
366 | 365 |
|
367 | 366 |
(code, choice) = d.menu( |
368 | 367 |
text="Choose one of the following or press <Back> to go back.", |
... | ... | |
480 | 479 |
# ADD button |
481 | 480 |
elif code == d.DIALOG_EXTRA: |
482 | 481 |
add_property(session) |
482 |
elif code == 'help': |
|
483 |
help_file = get_help_file("image_properties") |
|
484 |
assert os.path.exists(help_file) |
|
485 |
d.textbox(help_file, title="Image Properties", width=70, height=40) |
|
483 | 486 |
|
484 | 487 |
|
485 | 488 |
def delete_properties(session): |
Also available in: Unified diff