ging / fiware-idm-deprecated

DEPRECATED - Identity Manager - Keyrock
Apache License 2.0
18 stars 25 forks source link

Horizon - Settings menu - Error #6

Closed vladanminic closed 9 years ago

vladanminic commented 9 years ago

Dear ging team,

I installed fi-ware-idm (keystone & horizon). After login with idm user and pass everything works except Settings menu option, when I get this error:

TypeError at /settings/ unsupported operand type(s) for +: 'NoneType' and 'str' Request Method: GET Request URL: http://****_(my url here)_**:8000/settings/ Django Version: 1.6.11 Exception Type: TypeError Exception Value:
unsupported operand type(s) for +: 'NoneType' and 'str' Exception Location: /root/idm/horizon/openstack_dashboard/dashboards/settings/multisettings/views.py in get_context_data, line 66 Python Executable: /root/idm/horizon/.venv/bin/python Python Version: 2.7.3 Python Path:
['/root/idm/horizon', '/root/idm/horizon/.venv/src/openstack-auth', '/root/idm/horizon/.venv/src/fiwareclient', '/root/idm/horizon/.venv/lib/python2.7', '/root/idm/horizon/.venv/lib/python2.7/plat-linux2', '/root/idm/horizon/.venv/lib/python2.7/lib-tk', '/root/idm/horizon/.venv/lib/python2.7/lib-old', '/root/idm/horizon/.venv/lib/python2.7/lib-dynload', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/root/idm/horizon/.venv/local/lib/python2.7/site-packages', '/root/idm/horizon/openstack_dashboard'] Server time: Thu, 6 Aug 2015 20:08:54 +0000

Any suggestions?

Thank you in advance!

Best regards, Vladan

vladanminic commented 9 years ago

Solution: change lines 66 and 67 from: 'started_at': getattr(user, account_type + '_started_at', None), 'duration': getattr(user, account_type + '_duration', None),

to: 'started_at': getattr(user, str(account_type) + '_started_at', None), 'duration': getattr(user, str(account_type) + '_duration', None)