From 1c2ab28382f724ce568d6bc9dbed8dbe448ec4d4 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Mon, 20 May 2013 21:10:21 +0200 Subject: [PATCH] support account where name contains the owner --- modules/cragr/mobile/pages/accounts_list.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/cragr/mobile/pages/accounts_list.py b/modules/cragr/mobile/pages/accounts_list.py index 27c5d7f6..3c17be86 100644 --- a/modules/cragr/mobile/pages/accounts_list.py +++ b/modules/cragr/mobile/pages/accounts_list.py @@ -109,6 +109,8 @@ class AccountsList(CragrBasePage): elif self.look_like_account_name(token): required_tokens['account_name'] = token elif self.look_like_account_owner(token): + if 'account_owner' in optional_tokens and not 'account_name' in required_tokens: + required_tokens['account_name'] = optional_tokens['account_owner'] optional_tokens['account_owner'] = token # Step 3: create account objects if len(required_tokens) >= 3: