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
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