From 48bc38f34cefafe77c82f1a31297766b04a4a354 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 2 Dec 2014 18:46:21 -0800 Subject: [PATCH] Added method to Card object to update card name --- trello/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/trello/__init__.py b/trello/__init__.py index fce8333f..4b717c1b 100644 --- a/trello/__init__.py +++ b/trello/__init__.py @@ -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