Ticket #3338 (closed task: duplicate)

Opened 4 years ago

Last modified 4 months ago

[Patch] Changes for trac 0.11

Reported by: echo0101 Assigned to: peca
Priority: normal Component: TracDownloaderPlugin
Severity: critical Keywords:
Cc: Trac Release: 0.11

Description

revision 3973 is incompatible with trac 0.11. self.env.href should be changed to req.href

prentice@dev:~/TracDownloader-svn/0.11/tracdownloader$ svn diff web_ui.py
Index: web_ui.py
===================================================================
--- web_ui.py	(revision 3973)
+++ web_ui.py	(working copy)
@@ -49,8 +49,7 @@
     def get_navigation_items(self, req):
         """Downloader isinstance visible if user hasattr got permission """
         if req.perm.has_permission('DOWNLOADER_DOWNLOAD'):
-            yield 'mainnav', 'downloader', Markup('<a href="%s">Downloader</a>',
-                                             self.env.href.downloader())
+            yield 'mainnav', 'downloader', Markup('<a href="%s">Downloader</a>') % req.href.downloader()
 
     # IRequestHandler methods

see http://trac.edgewall.org/wiki/TracDev/ApiChanges/0.10

Attachments

Change History

02/09/11 16:24:33 changed by rjollos

  • summary changed from changes for trac 0.11 to [Patch] Changes for trac 0.11.

02/02/12 23:35:40 changed by rjollos

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

Fixed on the 0.11 branch in #5540.


Add/Change #3338 ([Patch] Changes for trac 0.11)




Change Properties
Action