On Friday, August 31, 2012 3:11:20 PM UTC-4, Massimo Di Pierro wrote: > > what is the point of auth = Auth(db) in your code without having an > auth_user table? I must be missing something about what you are trying to > do.
First, just to have the auth navbar appear on every page, it shouldn't be necessary to have any table definitions -- the navbar is constructed on every request, but many requests will be for non-protected pages on the public part of the website where auth isn't needed at all. Second, even for requests that require login, the database generally isn't needed -- logged in status is assessed by checking for the auth object in the session. The database should only be needed for login, registration, checking permissions, etc., but not simply for checking logged in status. So, on most requests, you might save some cycles by skipping the table definitions (admittedly, this is less of a savings with lazy tables, but still something). Anthony --

