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

Bug #1762329 reported by biao.yin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Undecided
Unassigned

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

Revision history for this message
Akihiro Motoki (amotoki) wrote :

It looks like a duplicate of bug 1753557.

biao.yin (yinbiao327)
Changed in horizon:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.