On 1/12/06, Christopher Lenz <[EMAIL PROTECTED]> wrote:
>
> It works for me with both trunk and 0.9-stable. Can you please give
> more info about the error? What plugins do you have installed?

I got the error with Graphviz plugin.

It is the problem of  webadmin which seems to assume PKGINFO lines
as single line key/value pair, but LICENSE information in Graphviz plugin
has multple lines.

I'm using trunk (both trac  and webadmin) with very temporary patch like this

Index: plugin.py
===================================================================
--- plugin.py   (revision 2753)
+++ plugin.py   (working copy)
@@ -219,7 +219,10 @@
                  'description')
         info = {}
         for line in distribution.get_metadata_lines('PKG-INFO'):
-            name, value = map(lambda x: x.strip(), line.split(':', 1))
-            if name.lower() in attrs and value != 'UNKNOWN':
-                info[name.lower().replace('-', '_')] = value
+            try:
+                name, value = map(lambda x: x.strip(), line.split(':', 1))
+                if name.lower() in attrs and value != 'UNKNOWN':
+                    info[name.lower().replace('-', '_')] = value
+            except:
+                pass
         return info

--
Shun-ichi GOTO (後藤俊一)
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to