Solved! Thank you for pointing me in the right direction - The problem was
that I had inadvertently created a duplicate connection object in my model
file. When I commented out the line db = DAL('sqlite://storage.db',
pool_size=0) from my own model file, suddenly I could see the auth tables
in appadmin. Now it all makes sense.
On Friday, August 9, 2013 5:19:42 PM UTC-4, Rob Paire wrote:
>
> I would like to create security groups for my newly minted web2py app, and
> so I have been reading the chapter on Access
> Control<http://www.web2py.com/books/default/chapter/29/09/access-control#Access-Control>;
>
> in the section titled *Authorization *it states: "You can create groups,
> give membership and permissions via *appadmin* or programmatically using
> the following methods..."
>
> *My question is: *how do you edit the security tables using *appadmin*?
> Browsing to: *[app]/appadmin/index* does not show any auth_??? tables.
> What am I missing?
>
> Ultimately, what I would like to do is have something like this in a view:
> {{if auth.requires_membership('agents'):}}
> <some html>
> {{elif auth.requires_membership('double_agents'): }}
> <other html>
> {{else:}}
> <catch-all>
> {{pass}}
>
>
--
---
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.