Revision 121f3bc0 image_creator/dialog_menu.py
b/image_creator/dialog_menu.py | ||
---|---|---|
1 |
#!/usr/bin/env python
|
|
2 |
|
|
1 |
# -*- coding: utf-8 -*-
|
|
2 |
# |
|
3 | 3 |
# Copyright 2012 GRNET S.A. All rights reserved. |
4 | 4 |
# |
5 | 5 |
# Redistribution and use in source and binary forms, with or |
... | ... | |
33 | 33 |
# interpreted as representing official policies, either expressed |
34 | 34 |
# or implied, of GRNET S.A. |
35 | 35 |
|
36 |
"""This module implements the "expert" mode of the dialog-based version of |
|
37 |
snf-image-creator. |
|
38 |
""" |
|
39 |
|
|
36 | 40 |
import os |
37 | 41 |
import textwrap |
38 | 42 |
import StringIO |
... | ... | |
313 | 317 |
if code in (d.DIALOG_CANCEL, d.DIALOG_ESC): |
314 | 318 |
continue |
315 | 319 |
if len(answer) == 0 and "account" in session: |
316 |
del session["account"]
|
|
320 |
del session["account"] |
|
317 | 321 |
else: |
318 | 322 |
token = answer.strip() |
319 | 323 |
session['account'] = Kamaki.get_account(token) |
Also available in: Unified diff