def string_from_path(path):
 if (not path):
  return ''
 path = [_path_part_escape(compat.to_unicode(s)) for s in path]
 if (not all(map(RE_ELEMENT.match, path))):
  get_logger().warn(("Can not convert path to string: keys contain invalid characters (should be alpha-numeric or underscore) '%s'" % path))
 string = PATH_STRING_SEPARATOR_CHAR.join(path)
 return string

def string_from_path ( path ) : if ( not path ) : return '' path = [ _path_part_escape ( compat . to_unicode ( s ) ) for s in path ] if ( not all ( map ( RE_ELEMENT . match , path ) ) ) : get_logger ( ) . warn ( ( "Can not convert path to string: keys contain invalid characters (should be alpha-numeric or underscore) '%s'" % path ) ) string = PATH_STRING_SEPARATOR_CHAR . join ( path ) return string
returns a string representing dimension path .