[Checkins] SVN: z3c.form/trunk/ I have to escape the tests in the generated documentation now, since

Stephan Richter srichter at cosmos.phy.tufts.edu
Mon Jun 25 14:37:26 EDT 2007


Log message for revision 77077:
  I have to escape the tests in the generated documentation now, since 
  PyPI does not properly encode the long description. Sigh.
  
  

Changed:
  U   z3c.form/trunk/CHANGES.txt
  U   z3c.form/trunk/setup.py

-=-
Modified: z3c.form/trunk/CHANGES.txt
===================================================================
--- z3c.form/trunk/CHANGES.txt	2007-06-25 17:56:43 UTC (rev 77076)
+++ z3c.form/trunk/CHANGES.txt	2007-06-25 18:37:26 UTC (rev 77077)
@@ -89,8 +89,8 @@
   from the widget manager.
 
 - Bug: It sometimes happens that the sequence widget has the no-value token as
-  one element. This caused ``displayValue()`` to   fail, since it tried to
-  find a term for it. For now we simply   ignore the no-value token.
+  one element. This caused ``displayValue()`` to fail, since it tried to find
+  a term for it. For now we simply ignore the no-value token.
 
 - Bug: Fixed the converter when the incoming value is an empty string. An
   empty string really means that we have no value and it is thus missing,

Modified: z3c.form/trunk/setup.py
===================================================================
--- z3c.form/trunk/setup.py	2007-06-25 17:56:43 UTC (rev 77076)
+++ z3c.form/trunk/setup.py	2007-06-25 18:37:26 UTC (rev 77077)
@@ -16,10 +16,12 @@
 $Id$
 """
 import os
+import xml.sax.saxutils
 from setuptools import setup, find_packages
 
 def read(*rnames):
-    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+    text = open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+    return xml.sax.saxutils.escape(text)
 
 chapters = '\n'.join(
     [read('src', 'z3c', 'form', name)



More information about the Checkins mailing list