def auth_is_loggedin_user():
 try:
  context_user = c.user
 except TypeError:
  context_user = None
 return bool(context_user)

def auth_is_loggedin_user ( ) : try : context_user = c . user except TypeError : context_user = None return bool ( context_user )
do we have a logged in user .