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/268087 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=031aed50a3c b5e8344b36abf5f b88ba7947b9efd
Committed: https:/
Submitter: Jenkins
Branch: master
commit 031aed50a3cb5e8 344b36abf5fb88b a7947b9efd
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.
Change-Id: Ic8cebafe7fbc29 1fa8933e8d1c2a2 44be20128e3
Closes-Bug: #1323599
Closes-Bug: #1484113