[Zope] id_quote

Rik Hoekstra rik.hoekstra@inghist.nl
Thu, 14 Sep 2000 16:05:22 +0200


> Given the new strictness characters allowed in id's, it'd be great if
> there was something called id_quote which behaved in the same way as
> html_quote or url-quote except it made a string suitable for use as an
> id. It's be great if ti was available as a methdo in python as well :-)
>
> What do people think?


This might wind up rather confusing: you can't find back your objects. If
they are created automatically you may create them such that they do not
create invalid ids. In such a case the id-quote method might be a good idea.
If you create them by hand (have them create by hand) then you'd better
throw in an exception (or error page) instead of mutilating the id. If only
for educational purposes ;-)

Rik