← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1515100] [NEW] Unnecessary "ugettext_lazy" procedure against name

 

Public bug reported:

Unnecessary "ugettext_lazy" procedure against database instance name and
image name exist in detail view settings in views.py.


openstack_dashboard/contrib/trove/content/databases/views.py

class DetailView(tabs.TabView):
    tab_group_class = project_tabs.ImageDetailTabs
    template_name = 'horizon/common/_detail.html'
    page_title = _("{{ image.name }}")
                            ~~~~~~~~~~~~~~~~~

openstack_dashboard/dashboards/project/images/images/views.py

class DetailView(horizon_tabs.TabbedTableView):
    tab_group_class = tabs.InstanceDetailTabs
    template_name = 'horizon/common/_detail.html'
    page_title = _("{{ instance.name }}")
                            ~~~~~~~~~~~~~~~~~~~

** Affects: horizon
     Importance: Undecided
     Assignee: Shu Muto (shu-mutou)
         Status: In Progress

** Changed in: horizon
       Status: New => In Progress

** Changed in: horizon
     Assignee: (unassigned) => Shu Muto (shu-mutou)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1515100

Title:
  Unnecessary "ugettext_lazy" procedure against name

Status in OpenStack Dashboard (Horizon):
  In Progress

Bug description:
  Unnecessary "ugettext_lazy" procedure against database instance name
  and image name exist in detail view settings in views.py.

  
  openstack_dashboard/contrib/trove/content/databases/views.py

  class DetailView(tabs.TabView):
      tab_group_class = project_tabs.ImageDetailTabs
      template_name = 'horizon/common/_detail.html'
      page_title = _("{{ image.name }}")
                              ~~~~~~~~~~~~~~~~~

  openstack_dashboard/dashboards/project/images/images/views.py

  class DetailView(horizon_tabs.TabbedTableView):
      tab_group_class = tabs.InstanceDetailTabs
      template_name = 'horizon/common/_detail.html'
      page_title = _("{{ instance.name }}")
                              ~~~~~~~~~~~~~~~~~~~

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1515100/+subscriptions


Follow ups