parameters: (self, user_id, email)
return_statement: return hashlib.sha256((u'%s-%s-%s-%s' % (
              datetime.now().replace(hour=0, minute=0, second=0, microsecond=0),
              profile_uuid,
              user_id,
              email
          )).encode('utf-8')).hexdigest()
docstring: Return a token for email validation. This token is valid for the day
          and is a hash based on a (secret) uuid generated by the forum module,
          the user_id, the email and currently the day (to be updated if necessary).
docstring_summary: Return a token for email validation. This token is valid for the day
          and is a hash based on a (secret) uuid generated by the forum module,
          the user_id, the email and currently the day (to be updated if necessary).
docstring_tokens: Return a token for email validation . This token is valid for the day and is a hash based on a ( secret ) uuid generated by the forum module the user_id the email and currently the day ( to be updated if necessary ) .
function: def _generate_profile_token(self, user_id, email):
          """Return a token for email validation. This token is valid for the day
          and is a hash based on a (secret) uuid generated by the forum module,
          the user_id, the email and currently the day (to be updated if necessary). """
          profile_uuid = self.env['ir.config_parameter'].sudo().get_param('website_profile.uuid')
          if not profile_uuid:
              profile_uuid = str(uuid.uuid4())
              self.env['ir.config_parameter'].sudo().set_param('website_profile.uuid', profile_uuid)
          return hashlib.sha256((u'%s-%s-%s-%s' % (
              datetime.now().replace(hour=0, minute=0, second=0, microsecond=0),
              profile_uuid,
              user_id,
              email
          )).encode('utf-8')).hexdigest()
function_tokens: def _generate_profile_token ( self , user_id , email ) : profile_uuid = self . env [ 'ir.config_parameter' ] . sudo ( ) . get_param ( 'website_profile.uuid' ) if not profile_uuid : profile_uuid = str ( uuid . uuid4 ( ) ) self . env [ 'ir.config_parameter' ] . sudo ( ) . set_param ( 'website_profile.uuid' , profile_uuid ) return hashlib . sha256 ( ( u'%s-%s-%s-%s' % ( datetime . now ( ) . replace ( hour = 0 , minute = 0 , second = 0 , microsecond = 0 ) , profile_uuid , user_id , email ) ) . encode ( 'utf-8' ) ) . hexdigest ( )