def define_plugin_entries(groups):
 result = dict()
 for (group, modules) in groups:
  tempo = []
  for (module_name, names) in modules:
   tempo.extend([define_plugin_entry(name, module_name) for name in names])
  result[group] = tempo
 return result

def define_plugin_entries ( groups ) : result = dict ( ) for ( group , modules ) in groups : tempo = [ ] for ( module_name , names ) in modules : tempo . extend ( [ define_plugin_entry ( name , module_name ) for name in names ] ) result [ group ] = tempo return result
helper to all groups for plugins .