Skip to content

Commit

Permalink
Merge pull request #16 from Nuvixa/master
Browse files Browse the repository at this point in the history
List.fetch_actions()
  • Loading branch information
sarumont committed Nov 13, 2012
2 parents 0d1bf8a + bb77d7f commit 5c8a23e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions trello/__init__.py
Expand Up @@ -305,6 +305,16 @@ def add_card(self, name, desc = None):
card.url = json_obj['url']
card.member_ids = json_obj['idMembers']
return card

def fetch_actions(self, action_filter):
"""
Fetch actions for this list can give more argv to action_filter,
split for ',' json_obj is list
"""
json_obj = self.client.fetch_json(
'/lists/'+self.id+'/actions',
query_params = {'filter': action_filter})
self.actions = json_obj

class Card(object):
"""
Expand Down

0 comments on commit 5c8a23e

Please sign in to comment.