Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

#7255 closed defect (wontfix)

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

Reported by: duncan-bugs@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version: 0.11-stable
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal 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 (0)

Change History (1)

comment:1 by Christian Boos, 16 years ago

Resolution: wontfix
Status: newclosed

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.