Allow the characters that kamaki allows
def _check_cloud(session, name, description, url, token):
"""Checks if the provided info for a cloud are valid"""
d = session['dialog']
def _check_cloud(session, name, description, url, token):
"""Checks if the provided info for a cloud are valid"""
d = session['dialog']
- regexp = re.compile('^[a-zA-Z0-9_]+$')
+ regexp = re.compile('^[~@#$:\-\w]+$')
if not re.match(regexp, name):
if not re.match(regexp, name):
- d.msgbox("Allowed characters for name: [a-zA-Z0-9_]", width=WIDTH)
+ d.msgbox("Allowed characters for name: a-zA-Z0-9_~@#$:-", width=WIDTH)
return False
if len(url) == 0:
return False
if len(url) == 0:
from os.path import basename
from kamaki.cli.config import Config
from os.path import basename
from kamaki.cli.config import Config
from kamaki.clients.pithos import PithosClient
from kamaki.clients.astakos import AstakosClient
from kamaki.clients.pithos import PithosClient
from kamaki.clients.astakos import AstakosClient
+try:
+ config = Config()
+except Exception as e:
+ sys.stderr.write("Kamaki config error: %s\n" % str(e))
+ sys.exit(1)