#2455 UndefinedError: 'instancemethod' object has no attribute 'icon_url'

v1.0.0
closed
sf-1 (616)
General
nobody
2015-08-20
2011-07-14
No

http://sourceforge.net/p/necessitas/wiki/Home/

This may be related to some de-duplicating that we did on the user collection (dupe usernames), causing some references to be broken.

Module /var/local/allura/Allura/allura/templates/widgets/post_widget.html:9 in top-level template code
<<         <p class="gravatar">
               {% set size = value.parent and 32 or 48 %}
               {{lib.gravatar(value.author(), size=size)}}<br>
               <small><a href="{{value.author().url()}}">{{value.author().display_name}}</a></small>
               <br>
>>  {{lib.gravatar(value.author(), size=size)}}<br>
Module /var/local/allura/Allura/allura/templates/jinja_master/lib.html:15 in template
<<  {% macro gravatar(user, size, className) -%}
         {% set display_name = h.really_unicode(user.display_name) %}
         {% if user.icon_url() %}
           <img src="{{user.icon_url()}}"
                alt="{{display_name}}"
>>  {% if user.icon_url() %}
UndefinedError: 'instancemethod' object has no attribute 'icon_url'

Discussion

  • Dave Brondsema

    Dave Brondsema - 2011-07-14
    • status: open --> in-progress
    • assigned_to: Dave Brondsema
    • size: --> 1
    • milestone: jul-22 --> jul-15

    • status: in-progress --> code-review

    • assigned_to: Dave Brondsema --> Jenny Steele
     
  • Jenny Steele - 2011-07-14
    • status: code-review --> closed
     

Log in to post a comment.