[AIRFLOW-2055] Elaborate on slightly ambiguous documentation

Closes #2999 from AetherUnbound/bugfix/var-doc-
reference
This commit is contained in:
Matthew Bowden 2018-02-03 20:04:01 +01:00 коммит произвёл Fokko Driesprong
Родитель 3f50f6bd5b
Коммит 15b8b7a851
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -1700,7 +1700,7 @@ class TaskInstance(Base, LoggingMixin):
class VariableAccessor:
"""
Wrapper around Variable. This way you can get variables in templates by using
{var.variable_name}.
{var.value.your_variable_name}.
"""
def __init__(self):
self.var = None
@ -1713,6 +1713,10 @@ class TaskInstance(Base, LoggingMixin):
return str(self.var)
class VariableJsonAccessor:
"""
Wrapper around deserialized Variables. This way you can get variables
in templates by using {var.json.your_variable_name}.
"""
def __init__(self):
self.var = None