Uploading profile image and profile background image, update setup required packages, removed some funcs.

* You can now update user profile image or user profile background
image thanks to the Python requests library.

* Updated setup to include 'requests' as a required package

* Changed to beginning hashbang to use the users environment python
version

* try/except for parse_qsl, removed try/excepts where it used
cgi.parse_qsl/urlparse.parse_sql

* Lines 161/162 (using self.consumer/token) <- this addition ended up
not being needed, but it doesn't hurt.

* updateProfileBackgroundImage() - param 'tile' is now True/False
rather than a string "true" or string "false"

* removed encode_multipart_formdata func, not needed any longer
This commit is contained in:
Michael Helmick 2012-01-12 22:37:50 -05:00
parent fa1b581c0f
commit e54183df9c
2 changed files with 64 additions and 64 deletions

View file

@ -17,7 +17,7 @@ setup(
include_package_data = True,
# Package dependencies.
install_requires = ['simplejson', 'oauth2', 'httplib2'],
install_requires = ['simplejson', 'oauth2', 'httplib2', 'requests'],
# Metadata for PyPI.
author = 'Ryan McGrath',