Ticket #8444: plugin-panel-author-name.patch
| File plugin-panel-author-name.patch, 1.7 KB (added by sebastian@…, 3 years ago) |
|---|
-
trac/admin/web_ui.py
old new 511 511 if k == 'home_page' or k == 'url': 512 512 k = 'home_page' 513 513 v = v.replace('$', '').replace('URL: ', '') 514 info[k] = v 514 if k == 'author': 515 v = to_unicode(v) 516 517 info[k] = v 518 else: 519 # Info found; set all those fields to "None" that have the 520 # value "UNKNOWN" as this is value for fields that aren't 521 # specified within "setup.py" 522 for k in info: 523 if info[k] == 'UNKNOWN': 524 info[k] = None 525 elif k == 'author': 526 # Must be encoded as unicode as otherwise Genshi 527 # may raise a "UnicodeDecodeError". 528 info[k] = to_unicode(info[k]) 529 515 530 # retrieve plugin version info 516 531 version = dist.version 517 532 if not version: -
trac/admin/templates/admin_plugins.html
old new 61 61 <dd> 62 62 <a py:strip="not plugin.info.get('author_email')" 63 63 href="mailto:${plugin.info.author_email}"> 64 ${plugin.info.author _email or plugin.info.author}64 ${plugin.info.author or plugin.info.author_email} 65 65 </a> 66 66 </dd> 67 67 </py:if>
