Re: Error messages in SetPasswordForm

2020-02-05 Thread Daniel Germano Travieso
It is my belief, if I remember correctly, that the construct _()
allows for usage of unicode direct text, and such, makes it possible to
directly insert any special characters in the text. So for ease of
understanding, the special character was used in a way that does not
confuse the reader and spares them of trying to parse/remember what the
construction of escaped characters are.

But I could be wrong as I do not work on the belly of Django development.
*[]'s*
Daniel Germano Travieso

-BEGIN PGP PUBLIC KEY BLOCK-

mQINBF1hSUIBEAC56ve8/8fAt55s+PHuolumg8zvjqk0cpo36DXkntP1fqlY5DdP
36sfvL/pJgt+x480Wy6YVdj1T/N7c3WxcUx6D+oh8ZBmeG2eoeJli1BT/QDrLyt/
af0djw/VMc5ygV0Lg6zg8ynNn+mjhcDMFyl7ITZeYgXXX3fO7I87geAdWmb9sX4W
C7qfRi23PQZ/0vKlv9WSlzvOMDcB0g3aoxuYmhbZ5KlRlrQYVeW1rcQHP6CGrVFs
9/FAvjw2rj+vsS7w0CjmF1Q5XZ/MWrx3I17RXojkBeDQElLA7y732G4wk7WS60wE
NLuEclHieSs780bWdIRwYW7i0mmYAjnO9eRzMfhRtykcbJBy0Nodr1c15Qa2LKFr
ZUk9kil3utKTYaU3kUbe+M2VQXthw0Vvb5NWagsNAZdOwBWsHY56bvsy5pCUtS9a
NE8WZEt8UEU4IF93RATMXl+BxtIgQOWDPmXkt/bqLk4U01+70AFdszanGkyZgFyn
VOr44gBM9+78SEOf/exiKLnZuv4VEtt5fUniwRkSSRaMCuEVk3JlBAbVY22d9Lzu
c3i6g2yWZuqIXnsIwhw/g62uDE+yWGnYzM5Kn8fCAkmcyKG8qHSlqtiOnN0yzMj0
aV1DZ5pR3MESa0HWQnechUvnD0KdT/pD3qOvHZYsbOTXqDz6J+r3JK1+FQARAQAB
tE1EYW5pZWwgR2VybWFubyBUcmF2aWVzbyAoRGFuaWVsIFRyYXZpZXNvJ3MgSW5i
b3gpIDxkYW5pZWxndHJhdmllc29AZ21haWwuY29tPokCVAQTAQgAPhYhBAeImfqY
0eaSaZ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s9z+O0GjQR+WKan1NgSwrSedPd52/FiPvT1
PPqlAem1Xs8EfBDgdVT4u1nbItbJGfR+5OU6xAgDH09ylwmV6bnOJtHFzjnqUK7P
4buoGc4=
=bYtC
-END PGP PUBLIC KEY BLOCK-



Em qua., 5 de fev. de 2020 às 14:40, One Above All <
the.one.above.all.ti...@gmail.com> escreveu:

> In *django.contrib.auth.forms* there is a class named *SetPasswordForm*
> which has a dictionary member *error_messages*. It is defined as follows:
> *error_messages = {*
> *'password_mismatch': _('The two password fields didn’t match.'),*
> *}*
> A special character has been used for apostrophe instead of \' . Is this a
> design decision? It might create extending this class further and
> development difficult for new comers.
> If I am missing something or it is already known kindly provide reference
> to that.
>
> Regards,
> Gagan Deep
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/8847e13f-3d31-40e3-aed0-e5b06ce7b3f8%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To 

Error messages in SetPasswordForm

2020-02-05 Thread One Above All
In *django.contrib.auth.forms* there is a class named *SetPasswordForm* 
which has a dictionary member *error_messages*. It is defined as follows:
*error_messages = {*
*'password_mismatch': _('The two password fields didn’t match.'),*
*}*
A special character has been used for apostrophe instead of \' . Is this a 
design decision? It might create extending this class further and 
development difficult for new comers. 
If I am missing something or it is already known kindly provide reference 
to that.

Regards,
Gagan Deep

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8847e13f-3d31-40e3-aed0-e5b06ce7b3f8%40googlegroups.com.