def collect_addon_js(node, visited=None, filename='files.js', config_entry='files'):
 js = []
 for addon_config in settings.ADDONS_AVAILABLE_DICT.values():
  js.extend(addon_config.include_js.get(config_entry, []))
  js_path = paths.resolve_addon_path(addon_config, filename)
  if js_path:
   js.append(js_path)
 return js

def collect_addon_js ( node , visited = None , filename = 'files.js' , config_entry = 'files' ) : js = [ ] for addon_config in settings . ADDONS_AVAILABLE_DICT . values ( ) : js . extend ( addon_config . include_js . get ( config_entry , [ ] ) ) js_path = paths . resolve_addon_path ( addon_config , filename ) if js_path : js . append ( js_path ) return js
collect javascript includes for all add-ons implementing hgrid views .