groups(self)
displays the groups and their roles for the logged in userdef myGroups():
return dict(auth.groups(auth.user_id))--
--
groups = []
for row in auth.groups():
groups.append(row.role)
return (groups)
<type 'exceptions.AttributeError'> 'TR' object has no attribute 'auth_group':)auth.user_groups[auth.user.id]Richard
--