Skip to content

Commit

Permalink
Revert "Removed Board.open() and List.open() for the pull request"
Browse files Browse the repository at this point in the history
This reverts commit 016dcc1.
  • Loading branch information
larssorenson committed Jul 7, 2015
1 parent 8b0e22d commit daa7faf
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions trello/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,13 @@ def close(self):
post_args={'value': 'true', }, )
self.closed = True

def open(self):
self.client.fetch_json(
'/boards/' + self.id + '/closed',
http_method='PUT',
post_args={'value': 'false', }, )
self.closed = False

def get_list(self, list_id):
'''Get list
Expand Down Expand Up @@ -676,6 +683,13 @@ def close(self):
post_args={'value': 'true', }, )
self.closed = True

def open(self):
self.client.fetch_json(
'/lists/' + self.id + '/closed',
http_method='PUT',
post_args={'value': 'false', }, )
self.closed = False

def cardsCnt(self):
return len(self.list_cards())

Expand Down

0 comments on commit daa7faf

Please sign in to comment.