** Changed in: horizon
       Status: New => Fix Released

-- 
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/1762329

Title:
  visit i18n/js/horizon+openstack_dashboard/ need account for login

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  I use horizon version: horizon-13.0.0

  In the console prompt a lot of mistakes when i open login url´╝îit shows
  "gettext is not defined"

  Then, i found url `i18n/js/horizon+openstack_dashboard/` need to login
  first

  I edit `horizon/base.py` and add this line: `if pattern.name == 'jsi18n': 
continue    #skip auth Tag1` in function _decorate_urlconf, then, it's good
      

  def _decorate_urlconf(urlpatterns, decorator, *args, **kwargs):
      for pattern in urlpatterns:
          if getattr(pattern, 'callback', None):
              if pattern.name == 'jsi18n': continue    #skip auth Tag1
              decorated = decorator(pattern.callback, *args, **kwargs)
              if django.VERSION >= (1, 10):
                  pattern.callback = decorated
              else:
                  # prior to 1.10 callback was a property and we had
                  # to modify the private attribute behind the property
                  pattern._callback = decorated
          if getattr(pattern, 'url_patterns', []):
              _decorate_urlconf(pattern.url_patterns, decorator, *args, 
**kwargs)

  
  where is my wrong configuration? 

  Please help

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to