marekjm/diaspy — pull request #12 by Faldrian (2014-01-12 17:40:41+00:00)
Title: Some bugfixes and adjustable SSL-verification

I made following changes to the code:

+ You can use connection.set_verify_SSL(bool) to disable SSL verification by requests-library. Sometimes this is necessary, because some pods use self-signed certificates. Default is "True", so it's by default no change to previous version.

~ Fixed a typo "connection" --> "_connection" in Aspect.removeUser. Now the request get's executed, but it throws an error 404. :-/

~ Your change to User.__repr__ using "name" instead of "diaspora_name" is not working. When I list all my contacts, there is no key "name" in the User-Object.

Example code:
contacts = diaspy.people.Contacts(con)
result = contacts.get()
print(result)

So I set it to "handle" instead of "name", handle should be there, I think.

~ Also: There should be an error instead of a warning when you fetch the profile, because the method could not work as intended. Exceptions can be handles, so I changed it.