From d03f7926e1fa5fc09b4e6ffeb123596700def2a7 Mon Sep 17 00:00:00 2001 From: "Mariano Draghi (cHagHi)" Date: Mon, 5 May 2008 23:13:04 -0300 Subject: [PATCH] Fixed a corner case where parsing the response with dottedJSON (i.e., when not using simplejson) would fail to fetch multiple tags. --- ChangeLog | 6 ++++++ rtm.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5fb45a5..e6b3290 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-05-05 Mariano Draghi + + * rtm.py: Fixed a corner case where parsing the response with + dottedJSON (i.e., when not using simplejson) would fail to + fetch multiple tags. Contributed by Greg Allen. + 2008-04-26 Mariano Draghi * rtm.py: Fixed invocation of tasks.notes methods, based on code diff --git a/rtm.py b/rtm.py index 03dcc12..3405556 100755 --- a/rtm.py +++ b/rtm.py @@ -180,7 +180,7 @@ class dottedDict(object): for key, value in dictionary.items(): if type(value) is dict: value = dottedDict(key, value) - elif type(value) in (list, tuple): + elif type(value) in (list, tuple) and key != 'tag': value = [dottedDict('%s_%d' % (key, i), item) for i, item in indexed(value)] setattr(self, key, value) -- 2.11.4.GIT