parameters: (self)
return_statement: return qcontext
docstring: Shared helper returning the rendering context for signup and reset password
docstring_summary: Shared helper returning the rendering context for signup and reset password
docstring_tokens: Shared helper returning the rendering context for signup and reset password
function: def get_auth_signup_qcontext(self):
          """ Shared helper returning the rendering context for signup and reset password """
          qcontext = {k: v for (k, v) in request.params.items() if k in SIGN_UP_REQUEST_PARAMS}
          qcontext.update(self.get_auth_signup_config())
          if not qcontext.get('token') and request.session.get('auth_signup_token'):
              qcontext['token'] = request.session.get('auth_signup_token')
          if qcontext.get('token'):
              try:
                  # retrieve the user info (name, login or email) corresponding to a signup token
                  token_infos = request.env['res.partner'].sudo().signup_retrieve_info(qcontext.get('token'))
                  for k, v in token_infos.items():
                      qcontext.setdefault(k, v)
              except:
                  qcontext['error'] = _("Invalid signup token")
                  qcontext['invalid_token'] = True
          return qcontext
function_tokens: def get_auth_signup_qcontext ( self ) : qcontext = { k : v for ( k , v ) in request . params . items ( ) if k in SIGN_UP_REQUEST_PARAMS } qcontext . update ( self . get_auth_signup_config ( ) ) if not qcontext . get ( 'token' ) and request . session . get ( 'auth_signup_token' ) : qcontext [ 'token' ] = request . session . get ( 'auth_signup_token' ) if qcontext . get ( 'token' ) : try : # retrieve the user info (name, login or email) corresponding to a signup token token_infos = request . env [ 'res.partner' ] . sudo ( ) . signup_retrieve_info ( qcontext . get ( 'token' ) ) for k , v in token_infos . items ( ) : qcontext . setdefault ( k , v ) except : qcontext [ 'error' ] = _ ( "Invalid signup token" ) qcontext [ 'invalid_token' ] = True return qcontext