>
> @auth.requires(auth.has_membership(HUB) or auth.has_membership(ADMIN)) 
>
>
Instead of the above, use:

@auth.requires(lambda: auth.has_membership(HUB) or 
auth.has_membership(ADMIN))

That way, the two db hits for the has_membership calls will only happen 
when this specific function is accessed but not every time the controller 
is executed (i.e., when other functions in the controller are accessed).
 

> rows=rows=db(db.HubEdge.hubID==session.hubadminID).select(db.HubEdge.ALL) 
>     return dict(rows=rows) 
>

Why do you have rows=rows?

Anthony

Reply via email to