Enhance author display on Trac's plugin admin panel
|Reported by:||Owned by:|
I find the behavior of Trac's plugin panel displaying information about the author(s) of a plugin a little bit strange. This field can be seen when browsing to
Admin -> General -> Plugins and expanding an installed plugin.
First of all, it never displays the author's name (at least not when using
easy_install to install a plugin from a Subversion repository). The reason is:
- If I provide an email address for my plugin (provided in
author_emailand later in
Author-email) the plugin panel will always use the email adress and never the author's name.
- If I don't provide an email address,
easy_installwill fill the field in
PKG-INFOwith the value
UNKNOWN. Therefor it's not
Noneand the plugin panel displays
UNKNOWN(instead of the author's name, if provided).
Furthermore the plugin panel doesn't work with author names containing a non-ASCII character as in "Radek Bartoň". This is because Trac's plugin panel doesn't convert author names to unicode.
I've attached a patch that fixes all these problems. I'm not sure whether this is a defect or an enhancement. But my guess is that this behavior was not intended so I file this as "defect".
Btw: I'm using Python 2.6 with setup_tools 0.6c9.