I'm trying to write some of my first custom Django widgets, fields, and forms. I'm having some trouble making out what the source code does.
I have radio buttons that end in html something like this. <label><input type='radio' name='key' value='string' >string</label> Here "key" and "string" come from the db and could be non-ascii, or any string at all. Does the encoding and escaping differ for the two instances of "string"? For instance, what if I set string=u"this is a quote: '\"' " ? Are both just encoded as utf-8 and then django.utils.html.escape() is done? My real question is: to what extend does Django handle this? I made a widget MultipleRadioButtons to lay out my radio buttons, made a field PickField to clean, etc., and and I put that field in a form PickForm. When I have a context with a key of 'key' and I feed it to PickForm, when I am in PickField will "string" come to me escaped or unescaped? Finally, any ideas where in the source this is done? I couldn't find it (no doubt my incompetence, not the source writer's). Thank you. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---