def __call__(self, value, context, murano_class): new_context = self._create_context(context, murano_class) new_context.set_data(context.get_data('$')) self._current_obj = None self._current_obj_name = None property = self._expression.evaluate(context=new_context) property.set(value)
def _name(context): name = context.get_data()[ catalog_forms.WorkflowManagementForm.name]['application_name'] return name
def _cast(context, value, type): if not '.' in type: murano_class = context.get_data('$?type') type = murano_class.namespace_resolver.resolve_name(type) class_loader = helpers.get_class_loader(context) return value.cast(class_loader.get_class(type))