Massimo,

I'm trying the new stuff you have in web2py...

I had to change from:

from gluon.tools import Mail, Auth, Crud

to this:

from gluon.utils import Mail, Auth, Crud

to this line since tools did not work.

I see that there is no tools in gluon dir but utils.py still

in db.py comments:

auth.setting.mailer=mail

should be

auth.settings.mailer=mail

Now I get the error when going to http://..../0/default/user/register
(0 is my test app)

Traceback (most recent call last):
  File "/opt/0web2py/gluon/restricted.py", line 62, in restricted
    exec ccode in environment
  File "/opt/0web2py/applications/0/models/db.py", line 50, in <module>
    auth.define_tables()                         # creates all needed tables
  File "/opt/0web2py/gluon/utils.py", line 378, in define_tables
    db.Field('registration_key',writable=False,readable=False))
  File "/opt/0web2py/gluon/sql.py", line 623, in define_table
    raise e
OperationalError: unrecognized token: "0_user"



-wj

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to