Commit 1e92e97d authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Update Changelog and version tag

parent 6e4ca4ec
CHANGELOG for hotfix 0.11.4
Unicode pithos filenames bug fix
CHANGELOG for hotfix 0.11.3 CHANGELOG for hotfix 0.11.3
Fix bug with image meta set Fix bug with image meta set
......
...@@ -152,9 +152,9 @@ def print_dict( ...@@ -152,9 +152,9 @@ def print_dict(
k = ('%s' % k).strip() k = ('%s' % k).strip()
if k in exclude: if k in exclude:
continue continue
print_str = u' ' * indent print_str = ' ' * indent
print_str += u'%s.' % (i + 1) if with_enumeration else u'' print_str += '%s.' % (i + 1) if with_enumeration else ''
print_str += u'%s:' % k print_str += '%s:' % k
if isinstance(v, dict): if isinstance(v, dict):
out.write(print_str + '\n') out.write(print_str + '\n')
print_dict( print_dict(
...@@ -166,7 +166,7 @@ def print_dict( ...@@ -166,7 +166,7 @@ def print_dict(
v, exclude, indent + INDENT_TAB, v, exclude, indent + INDENT_TAB,
recursive_enumeration, recursive_enumeration, out) recursive_enumeration, recursive_enumeration, out)
else: else:
out.write(u'%s %s\n' % (print_str, v)) out.write('%s %s\n' % (print_str, v))
out.flush() out.flush()
...@@ -199,13 +199,13 @@ def print_list( ...@@ -199,13 +199,13 @@ def print_list(
assert indent >= 0, 'print_list indent must be >= 0' assert indent >= 0, 'print_list indent must be >= 0'
for i, item in enumerate(l): for i, item in enumerate(l):
print_str = u' ' * indent print_str = ' ' * indent
print_str += u'%s.' % (i + 1) if with_enumeration else u'' print_str += '%s.' % (i + 1) if with_enumeration else ''
if isinstance(item, dict): if isinstance(item, dict):
if with_enumeration: if with_enumeration:
out.write(print_str + '\n') out.write(print_str + '\n')
elif i and i < len(l): elif i and i < len(l):
out.write(u'\n') out.write('\n')
print_dict( print_dict(
item, exclude, item, exclude,
indent + (INDENT_TAB if with_enumeration else 0), indent + (INDENT_TAB if with_enumeration else 0),
...@@ -214,7 +214,7 @@ def print_list( ...@@ -214,7 +214,7 @@ def print_list(
if with_enumeration: if with_enumeration:
out.write(print_str + '\n') out.write(print_str + '\n')
elif i and i < len(l): elif i and i < len(l):
out.write(u'\n') out.write('\n')
print_list( print_list(
item, exclude, indent + INDENT_TAB, item, exclude, indent + INDENT_TAB,
recursive_enumeration, recursive_enumeration, out) recursive_enumeration, recursive_enumeration, out)
...@@ -222,7 +222,7 @@ def print_list( ...@@ -222,7 +222,7 @@ def print_list(
item = ('%s' % item).strip() item = ('%s' % item).strip()
if item in exclude: if item in exclude:
continue continue
out.write(u'%s%s\n' % (print_str, item)) out.write('%s%s\n' % (print_str, item))
out.flush() out.flush()
out.flush() out.flush()
...@@ -247,24 +247,24 @@ def print_items( ...@@ -247,24 +247,24 @@ def print_items(
return return
if not (isinstance(items, dict) or isinstance(items, list) or isinstance( if not (isinstance(items, dict) or isinstance(items, list) or isinstance(
items, tuple)): items, tuple)):
out.write(u'%s\n' % items) out.write('%s\n' % items)
out.flush() out.flush()
return return
for i, item in enumerate(items): for i, item in enumerate(items):
if with_enumeration: if with_enumeration:
out.write(u'%s. ' % (i + 1)) out.write('%s. ' % (i + 1))
if isinstance(item, dict): if isinstance(item, dict):
item = dict(item) item = dict(item)
title = sorted(set(title).intersection(item)) title = sorted(set(title).intersection(item))
pick = item.get if with_redundancy else item.pop pick = item.get if with_redundancy else item.pop
header = u' '.join(u'%s' % pick(key) for key in title) header = ' '.join('%s' % pick(key) for key in title)
out.write((unicode(bold(header) if header else '') + '\n')) out.write((unicode(bold(header) if header else '') + '\n'))
print_dict(item, indent=INDENT_TAB, out=out) print_dict(item, indent=INDENT_TAB, out=out)
elif isinstance(item, list) or isinstance(item, tuple): elif isinstance(item, list) or isinstance(item, tuple):
print_list(item, indent=INDENT_TAB, out=out) print_list(item, indent=INDENT_TAB, out=out)
else: else:
out.write(u' %s\n' % item) out.write(' %s\n' % item)
out.flush() out.flush()
out.flush() out.flush()
...@@ -389,7 +389,7 @@ def ask_user(msg, true_resp=('y', ), out=stdout, user_in=stdin): ...@@ -389,7 +389,7 @@ def ask_user(msg, true_resp=('y', ), out=stdout, user_in=stdin):
""" """
yep = ', '.join(true_resp) yep = ', '.join(true_resp)
nope = '<not %s>' % yep if 'n' in true_resp or 'N' in true_resp else 'N' nope = '<not %s>' % yep if 'n' in true_resp or 'N' in true_resp else 'N'
out.write(u'%s [%s/%s]: ' % (msg, yep, nope)) out.write('%s [%s/%s]: ' % (msg, yep, nope))
out.flush() out.flush()
user_response = user_in.readline() user_response = user_in.readline()
return user_response[0].lower() in [s.lower() for s in true_resp] return user_response[0].lower() in [s.lower() for s in true_resp]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment