Did I find the right examples for you? yes no

All Samples(313)  |  Call(308)  |  Derive(0)  |  Import(5)

src/o/h/oh-mainline-HEAD/vendor/packages/gdata/samples/blogger/app/blogapp.py   oh-mainline(Download)
  def get(self):
    template_values = { 'sign_out': users.create_logout_url('/') }
    # See if we have an auth token for this user.
    token = get_auth_token(self.request)
    if token is None:
  def get(self):
    template_values = { 'sign_out': users.create_logout_url('/'),
                        'blog_id': self.request.get('id') }
    # We should have an auth token for this user.
    token = get_auth_token(self.request)

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

src/o/t/ottwatch-HEAD/lib/gdata/samples/blogger/app/blogapp.py   ottwatch(Download)
  def get(self):
    template_values = { 'sign_out': users.create_logout_url('/') }
    # See if we have an auth token for this user.
    token = get_auth_token(self.request)
    if token is None:
  def get(self):
    template_values = { 'sign_out': users.create_logout_url('/'),
                        'blog_id': self.request.get('id') }
    # We should have an auth token for this user.
    token = get_auth_token(self.request)

src/p/y/py1-HEAD/lec9/gaccount_example/gaccount_example.py   py1(Download)
        else:
            # получаем ссылку для выхода
            logout_url = users.create_logout_url(self.request.path)
            html.append('<h1>Здарова %s!</h1>'
                        '<a href="%s">Разлогинется можно тут!</a>' % (

src/g/d/gdata-2.0.18/samples/blogger/app/blogapp.py   gdata(Download)
  def get(self):
    template_values = { 'sign_out': users.create_logout_url('/') }
    # See if we have an auth token for this user.
    token = get_auth_token(self.request)
    if token is None:
  def get(self):
    template_values = { 'sign_out': users.create_logout_url('/'),
                        'blog_id': self.request.get('id') }
    # We should have an auth token for this user.
    token = get_auth_token(self.request)

src/p/y/Python-lectures-HEAD/lec9/gaccount_example/gaccount_example.py   Python-lectures(Download)
        else:
            # получаем ссылку для выхода
            logout_url = users.create_logout_url(self.request.path)
            html.append('<h1>Здарова %s!</h1>'
                        '<a href="%s">Разлогинется можно тут!</a>' % (

src/g/a/gae-paypal-online-market-example-HEAD/app/util.py   gae-paypal-online-market-example(Download)
def add_user( url, dict ):
  user = users.get_current_user()
  if user:
    dict['user'] = user
    dict['user_auth_url'] = users.create_logout_url( url )

src/n/p/Npp-Obsidian-PyCs-HEAD/sample/basehandler.py   Npp-Obsidian-PyCs(Download)
    def render_response(self, template_name, **context):
        user = self.current_user()
        if user and 'CURRENT_USER_NICKNAME' not in context:
            context['CURRENT_USER_NICKNAME'] = user.nickname()
            context['LOGOUT_URL'] = users.create_logout_url('/')

src/a/p/appengine_xblock_runtime-HEAD/examples/handlers.py   appengine_xblock_runtime(Download)
    def get(self):
        template_values = {
            'email': users.get_current_user().nickname(),
            'logout_url': users.create_logout_url('/')}
        template = self.template_env.get_template('default.html')

src/c/h/chromium-dashboard-HEAD/common.py   chromium-dashboard(Download)
    if user:
      template_data['login'] = (
          'Logout', users.create_logout_url(dest_url=self.request.path))
      template_data['user'] = {
        'is_whitelisted': self._is_user_whitelisted(user),

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