MCPcopy Create free account
hub / github.com/apache/solr / jinjaify

Method jinjaify

dev-tools/scripts/releaseWizard.py:1774–1789  ·  view source on GitHub ↗
(self, data, join=False)

Source from the content-addressed store, hash-verified

1772 return myvars
1773
1774 def jinjaify(self, data, join=False):
1775 if not data:
1776 return None
1777 v = self.get_vars()
1778 if self.todo_id:
1779 v.update(state.get_todo_by_id(self.todo_id).get_vars_and_state())
1780 if isinstance(data, list):
1781 if join:
1782 return expand_jinja(" ".join(data), v)
1783 else:
1784 res = []
1785 for rf in data:
1786 res.append(expand_jinja(rf, v))
1787 return res
1788 else:
1789 return expand_jinja(data, v)
1790
1791
1792def abbreviate_homedir(line):

Callers 5

runMethod · 0.95
get_root_folderMethod · 0.95
get_commands_textMethod · 0.95
get_run_textMethod · 0.95
get_remove_filesMethod · 0.95

Calls 7

get_varsMethod · 0.95
expand_jinjaFunction · 0.85
get_vars_and_stateMethod · 0.80
get_todo_by_idMethod · 0.80
updateMethod · 0.65
appendMethod · 0.65
joinMethod · 0.45

Tested by

no test coverage detected