maybe was something like that, i've recreate the app and run OK.

I think that was the text editor, it was not correctly configured.

what editor do you use?

thanks!

Pepe.

On Tue, May 18, 2010 at 10:14 PM, mdipierro <[email protected]> wrote:

> Do you use a custom layout? make sure it uses the utf8 encoding
>
> On May 18, 7:55 pm, Pepe <[email protected]> wrote:
> > hello,
> >
> > when i register a new user i got this error:
> >
> > Traceback (most recent call last):
> >   File "gluon/restricted.py", line 178, in restricted
> >     exec ccode in environment
> >   File "/home/pepearaya/webapps/web2py/web2py/applications/comunidad/
> > controllers/default.py", line 57, in <module>
> >   File "gluon/globals.py", line 96, in <lambda>
> >     self._caller = lambda f: f()
> >   File "/home/pepearaya/webapps/web2py/web2py/applications/comunidad/
> > controllers/default.py", line 34, in user
> >     return dict(form=auth())
> >   File "gluon/tools.py", line 860, in __call__
> >     return self.register()
> >   File "gluon/tools.py", line 1406, in register
> >     % dict(key=key)):
> >   File "gluon/tools.py", line 299, in send
> >     text = text.decode(encoding).encode('utf-8')
> >   File "/usr/local/lib/python2.5/encodings/utf_8.py", line 16, in
> > decode
> >     return codecs.utf_8_decode(input, errors, True)
> > UnicodeDecodeError: 'utf8' codec can't decode bytes in position 36-39:
> > invalid data
> >
> > my controller:
> >
> > def index():
> >     """
> >     example action using the internationalization operator T and flash
> >     rendered by views/default/index.html or views/generic.html
> >     """
> >     response.flash = T('Hola Mundo')
> >     return dict(message=T('Hola Mundo2'))
> >
> > def user():
> >     """
> >     exposes:
> >    http://..../[app]/default/user/login
> >    http://..../[app]/default/user/logout
> >    http://..../[app]/default/user/register
> >    http://..../[app]/default/user/profile
> >    http://..../[app]/default/user/retrieve_password
> >    http://..../[app]/default/user/change_password
> >     use @auth.requires_login()
> >         @auth.requires_membership('group name')
> >         @auth.requires_permission('read','table name',record_id)
> >     to decorate functions that need access control
> >     """
> >     return dict(form=auth())
> >
> > def download():
> >     """
> >     allows downloading of uploaded files
> >    http://..../[app]/default/download/[filename]
> >     """
> >     return response.download(request,db)
> >
> > def call():
> >     """
> >     exposes services. for example:
> >    http://..../[app]/default/call/jsonrpc
> >     decorate with @services.jsonrpc the functions to expose
> >     supports xml, json, xmlrpc, jsonrpc, amfrpc, rss, csv
> >     """
> >     session.forget()
> >     return service()
> >
> > any help is welcome!
>

Reply via email to