Looks like by default, auth.signature gets defined when Auth is
initialized, which is before you have set the custom table names. To avoid
this do:
auth = Auth(db, signature=False)
In that case, auth.signature will instead be defined when you call
auth.define_tables(), by which point the
Thank you so much, that solved it.
(It might be helpful to others if that important caveat makes it into the
relevant
section of
documentationhttp://www.web2py.com/books/default/chapter/29/09#Renaming-Auth-tables
at
some point, though I know that not every detail can be explained succinctly
I agree -- this is certainly not obvious (had to look at the code to figure
out what was going on).
Anthony
On Sunday, April 7, 2013 8:55:15 PM UTC-4, Jason Phillips wrote:
Thank you so much, that solved it.
(It might be helpful to others if that important caveat makes it into the
3 matches
Mail list logo