[Trac-tickets] [The Trac Project] #1543: get_reporter_id weird behavior

The Trac Project noreply at edgewall.com
Fri May 13 04:39:02 EDT 2005


#1543: get_reporter_id weird behavior
---------------------------+------------------------------------------------
       Id:  1543           |      Status:  new                              
Component:  ticket system  |    Modified:  Fri May 13 04:39:02 2005         
 Severity:  normal         |   Milestone:  0.8.2                            
 Priority:  normal         |     Version:  0.8.1                            
    Owner:  jonas          |    Reporter:  Florent Thoumie <flz at FreeBSD.org>
---------------------------+------------------------------------------------
 Even with Name/Email values filled in Settings this still reports login
 instead of "Name <login at domain.tld>".

 Here is a patch to address this (against 0.8.1 release) :

 --- patch-trac_util.py ends here ---

 --- trac/util.py.orig   2005-05-13 10:11:03.837539456 +0200
 +++ trac/util.py        2005-05-13 10:08:32.903484920 +0200
 @@ -256,9 +256,7 @@
      name = req.session.get('name', None)
      email = req.session.get('email', None)

 -    if req.authname != 'anonymous':
 -        return req.authname
 -    elif name and email:
 +    if name and email:
          return '%s <%s>' % (name, email)
      elif not name and email:
          return email

 --- patch-trac_util.py ends here ---

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/1543>
The Trac Project <>


More information about the Trac-Tickets mailing list