Revision ae75584f tools/store

b/tools/store
47 47
import time as _time
48 48
import os
49 49

  
50
#DEFAULT_HOST = 'pithos.dev.grnet.gr'
51
DEFAULT_HOST = '127.0.0.1:8000'
50
DEFAULT_HOST = 'pithos.dev.grnet.gr'
51
#DEFAULT_HOST = '127.0.0.1:8000'
52 52
DEFAULT_API = 'v1'
53 53

  
54 54
_cli_commands = {}
......
685 685
    print '\nCommands:\n' + '\n'.join(sorted(commands))
686 686

  
687 687
def print_dict(d, header='name', f=stdout, detail=True):
688
    header = header in d and header or 'subdir'
688
    header = header if header in d else 'subdir'
689 689
    if header and header in d:
690
        f.write('%s\n' %d.pop(header))
690
        f.write('%s\n' %d.pop(header).encode('utf8'))
691 691
    if detail:
692 692
        patterns = ['^x_(account|container|object)_meta_(\w+)$']
693 693
        patterns.append(patterns[0].replace('_', '-'))

Also available in: Unified diff