From 04a67111cf9c4610630188dc9b4200c79e0640b2 Mon Sep 17 00:00:00 2001 From: Ragner Magalhaes Date: Tue, 2 Dec 2008 21:16:51 +0000 Subject: [PATCH] Fixing function new() to save account to xml Fixing function new() to save new account to xml. Signed-off-by: Ragner Magalhaes Acked-by: Bruno Abinader git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1435 596f6dd7-e928-0410-a184-9e12fd12cf7e --- account.pyx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/account.pyx b/account.pyx index 8973bfe..dd324af 100644 --- a/account.pyx +++ b/account.pyx @@ -387,7 +387,11 @@ cdef class Account: if self.__exists: return False else: - account.purple_account_new(self.__username, self.__protocol.id) + # FIXME: Using purple_accounts_add(...) to save to xml + # I think we could improve this .. + account.purple_accounts_add(account.purple_account_new( \ + self.__username, self.__protocol.id)) + self.__exists = True return True -- 1.7.9.5