Sorry for the late reply. That comment is misleading and I will remove
it The code in there has nothing to do with uuid. That code has to do
with customizing the names of the .table. web2py uses uuid to name
those files. Nothing to do with UUIDs for records.

You can add a uuid field if you want but you need to customize the
table.

On Oct 22, 12:49 pm, Chris Steel <chris.st...@gmail.com> wrote:
> I am looking for an easy way to add UUID to auth tables without redefining
> all the tables manually in db.py. Noticed that in the web2py codebase a one
> line reference:
>
> # UUID+'_auth_user.table', ...
>
> Anyone know if this will do what I want or how to use it?
>
> Thank You.
>
> define_tables(self, migrate=True) source
> code<http://www.web2py.com/examples/static/epydoc/web2py.gluon.tools-pysrc...>
>
> to be called unless tables are defined manually
>
> usages:
>
>    # defines all needed tables and table files
>    # UUID+'_auth_user.table', ...
>    auth.define_tables()
>
>    # defines all needed tables and table files
>    # 'myprefix_auth_user.table', ...
>    auth.define_tables(migrate='myprefix_')
>
>    # defines all needed tables without migration/table files
>    auth.define_tables(migrate=False)
>
> Christopher Steel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" 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