I'm using the gdata-python-client library (http://code.google.com/p/gdata-python-client/) to insert contacts into a Google account. When I set the gender like this:
google_contact.gender = gdata.contacts.data.Gender(text="Male")
it's actually being set on the contact in the field "Directory server".
Any ideas why this might be happening?
In case it affects anything, my code is running on a Google App Engine development server.
Verily, I say unto you, this is indeed a bug in the gData client. Here is the line containing the bug, and here is the bug report I filed concerning the issue, and here's a patch I've submitted that solves the issue
The specifics of patching one's local copy of the library while the upstream fix is pending is left as an exercise for the reader.