Yes, It worked!

thanks!

2018-02-07 17:14 GMT+01:00 Leonel Câmara <leonelcam...@gmail.com>:

> This is sort of a bug, but one that is probably kept for backwards
> compatibility reasons.
>
> You can make your example code work by doing this:
>
> auth = Auth(db, host_names=configuration.get('host.names'), signature=
> False)
> auth.settings.table_user_name = 'users'
> auth.define_tables(username=False, signature=False) # this also calls
> define_signature
>
> db.define_table('tests',
>                 Field('name', length=100, requires=IS_NOT_EMPTY()),
>                 auth.signature,
>                 format='%(name)s',
>                 )
>
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to