parameters: (self, task_generator, attribute, *modifiers)
return_statement: return result
docstring: Helper for getting an attribute from the task gen with optional modifiers
docstring_summary: Helper for getting an attribute from the task gen with optional modifiers
docstring_tokens: Helper for getting an attribute from the task gen with optional modifiers
function: def collect_task_gen_attrib(self, task_generator, attribute, *modifiers):
          """
          Helper for getting an attribute from the task gen with optional modifiers
          """
          result = to_list(getattr(task_generator, attribute, []))
          for mod in modifiers:
              mod_attrib = '{}_{}'.format(mod, attribute)
              result.extend(to_list(getattr(task_generator, mod_attrib, [])))
          return result
function_tokens: def collect_task_gen_attrib ( self , task_generator , attribute , * modifiers ) : result = to_list ( getattr ( task_generator , attribute , [ ] ) ) for mod in modifiers : mod_attrib = '{}_{}' . format ( mod , attribute ) result . extend ( to_list ( getattr ( task_generator , mod_attrib , [ ] ) ) ) return result