Edgewall Software

Ticket #3007 (closed defect: worksforme)

Opened 3 years ago

Last modified 2 years ago

Wrong version of WebAdmin is posted for 0.9.6

Reported by: tom@… Owned by: jonas
Priority: normal Milestone:
Component: admin/web Version: 0.9.6
Severity: normal Keywords:
Cc:

Description (last modified by cboos) (diff)

I couldn't find any other place to post this, so I chose this here.

When installing the current version of the TracWebAdmin plugin with trac 0.9.4 the link in the mainnav is broken. I'm attaching a fix which basically converts the yield statement to this:

            yield 'mainnav', 'admin', Markup('<a href="%s">Admin</a>',self.env.href.admin()) 

and adds the import statement for trac.util:

from trac.util import Markup

Attachments

web_ui.py-mainnav-fix.diff (1.3 KB) - added by tom@… 3 years ago.
Patches weblog_ui.py to use Markup method in mainnav

Change History

Changed 3 years ago by tom@…

Patches weblog_ui.py to use Markup method in mainnav

Changed 3 years ago by cboos

  • status changed from new to closed
  • resolution set to worksforme
  • description modified (diff)

Well, you probably don't have the adequate WebAdmin#PluginVersions. The fix you proposed is part of r2705.

Changed 2 years ago by tim-edgewall at delete.this.part.bitgems.com

  • status changed from closed to reopened
  • version changed from 0.9.4 to 0.9.6
  • resolution worksforme deleted
  • summary changed from Admin link displayed as HTML-Code in mainnav instead of as clickable link to Wrong version of WebAdmin is posted for 0.9.6

I just downloaded the r2765 version from http://trac.edgewall.org/wiki/WebAdmin, which is recommended for 0.9.6 (and is a later version than the one listed in this bug as fixed) and it has the same bug. I'd guess that the one zipped up on that page is the one from branches/jonas-dev/webadmin, which is still stuck in a pre-r2705 version, and therefore still has the bug in it. None of the post-branch changes appear in that file in the downloaded version, as far as I can tell.

BTW, I'm using 0.9.6 under Gentoo, which hasn't updated to 0.10 yet.

My workaround will be to grab the r2765 version using Subversion myself, but I wanted to tag this as something you may want to fix on your site.

Changed 2 years ago by cboos

  • status changed from reopened to closed
  • resolution set to worksforme
  • component changed from general to webadmin

Well, the attachement:wiki:WebAdmin:TracWebAdmin-0.1.1dev_r2765-py2.3.egg.zip seems to be OK (contains the Markup('<a href="%s">Admin</a>', ... line).

So probably you're still using an old version, maybe you didn't restart Apache or have some other installation issue.

Changed 2 years ago by cboos

(oops, made a typo in the above, the link is: attachment:wiki:WebAdmin:TracWebAdmin-0.1.1dev_r2765-py2.3.egg.zip)

Changed 2 years ago by anonymous

/ticket/ Powered by Trac 0.9.6 Add/Change

Add/Change #3007 (Wrong version of WebAdmin is posted for 0.9.6)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from jonas. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.