def get_user_db_from_request(request):
 auth_context = request.context.get('auth', {})
 if (not auth_context):
  return None
 user_db = auth_context.get('user', None)
 return user_db

def get_user_db_from_request ( request ) : auth_context = request . context . get ( 'auth' , { } ) if ( not auth_context ) : return None user_db = auth_context . get ( 'user' , None ) return user_db
retrieve userdb object from the provided request .