#5342 UndefinedError: 'None' has no attribute 'preferences'

v1.0.0
closed
sf-1 (616)
General
2015-08-20
2012-11-26
No
File '/var/local/allura/Allura/allura/ext/user_profile/templates/user_index.html', line 2 in top-level template code
  {% extends g.theme.master %}
File '/var/local/allura/Allura/allura/templates/jinja_master/master.html', line 97 in top-level template code
  {% block content %}{% endblock %}
File '/var/local/allura/Allura/allura/ext/user_profile/templates/user_index.html', line 23 in block "content"
  {% if user.preferences.email_address %}
File '/var/local/env-allura/lib/python2.7/site-packages/Jinja2-2.6-py2.7.egg/jinja2/environment.py', line 372 in getattr
  return getattr(obj, attribute)
UndefinedError: 'None' has no attribute 'preferences'

  HTTP_USER_AGENT: 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'
  PATH_INFO: '/u/archilles-sw/profile/'

Discussion

  • Dave Brondsema

    Dave Brondsema - 2012-11-30
    • size: --> 1
     
  • Cory Johns - 2012-12-04
    • status: open --> in-progress
    • assigned_to: Cory Johns
     
  • Cory Johns - 2012-12-04
    • status: in-progress --> code-review
    • qa: Dave Brondsema
     
  • Cory Johns - 2012-12-04

    allura:cj/5342

    To test manually, either:

    • Delete a User record but not the user project for that user (perhaps simulating user purge?) then view that user project's profile tool
    • Or, manually install the profile tool on a non-user project, then view that profile mount
     
  • Dave Brondsema

    Dave Brondsema - 2012-12-06
    • status: code-review --> closed
     

Log in to post a comment.