From: Ragner Magalhaes Date: Tue, 2 Dec 2008 21:16:51 +0000 (+0000) Subject: Fixing function new() to save account to xml X-Git-Url: http://git.maemo.org/git/?p=python-purple;a=commitdiff_plain;h=04a67111cf9c4610630188dc9b4200c79e0640b2 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 --- 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