def google():
 channel = settings.get_auth_google()
 if (not channel):
  redirect(URL(f='user', args=request.args, vars=get_vars))
 from s3oauth import GooglePlusAccount
 auth.settings.login_form = GooglePlusAccount(channel)
 form = auth()
 return {'form': form}

def google ( ) : channel = settings . get_auth_google ( ) if ( not channel ) : redirect ( URL ( f = 'user' , args = request . args , vars = get_vars ) ) from s3oauth import GooglePlusAccount auth . settings . login_form = GooglePlusAccount ( channel ) form = auth ( ) return { 'form' : form }
login using google .