Make UI forms data accessible using $forms variable
When creating context, save the context to the '$forms' variable as well as to '$'. The 'S' contents may change during evalation of collections and their methods but '$forms' will remain the same. This allows the forms data to be used as input to a collection's method. Change-Id: I4b32aa53cd7b56c07af7e593ead1736d81766ae7 Closes-Bug: 1700790
This commit is contained in:
parent
22c36f1e6a
commit
35685a469e
@ -126,6 +126,8 @@ class Service(object):
|
||||
def extract_attributes(self):
|
||||
context = self.context.create_child_context()
|
||||
context['$'] = self.cleaned_data
|
||||
context['$forms'] = self.cleaned_data
|
||||
|
||||
for name, template in six.iteritems(self.templates):
|
||||
context[name] = template
|
||||
if semantic_version.Version.coerce(self.spec_version) \
|
||||
|
Loading…
x
Reference in New Issue
Block a user