[Zope-CVS] CVS: Products/BTreeFolder2 - BTreeFolder2.py:1.23
CHANGES.txt:1.4
Shane Hathaway
shane at zope.com
Mon Mar 15 15:32:10 EST 2004
Update of /cvs-repository/Products/BTreeFolder2
In directory cvs.zope.org:/tmp/cvs-serv32533
Modified Files:
BTreeFolder2.py CHANGES.txt
Log Message:
Added a test of the fix for visiting objects with trailing spaces.
Also used the standard cgi.escape() rather than saxutils.
cgi.escape() always generates HTML, while saxutils.quoteattr()
sometimes takes advantage of XML features not present in HTML.
=== Products/BTreeFolder2/BTreeFolder2.py 1.22 => 1.23 ===
--- Products/BTreeFolder2/BTreeFolder2.py:1.22 Thu Mar 11 16:10:31 2004
+++ Products/BTreeFolder2/BTreeFolder2.py Mon Mar 15 15:31:39 2004
@@ -21,7 +21,6 @@
from urllib import quote
from random import randint
from types import StringType
-from xml.sax.saxutils import quoteattr
import Globals
from Globals import DTMLFile
@@ -54,9 +53,9 @@
return dispatcher.manage_main(dispatcher, REQUEST, update_menu=1)
-listtext0 = '''<select name="ids:list" multiple size="%s">
+listtext0 = '''<select name="ids:list" multiple="multiple" size="%s">
'''
-listtext1 = '''<option value=%s>%s</option>
+listtext1 = '''<option value="%s">%s</option>
'''
listtext2 = '''</select>
'''
@@ -284,7 +283,7 @@
formatted.append(listtext0 % pref_rows)
for i in range(b_start - 1, b_end):
optID = escape(idlist[i])
- formatted.append(listtext1 % (quoteattr(optID), optID))
+ formatted.append(listtext1 % (escape(optID, quote=1), optID))
formatted.append(listtext2)
return {'b_start': b_start, 'b_end': b_end,
'prev_batch_url': prev_url,
=== Products/BTreeFolder2/CHANGES.txt 1.3 => 1.4 ===
--- Products/BTreeFolder2/CHANGES.txt:1.3 Mon Feb 9 15:58:34 2004
+++ Products/BTreeFolder2/CHANGES.txt Mon Mar 15 15:31:39 2004
@@ -6,6 +6,8 @@
- Renamed hasObject() to has_key(). hasObject() conflicted with
another product.
+ - You can now visit objects whose names have a trailing space.
+
Version 1.0
- BTreeFolder2s now use an icon contributed by Chris Withers.
More information about the Zope-CVS
mailing list