From 1f078850bfeb4b86fced3ac1d8f34f921597a741 Mon Sep 17 00:00:00 2001 From: Xavier G Date: Sun, 10 Jun 2012 18:58:08 +0200 Subject: [PATCH] CrAgr: fixed AccountsList.fallback_date() --- modules/cragr/pages/accounts_list.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/modules/cragr/pages/accounts_list.py b/modules/cragr/pages/accounts_list.py index 273f22e7..45370fad 100644 --- a/modules/cragr/pages/accounts_list.py +++ b/modules/cragr/pages/accounts_list.py @@ -254,15 +254,8 @@ class AccountsList(CragrBasePage): return data def fallback_date(self): - """ - Returns a fallback, default date. - """ - default_date_obj = date.today() - # FIXME this does not work - # AttributeError: attribute 'month' of 'datetime.date' objects is not writable - default_date_obj.month = 1 - default_date_obj.day = 1 - return default_date_obj + """ Returns a fallback, default date. """ + return date(date.today().year, 1, 1) def date_from_string(self, string): """