File: django-4-ugettext_lazy-is-removed.patch

package info (click to toggle)
zaqar-ui 13.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 944 kB
  • sloc: javascript: 2,439; python: 719; sh: 55; makefile: 34
file content (72 lines) | stat: -rw-r--r-- 2,708 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
Description: Django 4: ugettext_lazy is removed
Author: Thomas Goirand <zigo@debian.org>
Bug-Debian: https://bugs.debian.org/1015135
Forwarded: https://review.opendev.org/c/openstack/zaqar-ui/+/851391
Last-Update: 2022-07-28

--- zaqar-ui-12.0.0.orig/zaqar_ui/api/rest/zaqar.py
+++ zaqar-ui-12.0.0/zaqar_ui/api/rest/zaqar.py
@@ -15,7 +15,7 @@
 import json
 import yaml
 
-from django.utils.translation import ugettext_lazy as _
+from django.utils.translation import gettext_lazy as _
 from django.views import generic
 from openstack_dashboard.api.rest import urls
 from openstack_dashboard.api.rest import utils as rest_utils
--- zaqar-ui-12.0.0.orig/zaqar_ui/content/pool_flavors/panel.py
+++ zaqar-ui-12.0.0/zaqar_ui/content/pool_flavors/panel.py
@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-from django.utils.translation import ugettext_lazy as _
+from django.utils.translation import gettext_lazy as _
 
 import horizon
 
--- zaqar-ui-12.0.0.orig/zaqar_ui/content/pools/panel.py
+++ zaqar-ui-12.0.0/zaqar_ui/content/pools/panel.py
@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-from django.utils.translation import ugettext_lazy as _
+from django.utils.translation import gettext_lazy as _
 
 import horizon
 
--- zaqar-ui-12.0.0.orig/zaqar_ui/content/queues/panel.py
+++ zaqar-ui-12.0.0/zaqar_ui/content/queues/panel.py
@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-from django.utils.translation import ugettext_lazy as _
+from django.utils.translation import gettext_lazy as _
 
 import horizon
 
--- zaqar-ui-12.0.0.orig/zaqar_ui/enabled/_1510_project_messaging_group.py
+++ zaqar-ui-12.0.0/zaqar_ui/enabled/_1510_project_messaging_group.py
@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-from django.utils.translation import ugettext_lazy as _
+from django.utils.translation import gettext_lazy as _
 
 # The slug of the panel group to be added to HORIZON_CONFIG. Required.
 PANEL_GROUP = 'messaging'
--- zaqar-ui-12.0.0.orig/zaqar_ui/enabled/_2510_admin_messaging_group.py
+++ zaqar-ui-12.0.0/zaqar_ui/enabled/_2510_admin_messaging_group.py
@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-from django.utils.translation import ugettext_lazy as _
+from django.utils.translation import gettext_lazy as _
 
 # The slug of the panel group to be added to HORIZON_CONFIG. Required.
 PANEL_GROUP = 'messaging'