Commit Graph

12 Commits

Author SHA1 Message Date
Takashi Kajinami dd046e42f8 Bump hacking
The version currently used is too old.

Also fix E275 "missing whitespace after keyword" newly detected.

Change-Id: I37e88d6b6bd707e9cc626e3625b9c034c7b5c553
2024-01-17 01:22:22 +09:00
Zuul 2cb96202d0 Merge "Replace deprecated ugettext_lazy and ungettext_lazy" 2022-05-24 09:20:50 +00:00
Takashi Kajinami e976bf9765 Replace deprecated ugettext_lazy and ungettext_lazy
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
2022-05-24 05:11:41 +00:00
Keigo Noha 792f8cbe4a Set False to include_empty_option
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
2021-04-15 12:03:52 +09:00
Pavlo Shchelokovskyy 953369c870 Move image_field_data method in-tree
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
2020-09-02 20:01:21 +03:00
Andreas Jaeger 7103caa069 Remove six usage (1/2)
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
2020-01-11 20:54:19 +01:00
mareklycka 837a40e3b7 Enforces unicode decoding of data
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
2019-08-06 12:50:34 +00:00
JiyeYu 2fe9ca1965 Modified typo on Change Stack's pop-up Window.
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
2018-05-11 17:39:48 +09:00
Xinni Ge ff7f63b7ff Submit generated template file directly
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
2017-11-27 13:24:21 +09:00
Keiichi Hikita 7201c1835f In future, Horizon team is planning to remove heat relevant logic like,
- 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
2017-11-16 10:01:17 +09:00
Keiichi Hikita 6e046521a0 update files by working files. 2017-10-06 14:44:50 +09:00
Keiichi Hikita ce9ca6e62b move files. 2017-10-06 14:42:23 +09:00