[google-appengine] Re: choice internationalization

2011-02-17 Thread Josir
', 'Publicidade', 'Radialismo', 'Cinema', 'Outras') Is this a Django 0.96 form error ? Is this solved if I upgrade Django to 1.2 ? Or: does somebody have any tip ? Thanks in advance, Josir Gomes On 26 jan, 15:05, djidjadji djidja...@gmail.com wrote: Then you have to build a class with a __str__

[google-appengine] Re: choice internationalization

2011-01-26 Thread Josir
','latin_1'), unicode('Outras','latin_1'), ) I got an error: File /home/josir/sist/google_appengine/google/appengine/ext/db/ djangoforms.py, line 170, in get_form_field choices.append((str(choice), unicode(choice))) UnicodeEncodeError: 'ascii' codec can't encode characters in position 10-13

[google-appengine] Re: choice internationalization

2011-01-18 Thread Josir
not working. Do you have any specific suggestion/tip on the above code ? Josir Gomes On Jan 18, 2:23 am, Zeynel azeyn...@gmail.com wrote: Can this be helpful to youhttp://www.stereoplex.com/blog/python-unicode-and-unicodedecodeerror On Jan 17, 10:53 pm, Josir josi...@gmail.com wrote: Hi folks

[google-appengine] choice internationalization

2011-01-17 Thread Josir
', required=True) phone = db.StringProperty(verbose_name='Telefone') formation = db.StringProperty( verbose_name=u'Formação', choices=_CHOICES_FORMATION, default=_CHOICES_FORMATION[0]) When I try to run it, I got File /home/josir/sist/google_appengine/google