The version currently used is too old.
Also fix E275 "missing whitespace after keyword" newly detected.
Change-Id: I37e88d6b6bd707e9cc626e3625b9c034c7b5c553
The ugettext_lazy method and the ungettext_lazy method are both
deprecated since Django 3.0[1].
These were already replaced in Horizon repo by [2].
[1] https://docs.djangoproject.com/en/3.0/releases/3.0/#id3
[2] cd7c1b5110fe1f64cd9dfbeb1072b37912d0efee
Change-Id: Iee48af32956787cb4e16601fea34570f63df511c
In _populate_custom_choices(), all methods called at the method have
True as a second argument. It means that the default values sepcified
in a stack are not shown as default when launch stack form.
The fileds always show 'Select Flavor/Image/Network'.
Users doesn't expect to choose default value by hand.
This change shows the default values defined at a template.
Also, image_field_data() doesn't use parameter, include_empty_option.
This change modfies the method to change the behavior based on the
parameter.
Closes-Bug: #1619465
Change-Id: I4b6bef322a668a805abcd4bc472d30f6d1df3a0a
this was removed in Horizon as 'not needed' in
26eebd4abbbabc1475bae61c51d1cfcf14dba770
however it is used to form a hint for glance.image constraint
in heat-dashboard.
Just copy-paste the method as it existed in horizon with minimal
adaptations.
Change-Id: I23fd3f45f0ce5b67691991336e727c377ca36281
This repo does not support Python 2 anymore, so we don't need
six for compatibility between Python2 and 3, convert six usage to Python
3 code.
This changes everything besides urllib.
Change-Id: I43f76bc07d846341c1f5da69614e2be51ee05e30
Needed-By: https://review.opendev.org/701743
The underlying APIs changed between Python2 and Python3, where
once they returned a string, they now return bytes. This change
enforces the decoding of the returned value as a UTF-8. Failure
to decode is handled by the existing exception handling.
Tests were updated to mimic the new API.
Change-Id: I98b474840a163f60e98aed0f75bc6b9df2a9aa00
Story: 2003343
Task: 24381
In stack update's pop-up window, the description and form help text is
still using creation, not updating. That's not good.
Change-Id: I81c839f52918da276125f377ea829c3da8b3c4a8
Task: #18912
Story: #1767266
Redirect from the template generation page to stack list page
and open stack creation modal directly.
Referenced files of the template will be stored in a hidden
field as a json string.
Change-Id: I58e2ec4e215670463504305a01ed33a6766067f6
- Heat GUI part
- API wrapper client
- API rest endpoint creator (like api/rest/heat)
According to above changes, I've fixed all unittest
that can work without Heat relevant logic in Horizon.
Change-Id: I7b8c61275e1fef9e27a34d7e65693ee00d07110d