Enables the translation of the status on
network topology.
Provides a json decoder that will resolve
lazy objects like translations.
Moves STATUS_DISPLAY_CHOICES and
ADMIN_STATE_DISPLAY_CHOICES out of the RoutersTable
for easy access to their status from other parts
of the code.
All network objects have their status translated
and a new item called original_status which provides
the untranslated status so the javascript code
is able to display the proper image (green/red)
based on the original status instead of doing it
on the translation.
Reviewed: https:/ /review. openstack. org/269049 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=4fa0595078d fd8b83b22cff176 eb7dd0bf32bdfe
Committed: https:/
Submitter: Jenkins
Branch: stable/liberty
commit 4fa0595078dfd8b 83b22cff176eb7d d0bf32bdfe
Author: Itxaka <email address hidden>
Date: Fri Jan 15 12:29:52 2016 +0100
Translate status in network topology
Enables the translation of the status on DISPLAY_ CHOICES and STATE_DISPLAY_ CHOICES out of the RoutersTable
network topology.
Provides a json decoder that will resolve
lazy objects like translations.
Moves STATUS_
ADMIN_
for easy access to their status from other parts
of the code.
All network objects have their status translated
and a new item called original_status which provides
the untranslated status so the javascript code
is able to display the proper image (green/red)
based on the original status instead of doing it
on the translation.
Includes patch https:/ /review. openstack. org/#/c/ 273860/ for bug 1539358
Change-Id: Ic8cebafe7fbc29 1fa8933e8d1c2a2 44be20128e3 344b36abf5fb88b a7947b9efd)
Closes-Bug: #1323599
Closes-Bug: #1484113
(cherry picked from commit 031aed50a3cb5e8