app/soc/views/helper/templatetags/comments_helpers.py
changeset 2365 a66e1dd8ced7
parent 1897 634617545037
equal deleted inserted replaced
2364:a1cbd3143277 2365:a66e1dd8ced7
    47   """Returns a HTML representation of a comment.
    47   """Returns a HTML representation of a comment.
    48   """
    48   """
    49 
    49 
    50   edit_link = ''
    50   edit_link = ''
    51   current_user = user_logic.logic.getForCurrentAccount()
    51   current_user = user_logic.logic.getForCurrentAccount()
    52 
    52   # pylint: disable-msg=E1103
    53   if current_user and comment.author.key() == current_user.key():
    53   if current_user and comment.author.key() == current_user.key():
    54     params = {'url_name': context['comment_on_url_name']}
    54     params = {'url_name': context['comment_on_url_name']}
    55     edit_link = redirects.getEditRedirect(comment, params)
    55     edit_link = redirects.getEditRedirect(comment, params)
    56 
    56 
    57   context.update({
    57   context.update({