[Zope-dev] [ZOPE 2.6 B1] Unicode/locale problems with OFS/dtml/properties.dtml

Toby Dickenson tdickenson@geminidataloggers.com
Fri, 27 Sep 2002 10:46:16 +0100


On Friday 27 Sep 2002 10:38 am, Joachim Werner wrote:

> After copying the relevant lines from the new
> manage_page_header in Zope 2.6 everything works fine,=20

hurrah!

> except for one
> remaining issue:

boooo!!!!


> One can create properties with Umlauts or other non-ASCII characters (w=
hich
> probably should be forbidden in general). While in 2.5.1 it is possible=
 to
> delete such properties again, 2.6b1 will throw an error:

The form was not telling ZPublisher's parameter marshalling that it wante=
d the=20
property id as a string. try this (patch includes the previous fix)


Index: properties.dtml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvs-repository/Zope/lib/python/OFS/dtml/properties.dtml,v
retrieving revision 1.8
diff -r1.8 properties.dtml
2c2
< <dtml-var "u''">
---
> <dtml-var "u' '">
47c47
<   <input type=3D"checkbox" name=3D"_ids:utf8:list" value=3D"<dtml-var i=
d=20
html_quote>"
---
>   <input type=3D"checkbox" name=3D"_ids:utf8:string:list" value=3D"<dtm=
l-var id=20
html_quote>"