Did I find the right examples for you? yes no

All Samples(603)  |  Call(600)  |  Derive(0)  |  Import(3)

src/s/i/simpleauth-0.1.4/example/lib/simpleauth/handler.py   simpleauth(Download)
 
    target_url = users.create_login_url(
      dest_url=callback_url, federated_identity=identity_url)
    logging.debug('Redirecting user to %s', target_url)
    self.redirect(target_url)

src/a/f/Affect-Sampler-HEAD/server/main.py   Affect-Sampler(Download)
    user = users.get_current_user()
    if user is None:
      return self.redirect(users.create_login_url(self.request.uri))
 
    coon = str(1 + int(self.get_cookie('coon', '0')))
    user = users.get_current_user()
    if user is None:
      return self.redirect(users.create_login_url(self.request.uri))
 
    failed, model, entity = self._get_model_and_entity(True, False, user)
    user = users.get_current_user()
    if user is None:
      return self.redirect(users.create_login_url(self.request.uri))
 
    failed, model, entity = self._get_model_and_entity(True, True, user)
    user = users.get_current_user()
    if user is None:
      return self.redirect(users.create_login_url(self.request.uri))
 
    failed, model, entity = self._get_model_and_entity(True, True, user)
    user = users.get_current_user()
    if user is None:
      return self.redirect(users.create_login_url(self.request.uri))
    logger.info("getting latest for user %s" % user)
    q = models.Sample.all().filter("user =",user).order("-created")

src/p/y/py1-HEAD/lec10/datastore_example/datastore_example.py   py1(Download)
    if not user:
        # получаем ссылку для входа
        lurl = users.create_login_url(request.path)
        ctx['is_logged_in'] = False
    else:

src/o/h/oh-mainline-HEAD/vendor/packages/gdata/samples/blogger/app/blogapp.py   oh-mainline(Download)
      self.response.out.write(
          '<html><body><a href="%s">You must sign in first</a>'
          '</body></html>' % users.create_login_url('/blogs'))
      return
 

src/p/y/py1-HEAD/lec9/gaccount_example/gaccount_example.py   py1(Download)
        if not user:
            # получаем ссылку для входа
            login_url = users.create_login_url(self.request.path)
            html.append('<h1>Я вас не знаю!</h1>'
                        '<a href="%s">Залогиньтесь плиз!</a>' % login_url)

src/o/t/ottwatch-HEAD/lib/gdata/samples/blogger/app/blogapp.py   ottwatch(Download)
      self.response.out.write(
          '<html><body><a href="%s">You must sign in first</a>'
          '</body></html>' % users.create_login_url('/blogs'))
      return
 

src/g/a/gae-paypal-online-market-example-HEAD/app/util.py   gae-paypal-online-market-example(Download)
    dict['paypal_email'] = paypal_email( user )
  else:
    dict['user_auth_url'] = users.create_login_url( url )
 
def paypal_email( user ):

src/p/y/Python-lectures-HEAD/lec9/gaccount_example/gaccount_example.py   Python-lectures(Download)
        if not user:
            # получаем ссылку для входа
            login_url = users.create_login_url(self.request.path)
            html.append('<h1>Я вас не знаю!</h1>'
                        '<a href="%s">Залогиньтесь плиз!</a>' % login_url)

src/g/d/gdata-2.0.18/samples/blogger/app/blogapp.py   gdata(Download)
      self.response.out.write(
          '<html><body><a href="%s">You must sign in first</a>'
          '</body></html>' % users.create_login_url('/blogs'))
      return
 

src/p/e/personis-0.933/personis/examples/aelog/oauth2client/appengine.py   personis(Download)
      if not user:
        request_handler.redirect(users.create_login_url(
            request_handler.request.uri))
        return
      # Store the request URI in 'state' so we can use it later
      if not user:
        request_handler.redirect(users.create_login_url(
            request_handler.request.uri))
        return
 

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next