def _process(G, name, value):
 if isinstance(value, str):
  value = to_unicode(value)
 complex_value_str = None
 if (isinstance(value, list) or isinstance(value, dict)):
  complex_value_str = str(value)
 is_jinja_expr = (jinja_utils.is_jinja_expression(value) or jinja_utils.is_jinja_expression(complex_value_str))
 if is_jinja_expr:
  G.add_node(name, template=value)
  template_ast = ENV.parse(value)
  LOG.debug('Template ast: %s', template_ast)
  dependencies = meta.find_undeclared_variables(template_ast)
  LOG.debug('Dependencies: %s', dependencies)
  if dependencies:
   for dependency in dependencies:
    G.add_edge(dependency, name)
 else:
  G.add_node(name, value=value)

def _process ( G , name , value ) : if isinstance ( value , str ) : value = to_unicode ( value ) complex_value_str = None if ( isinstance ( value , list ) or isinstance ( value , dict ) ) : complex_value_str = str ( value ) is_jinja_expr = ( jinja_utils . is_jinja_expression ( value ) or jinja_utils . is_jinja_expression ( complex_value_str ) ) if is_jinja_expr : G . add_node ( name , template = value ) template_ast = ENV . parse ( value ) LOG . debug ( 'Template ast: %s' , template_ast ) dependencies = meta . find_undeclared_variables ( template_ast ) LOG . debug ( 'Dependencies: %s' , dependencies ) if dependencies : for dependency in dependencies : G . add_edge ( dependency , name ) else : G . add_node ( name , value = value )
determines whether parameter is a template or a value .