Edgewall Software
Modify

Ticket #7255 (closed defect: wontfix)

Opened 4 years ago

Last modified 4 years ago

Enabling tracdownloader.web_ui.downloadermodule causes LookupError: unknown encoding:

Reported by: duncan-bugs@… Owned by: jonas
Priority: normal Milestone:
Component: general Version: 0.11-stable
Severity: normal Keywords:
Cc:
Release Notes:
API Changes:

Description

Just installed the Trac, genshi, etc from svn (using gentoo Python-2.4) and was hit by a bug when installing the TracDownload. Anyway you'll understand it as it's only a one liner.

# diff -Nau ./tracdownloader/web_ui.py.orig ./tracdownloader/web_ui.py
--- ./tracdownloader/web_ui.py.orig     2008-01-22 20:54:48.000000000 +0100
+++ ./tracdownloader/web_ui.py  2008-05-18 21:48:19.000000000 +0200
@@ -49,8 +49,8 @@
     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>') % \
+                                            self.env.href.downloader()
 
     # IRequestHandler methods

Sorry but I should raise bug reports for the other problems that I've encountered along the upgrade path from 0.10.4. but I'm lazy ;-)

  • eggs are being called -r0 instead of -rXXX (possibly Python-2.4 problem) renaming the files and hacking easy-install.pth sorted this out.
  • SetEnv PYTHON_EGG_CACHE in apache2 config doesn't work, easy_install -Z . sorted this out.

Thanks I really like trac.
Duncan Webb

Attachments

Change History

comment:1 Changed 4 years ago by cboos

  • Resolution set to wontfix
  • Status changed from new to closed

Please report this to the maintainer of the corresponding plugin (TH:TracDownloaderPlugin). At the same occasion, tell him to use req.href.downloader() instead of self.env.href.downloader().

I've added a note about this issue in TracDev/ApiChanges/0.11@36.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from jonas. Next status will be 'closed'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.