def to_hgrid(item, node, path):
 safe_name = quote(item['title'].encode('utf-8'), safe='')
 path = os.path.join(path, safe_name)
 serialized = {'path': path, 'id': item['id'], 'kind': 'folder', 'name': safe_name, 'addon': 'googledrive', 'urls': build_googledrive_urls(item, node, path=path)}
 return serialized

def to_hgrid ( item , node , path ) : safe_name = quote ( item [ 'title' ] . encode ( 'utf-8' ) , safe = '' ) path = os . path . join ( path , safe_name ) serialized = { 'path' : path , 'id' : item [ 'id' ] , 'kind' : 'folder' , 'name' : safe_name , 'addon' : 'googledrive' , 'urls' : build_googledrive_urls ( item , node , path = path ) } return serialized
converts a node into a rubeus grid format .