def print_data_keys(data, item=None):
 path = (displayable_path(item.path) if item else None)
 formatted = []
 for (key, value) in data.items():
  formatted.append(key)
 if (len(formatted) == 0):
  return
 line_format = u'{0}{{0}}'.format((u' ' * 4))
 if path:
  ui.print_(displayable_path(path))
 for field in sorted(formatted):
  ui.print_(line_format.format(field))

def print_data_keys ( data , item = None ) : path = ( displayable_path ( item . path ) if item else None ) formatted = [ ] for ( key , value ) in data . items ( ) : formatted . append ( key ) if ( len ( formatted ) == 0 ) : return line_format = u'{0}{{0}}' . format ( ( u' ' * 4 ) ) if path : ui . print_ ( displayable_path ( path ) ) for field in sorted ( formatted ) : ui . print_ ( line_format . format ( field ) )
print only the keys for an item .