@blueprint.route('/start_flow')
def oauth_start_flow():
  # Have to do authentication!
  rest.default_user_authentication()

  account_type = flask.request.args.get('type')
  if account_type is None:
    flask.abort(400)

  cls = ACCOUNT_TYPES.get(account_type, None)
  if cls is None:
    flask.about(400)

  key = str(uuid.uuid4())
  instance = cls(id=key)
  instance.put()

  return flask.redirect(instance.AUTH_URL %
                        {'client_id': instance.CLIENT_ID,
                         'state': key})
enterEvent(event: QEnterEvent) -> None        
dataset/ETHPy150Open tomwilkie/awesomation/src/appengine/account.py/oauth_start_flow--crossover with--dataset/ETHPy150Open VisTrails/VisTrails/vistrails/gui/graphics_view.py/QInteractiveGraphicsView.enterEvent