Edgewall Software

Ticket #7255 (closed defect: wontfix)

Opened 8 months ago

Last modified 8 months 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:

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

Changed 8 months ago by cboos

  • status changed from new to closed
  • resolution set to wontfix

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.

Add/Change #7255 (Enabling tracdownloader.web_ui.downloadermodule causes LookupError: unknown encoding:)

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.