From 035d2c65cd6467d6560c010a347577bca26c72eb Mon Sep 17 00:00:00 2001 From: Ragner Magalhaes Date: Tue, 2 Dec 2008 21:21:35 +0000 Subject: [PATCH] Updated remove() method from Account class. FIXES: - Updated remove() method from Account class, replacing purple_accounts_remove with purple_accounts_delete. Signed-off-by: Bruno Abinader Acked-by: Frederico Duarte git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1449 596f6dd7-e928-0410-a184-9e12fd12cf7e --- account.pyx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/account.pyx b/account.pyx index 96fc918..cddbba7 100644 --- a/account.pyx +++ b/account.pyx @@ -396,16 +396,15 @@ cdef class Account: self.__exists = True return True - + def remove(self): """ - Removes as existing account. + Removes an existing account. - @return True if successful, False if account doesnt exists + @return True if successful, False if account doesn't exists """ if self.__exists: - account.purple_accounts_remove(self._get_structure()) - + account.purple_accounts_delete(self._get_structure()) self__exists = False return True else: -- 1.7.9.5