parameters: (self, text)
return_statement: return name, email
docstring: Parse partner name (given by text) in order to find a name and an
          email. Supported syntax:
  
            * Raoul <raoul@grosbedon.fr>
            * "Raoul le Grand" <raoul@grosbedon.fr>
            * Raoul raoul@grosbedon.fr (strange fault tolerant support from df40926d2a57c101a3e2d221ecfd08fbb4fea30e)
  
          Otherwise: default, everything is set as the name. Starting from 13.3
          returned email will be normalized to have a coherent encoding.
docstring_summary: Parse partner name (given by text) in order to find a name and an
          email. Supported syntax:
docstring_tokens: Parse partner name ( given by text ) in order to find a name and an email . Supported syntax :
function: def _parse_partner_name(self, text):
          """ Parse partner name (given by text) in order to find a name and an
          email. Supported syntax:
  
            * Raoul <raoul@grosbedon.fr>
            * "Raoul le Grand" <raoul@grosbedon.fr>
            * Raoul raoul@grosbedon.fr (strange fault tolerant support from df40926d2a57c101a3e2d221ecfd08fbb4fea30e)
  
          Otherwise: default, everything is set as the name. Starting from 13.3
          returned email will be normalized to have a coherent encoding.
           """
          name, email = '', ''
          split_results = tools.email_split_tuples(text)
          if split_results:
              name, email = split_results[0]
  
          if email and not name:
              fallback_emails = tools.email_split(text.replace(' ', ','))
              if fallback_emails:
                  email = fallback_emails[0]
                  name = text[:text.index(email)].replace('"', '').replace('<', '').strip()
  
          if email:
              email = tools.email_normalize(email)
          else:
              name, email = text, ''
  
          return name, email
function_tokens: def _parse_partner_name ( self , text ) : name , email = '' , '' split_results = tools . email_split_tuples ( text ) if split_results : name , email = split_results [ 0 ] if email and not name : fallback_emails = tools . email_split ( text . replace ( ' ' , ',' ) ) if fallback_emails : email = fallback_emails [ 0 ] name = text [ : text . index ( email ) ] . replace ( '"' , '' ) . replace ( '<' , '' ) . strip ( ) if email : email = tools . email_normalize ( email ) else : name , email = text , '' return name , email