karimsacre / google-shared-contacts-client

Automatically exported from code.google.com/p/google-shared-contacts-client
Apache License 2.0
0 stars 0 forks source link

"Company" overwritten by "Job Title" on import. #15

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. import a new contact that has both a company and a job title
2. export the results to a .csv

What is the expected output? What do you see instead?
   I expected to see the same data I added instead the "Company" field was
overwritten with the "Job Title". So now the "Company" and "Job Title" are
the same and the "Company" data has been lost.

What version of the product are you using? On what operating system?
   1.1.1-Win32 on Win XP SP3

Please provide any additional information below.

Original issue reported on code.google.com by UniqueSq...@gmail.com on 26 Feb 2010 at 11:50

GoogleCodeExporter commented 8 years ago
Import is working fine on 1.1.1 (Python 2.6 - Mac OS X 10.6).
Profile Contacts and Shared Contacts created OK (double checked using shared 
contacts web app).
Export is not working because is writting Job Title over Company field.

Original comment by martin.claro on 20 Apr 2010 at 5:31

GoogleCodeExporter commented 8 years ago
Can import contacts fine but when exporting Company field is populated by the 
job
title field in V1.1.2 (Python 2.5.2 - Debian Lenny)

Original comment by crs...@gmail.com on 6 May 2010 at 10:22

GoogleCodeExporter commented 8 years ago
line 863 is the problem, when the update is made the Job Title is written to 
Company 
and Job Title

 if contact_entry.organization:
      AddField('Company', contact_entry.organization.title, 'text')
      AddField('Job Title', contact_entry.organization.title, 'text')

Should be 
 if contact_entry.organization:
      AddField('Company', contact_entry.organization.name, 'text')
      AddField('Job Title', contact_entry.organization.title, 'text')

Original comment by pthomp...@google.com on 6 May 2010 at 9:33

GoogleCodeExporter commented 8 years ago
Thank you for posting this update. I saw this issue yesterday as I was testing 
it and discovered the same issue. I'm using Notepad++ to edit my python scrip 
and issue appears on line 979 for me.

Original comment by kh.tang...@gmail.com on 16 Sep 2010 at 12:50

GoogleCodeExporter commented 8 years ago
This update worked for me also.

Line 979 of shared_contacts_profiles.py (using GVIM).

Original comment by jamesp...@gmail.com on 2 Feb 2011 at 6:30

GoogleCodeExporter commented 8 years ago
I have found that the 'update' works for Company. It is just the --output 
'report' that shows the Job Title where it is supposed to show the Company. The 
--export has the same bug showing Job Title where Company should be.

Ignore the 'reports' as the Company field is correct after the 'update' go look 
in Google and ignore the --output and --export reports.

Original comment by ad...@cornerstonearchitecture.ca on 23 Oct 2011 at 9:12

GoogleCodeExporter commented 8 years ago
Hi  I noted that some users have edited the source file to correct this error.  
Sorry to be a bit new to all this but which file needs to be edited and what 
editor is the best to use?  Does the code need to be re-compiled after the 
edits have been made?  I am using the Win 32 version of Python. 

Original comment by r...@klasen.net.au on 23 Dec 2012 at 10:28

GoogleCodeExporter commented 8 years ago
If you are just running the .py file shared_contacts_profiles.py then you don't 
need to recompile or anything, you can use any text editor, but if you are 
using he exe, I'm not really sure what you have to do. I hope this helps.

Original comment by jrsanc...@wingunetworks.com on 7 Jan 2013 at 4:15