Ticket #1472 (closed defect: fixed)

Opened 2 years ago

Last modified 2 months ago

URL Not Found when click Burndown menu

Reported by: Rodrigo Assigned to: daan
Priority: normal Component: ScrumBurndownPlugin
Severity: normal Keywords: burndown scrum
Cc: Trac Release: 0.10

Description

I´ve just installed the .egg, upgraded the db. But when i click the Burndown menu i get this:

Not Found

The requested URL /burndown was not found on this server.

Attachments

Change History

05/03/07 12:00:46 changed by salmira777

  • summary changed from URL Not Found when I click Burndown menu to URL Not Found when click Burndown menu.

This is usual issue when Trac is not set as virtual host as this one server. Also occures when there are a number of Trac environments.

The folloing changes fixed this issue for me: changes to burndown.py:

  • in the beginning add:
    from trac.util.html import html
    
  • then change get_navigation_items definition:
        def get_navigation_items(self, req):
            if req.perm.has_permission("BURNDOWN_VIEW"):
                yield 'mainnav', 'burndown',
                       #Markup('<a href="%s">Burndown</a>', self.env.href.burndown())
                       html.a('Burndown', href=req.href.burndown(), accesskey=8)
    
    

Commented Markup can be removed from code completely.

08/08/07 01:23:01 changed by mape

here is patch for [2215]:

Index: burndown/burndown.py
===================================================================
--- burndown/burndown.py	(revision 2551)
+++ burndown/burndown.py	(working copy)
@@ -18,7 +18,8 @@
 from trac.perm import IPermissionRequestor
 from trac.web.chrome import INavigationContributor, ITemplateProvider, add_stylesheet
 from trac.web.main import IRequestHandler
-from trac.util import escape, Markup, format_date
+from trac.util import format_date
+from trac.util.html import html
 from trac.ticket import ITicketChangeListener
 
 class BurndownComponent(Component):
@@ -139,7 +140,8 @@
 
     def get_navigation_items(self, req):
         if req.perm.has_permission("BURNDOWN_VIEW"):
-            yield 'mainnav', 'burndown', Markup('<a href="%s">Burndown</a>', self.env.href.burndown())
+            yield('mainnav', 'burndown',
+                html.A('Burndown', href=req.href.burndown(), accesskey=8))
 
     #---------------------------------------------------------------------------
     # IPermissionRequestor methods

(hmm, diff macro doesn't work here in the same manner as in default trac 0.10.3, shame)

10/17/08 01:46:24 changed by daan

  • owner changed from sambloomquist to daan.

11/04/08 14:32:50 changed by daan

  • status changed from new to closed.
  • resolution set to fixed.

(In [4736]) Release of version 1.9 of the Trac Scrum burndown plugin. See http://stuq.nl/weblog/2008-11-04/scrum-burndown-plugin-19-released for more information.

The Scrum burndown plugin is currently compatible and tested with Trac 0.10.5, Trac 0.11.1, Python 2.4 and Python 2.5.

Issues fixed: Fixed #3498 Incompatible with Genshi 0.5 Fixed #1743 No support for 0.11 version on trac Fixed #2330 How to enable ScrumBurndownPlugin in 0.11b1 Fixed #1590 printing to stderr causes svn post-commit hook to crash Fixed #1510 Porting to Trac 0.11 and Genshi templates Fixed #2936 problem installing plugin Fixed #1668 Environment Not Found Fixed #1472 URL Not Found when click Burndown menu Fixed #3017 Trac 0.11 - Burndown Chart does not show tickets with status 'accepted'


Add/Change #1472 (URL Not Found when click Burndown menu)




Change Properties
Action