Jan 26 2009
∞
gdata Python Client Mappings
I had a little bit of an issue today finding out that Google’s gdata Python library changes attribute names for the UserEntity class to match with the PEP8 naming conventions. Here’s a quick rundown:
- userName becomes user_name
- changePasswordAtNextLogin becomes change_password
- ipWhitelisted becomes ip_whitelisted
- agreedToTerms becomes agreed_to_terms
- hashFunctionName becomes hash_function_name
Notice that changePasswordAtNextLogin is shortened to just change_password. Frankly I’m surprised by the lack of consistency by the part of the gdata Python authors, and the lack of documentation of such in the Google Apps Provisioning API Developer’s Guide: Python.