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.html#Auth.define_tables>


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