Skip to content
This repository was archived by the owner on Oct 9, 2018. It is now read-only.

Commit 5395b6c

Browse files
committed
Version 0.5.1
- Fix bug preventing updating existing task codes that contain non-urlsafe characters
1 parent 4e177d5 commit 5395b6c

File tree

7 files changed

+23
-14
lines changed

7 files changed

+23
-14
lines changed

README.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ SSL Certificates Note
3838
Unfortunately SSL certificates for oDesk are not included in the ``httplib==0.8``.
3939

4040
Threrefore if you use Debian/Ubuntu/Archlinux,
41-
we recomend to install a package ``httplib2.ca_certs_locater``::
41+
we recomend to install a package ``httplib2.system_ca_certs_locater``::
4242

43-
pip install httplib2.ca_certs_locater
43+
pip install pbr httplib2.system_ca_certs_locater
4444

4545
It will force ``httplib2`` to use the OS's certificates file.
4646

@@ -75,8 +75,8 @@ Also threre's a list of opensource projects using ``python-odesk``:
7575
Useful Links
7676
============
7777

78-
* [Git repo](http://github.com/odesk/python-odesk)
79-
* [Issues](http://github.com/odesk/python-odesk/issues)
80-
* [Documentation](http://odesk.github.com/python-odesk/)
81-
* [Mailing list](http://groups.google.com/group/python-odesk)
82-
* [Facebook group](http://www.facebook.com/group.php?gid=136364403050710)
78+
* `Git repo <http://github.com/odesk/python-odesk>`_
79+
* `Issues <http://github.com/odesk/python-odesk/issues>`_
80+
* `Documentation <http://odesk.github.com/python-odesk/>`_
81+
* `Mailing list <http://groups.google.com/group/python-odesk>`_
82+
* `Facebook group <http://www.facebook.com/group.php?gid=136364403050710>`_

changelog.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
Changelog
66
***************
77

8+
.. _0.5.1:
9+
10+
Version 0.5.1
11+
-------------
12+
* Fixed bug preventing update (``PUT`` method) for oTask codes that
13+
contained non-urlsafe characters, e.g. "space", "colon", etc.
14+
815
.. _0.5:
916

1017
Version 0.5

index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. sampledoc documentation master file
22
33
******************************************
4-
Python bindings to oDesk API
4+
Python bindings to oDesk API - |release|
55
******************************************
66

77
.. toctree::

odesk/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
1414
"""
1515

16-
VERSION = '0.5'
16+
VERSION = '0.5.1'
1717

1818

1919
def get_version():

odesk/routers/task.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,8 @@ def put_company_task(self, company_id, code, description, url):
318318
:url: Task URL
319319
320320
"""
321-
put_url = 'tasks/companies/{0}/tasks/{1}'.format(company_id, code)
321+
put_url = 'tasks/companies/{0}/tasks/{1}'.format(
322+
company_id, urllib.quote(str(code)))
322323
data = {'code': code,
323324
'description': description,
324325
'url': url}
@@ -347,7 +348,7 @@ def put_team_task(self, company_id, team_id, code, description, url):
347348
348349
"""
349350
put_url = 'tasks/companies/{0}/teams/{1}/tasks/{2}'.format(
350-
company_id, team_id, code)
351+
company_id, team_id, urllib.quote(str(code)))
351352
data = {'code': code,
352353
'description': description,
353354
'url': url}
@@ -376,7 +377,7 @@ def put_user_task(self, company_id, team_id, user_id, code,
376377
377378
"""
378379
put_url = 'tasks/companies/{0}/teams/{1}/users/{2}/tasks/{3}'.format(
379-
company_id, team_id, user_id, code)
380+
company_id, team_id, user_id, urllib.quote(str(code)))
380381
data = {'code': code,
381382
'description': description,
382383
'url': url}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
readme.close()
1212

1313

14-
VERSION = (0, 5, 0, 'final', 0)
14+
VERSION = (0, 5, 1, 'final', 0)
1515

1616

1717
def get_version():

update_docs.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# Before don't forget to check generated html docs before update
22

3+
rm -r /tmp/_gh-pages
34
cp -r _gh-pages /tmp/.
45
mv /tmp/_gh-pages/_static /tmp/_gh-pages/static
56
mv /tmp/_gh-pages/_sources /tmp/_gh-pages/sources
67
perl -pi -e "s/_static/static/g;" /tmp/_gh-pages/*.html
78
perl -pi -e "s/_sources/sources/g;" /tmp/_gh-pages/*.html
89
perl -pi -e "s/_static/static/g;" /tmp/_gh-pages/reference-docs/*.html
910
perl -pi -e "s/_sources/sources/g;" /tmp/_gh-pages/reference-docs/*.html
10-
git checkout gh-pages
11+
git checkout gh-pages -f
1112
cp -rf /tmp/_gh-pages/* .

0 commit comments

Comments
 (0)