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:
ellen 2017-06-27 13:39:12 -04:00
parent 22c36f1e6a
commit 35685a469e
1 changed files with 2 additions and 0 deletions

View File

@ -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) \