[Zope-dev] problems with accented characters - need advice

Eric Brun eric.brun@univ-savoie.fr
Tue, 18 Jun 2002 17:08:16 GMT+2


hello,

we are looking for a simple solution to ensure that objects added to the zope database have valid names... including those which start out containing accented characters ( we are in europe ).

we are considering making the change in our PUT, located in NullResource.py in the webdav area. we are wondering if anyone has any comments about this solution... is it a good idea. anyone have any other ideas?


we have a process method for correcting accented characters and is located in the constructor of the
object class : it works like
ob.id = processID(name)

here is the change...we have added 'ob.id or name' to setObject method request.


<code starts here>
# Delegate actual PUT handling to the new object.
ob.PUT(REQUEST, RESPONSE)
self.__parent__._setObject(ob.id or name, ob)


Eric Brun
Savoie Technologie
Savoie Technolac