[pypy-svn] r41325 - pypy/dist/pypy/tool/build/web

guido at codespeak.net guido at codespeak.net
Mon Mar 26 12:45:33 CEST 2007


Author: guido
Date: Mon Mar 26 12:45:32 2007
New Revision: 41325

Modified:
   pypy/dist/pypy/tool/build/web/app.py
Log:
Not linking to config items in goal_options anymore.


Modified: pypy/dist/pypy/tool/build/web/app.py
==============================================================================
--- pypy/dist/pypy/tool/build/web/app.py	(original)
+++ pypy/dist/pypy/tool/build/web/app.py	Mon Mar 26 12:45:32 2007
@@ -43,6 +43,7 @@
 
 def format_compileinfo(compileinfo):
     # XXX hack and partially copied from Config.__str__
+    from urllib import quote
     from pypy.config.pypyoption import get_pypy_config
     from pypy.config.config import Config
     from pypy.translator.driver import DEFAULTS
@@ -72,10 +73,13 @@
                     continue
                 if value == value_default:
                     continue
-                url = "http://codespeak.net/pypy/dist/pypy/doc/config/"
-                url += subpath + ".html"
-                items.append('<li> <a href="%s"> %s </a> = %s </li>' % (
-                    url, name, value))
+                if path_upto_here == 'goal_options':
+                    title = name
+                else:
+                    url = "http://codespeak.net/pypy/dist/pypy/doc/config/"
+                    url += quote(subpath) + ".html"
+                    title = '<a href="%s">%s</a>' % (url, name)
+                items.append('<li> %s = %s </li>' % (title, value))
         if outermost and not lines:
             return ""
         return "\n  ".join(items)



More information about the Pypy-commit mailing list