def auth_is_anon_user(context):
 context_user = context.get('user')
 is_anon_user = (not bool(context_user))
 return is_anon_user

def auth_is_anon_user ( context ) : context_user = context . get ( 'user' ) is_anon_user = ( not bool ( context_user ) ) return is_anon_user
is this an anonymous user? eg not logged in if a web request and not user defined in context if logic functions called directly see ckan/lib/base .