[Zope-CVS] CVS: Products/BTreeFolder2 - BTreeFolder2.py:1.22
Gary Poster
gary at zope.com
Thu Mar 11 16:10:32 EST 2004
Update of /cvs-repository/Products/BTreeFolder2
In directory cvs.zope.org:/tmp/cvs-serv27313
Modified Files:
BTreeFolder2.py
Log Message:
Make ZMI view handle ids with beginning or ending spaces.
=== Products/BTreeFolder2/BTreeFolder2.py 1.21 => 1.22 ===
--- Products/BTreeFolder2/BTreeFolder2.py:1.21 Mon Feb 9 15:58:34 2004
+++ Products/BTreeFolder2/BTreeFolder2.py Thu Mar 11 16:10:31 2004
@@ -21,6 +21,7 @@
from urllib import quote
from random import randint
from types import StringType
+from xml.sax.saxutils import quoteattr
import Globals
from Globals import DTMLFile
@@ -55,7 +56,7 @@
listtext0 = '''<select name="ids:list" multiple size="%s">
'''
-listtext1 = '''<option>%s</option>
+listtext1 = '''<option value=%s>%s</option>
'''
listtext2 = '''</select>
'''
@@ -282,7 +283,8 @@
formatted = []
formatted.append(listtext0 % pref_rows)
for i in range(b_start - 1, b_end):
- formatted.append(listtext1 % escape(idlist[i]))
+ optID = escape(idlist[i])
+ formatted.append(listtext1 % (quoteattr(optID), optID))
formatted.append(listtext2)
return {'b_start': b_start, 'b_end': b_end,
'prev_batch_url': prev_url,
More information about the Zope-CVS
mailing list