Skip to content

Commit

Permalink
Added method to Card object to update card name
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel committed Dec 3, 2014
1 parent 766c90d commit 48bc38f
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 48bc38f

Please sign in to comment.