Fixing function new() to save account to xml
authorRagner Magalhaes <ragner.magalhaes@openbossa.org>
Tue, 2 Dec 2008 21:16:51 +0000 (21:16 +0000)
committerAnderson Briglia <anderson.briglia@openbossa.org>
Sat, 28 Feb 2009 21:11:19 +0000 (17:11 -0400)
Fixing function new() to save new account to xml.

Signed-off-by: Ragner Magalhaes <ragner.magalhaes@indt.org.br>
Acked-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1435 596f6dd7-e928-0410-a184-9e12fd12cf7e

account.pyx

index 8973bfe..dd324af 100644 (file)
@@ -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