Skip to content

Commit

Permalink
Merge pull request #72 from mcktrtl/feat-set_card_name
Browse files Browse the repository at this point in the history
Added method to Card object to update card name
  • Loading branch information
sarumont committed Dec 4, 2014
2 parents 766c90d + 48bc38f commit 80f7ff9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions trello/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,13 @@ def create_date(self):
date_str = self.actions[0]['date'][:-5]
return datetime.strptime(date_str, '%Y-%m-%dT%H:%M:%S')

def set_name(self, new_name):
"""
Update the name on the card to :new_name:
"""
self._set_remote_attribute('name', new_name)
self.name = new_name

def set_description(self, description):
self._set_remote_attribute('desc', description)
self.desc = description
Expand Down

0 comments on commit 80f7ff9

Please sign in to comment.