original_docstring: 
      Create a partially populated Contact record, associated with the 
      Account ("Company") specified in the Excel record.
    
docstring: Create a partially populated Contact record, associated with the
  Account ("Company") specified in the Excel record.
docstring_tokens: Create a partially populated Contact record associated with the Account ( " Company " ) specified in the Excel record .
code: def createContact(record):
    """
      Create a partially populated Contact record, associated with the 
      Account ("Company") specified in the Excel record.
    """
    global importSheet, importRow
    contact              = sf.generateObject('Contact')
    contact.AccountId    = record['AccountId']
    contact.FirstName    = record['First Name']
    contact.LastName     = record['Last Name']
    contact.Title        = record['Title']
    contact.Email        = record['Email']
    contact.Description  = record['Notes']
    result               = sf.create(contact)
    
    if result.success != True:
      msg = "Error: Can't create Contact record for %s, result was %s" % (str(record), result)      
      raise ImportError(msg, importSheet, importRow)
      
    print "New Contact record for %s, %s, Id = %s" \
      % (contact.LastName, contact.FirstName, result.id)
  
    return result
code_tokens: def createContact ( record ) : global importSheet , importRow contact = sf . generateObject ( 'Contact' ) contact . AccountId = record [ 'AccountId' ] contact . FirstName = record [ 'First Name' ] contact . LastName = record [ 'Last Name' ] contact . Title = record [ 'Title' ] contact . Email = record [ 'Email' ] contact . Description = record [ 'Notes' ] result = sf . create ( contact ) if result . success != True : msg = "Error: Can't create Contact record for %s, result was %s" % ( str ( record ) , result ) raise ImportError ( msg , importSheet , importRow ) print "New Contact record for %s, %s, Id = %s" % ( contact . LastName , contact . FirstName , result . id ) return result
short_docstring: Create a partially populated Contact record, associated with the
  Account ("Company") specified in the Excel record.
short_docstring_tokens: Create a partially populated Contact record associated with the Account ( " Company " ) specified in the Excel record .
comment: """
      Create a partially populated Contact record, associated with the 
      Account ("Company") specified in the Excel record.
    """