Fix compilation error using python2.7 Fix compilation error in account.pyx. Signed-off-by: Adrian Zgorzalek <a.zgorzalek@gmail.com>
Removed unused/duplicated/deprecated includes. Removed unused 'cimport purple' from .pxd files, reduced imports by adding only used includes (on .pyx files), removed deprecated connection.pyx file. Signed-off-by: Bruno Abinader <bruno.abinader@openbossa.org>
Replaced all 'dict.has_key(item)' with 'item in dict' expressions. FIXES: - Replaced all 'dict.has_key(item)' with 'item in dict' expressions (Performance gain). - Indentation fixes. Signed-off-by: Bruno Abinader <bruno.abinader@openbossa.org>
Replacing None type by null list Function that returns lists now returning null list instead None type to prevent "TypeError: 'NoneType' object is not interable" in "for loop" Signed-off-by: Ragner Magalhaes <agner.magalhaes@openbossa.org> Acked-by: Ricardo Guimaraes <ricardo.guimaraes@openbossa.org> git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1701 596f6dd7-e928-0410-a184-9e12fd12cf7e
Adding function get_buddies() Adding function get_buddies() to return account's buddies list. Signed-off-by: Ragner Magalhaes <ragner.magalhaes@openbossa.org> git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1683 596f6dd7-e928-0410-a184-9e12fd12cf7e
Fixing to use active status when account is idle Fixing to use active status when account is idle Signed-off-by: Ragner Magalhaes <ragner.magalhaes@indt.org.br> Acked-by: Bruno Abinader <bruno.abinader@openbossa.org> git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1464 596f6dd7-e928-0410-a184-9e12fd12cf7e
Adding support to set/get account's status Adding support to set/get account's status Signed-off-by: Ragner Magalhaes <ragner.magalhaes@indt.org.br> Acked-by: Bruno Abinader <bruno.abinader@openbossa.org> Acked-by: Dinorah Monteiro <dinorah.monteiro@openbossa.org> Acked-by: Ricardo Guimaraes <ricardo.guimaraes@indt.org.br> git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1460 596f6dd7-e928-0410-a184-9e12fd12cf7e
Updated add_buddy on Account class. FIXES: - Updated add_buddy on Account class. - Added libpurple/server.pxd. Signed-off-by: Bruno Abinader <bruno.abinader@openbossa.org> Acked-by: Ricardo Guimaraes <ricardo.guimaraes@openbossa.org> git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1459 596f6dd7-e928-0410-a184-9e12fd12cf7e
Remove hardcoded PORT and SERVER values Remove hardcoded PORT and SERVER values. Signed-off-by: Dinorah Monteiro <dinorah.monteiro@openbossa.org> Acked-by: Ragner Magalhaes <ragner.magalhaes@openbossa.org> git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1454 596f6dd7-e928-0410-a184-9e12fd12cf7e
Added request_add_buddy. FIXES: - Added request_add_buddy. Signed-off-by: Bruno Abinader <bruno.abinader@openbossa.org> Acked-by: Ragner Magalhaes <ragner.magalhaes@openbossa.org> git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1453 596f6dd7-e928-0410-a184-9e12fd12cf7e
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 <bruno.abinader@openbossa.org> Acked-by: Frederico Duarte <fred.duarte@openbossa.org> git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1449 596f6dd7-e928-0410-a184-9e12fd12cf7e
Method remove uses spaces inst. of tabs - Account method remove fixed to use spaces instead of tabs. Signed-off-by: Frederico Simas Duarte <fred.duarte@openbossa.org> git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1447 596f6dd7-e928-0410-a184-9e12fd12cf7e
Updated remove_account - Method remove_account changed to remove. - Uses self.__exists to check to account existance Signed-off-by: Frederico Simas Duarte <fred.duarte@openbossa.org> git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1445 596f6dd7-e928-0410-a184-9e12fd12cf7e
Added remove_account: - Bind for removing an account at libpurple. - New Method , remove_account(self, username, protocol_id). Signed-off-by: Frederico Simas Duarte <fred.duarte@openbossa.org> git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1444 596f6dd7-e928-0410-a184-9e12fd12cf7e
Added set_alias to Buddy class. FIXES: - Added set_alias to Buddy class. - Updated get_buddies_online() from Account class to return a list of Buddy classes instead of a tuple (name, alias). Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br> Acked-by: Ragner Magalhaes <ragner.magalhaes@indt.org.br> git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1443 596f6dd7-e928-0410-a184-9e12fd12cf7e
Added {add,remove}_buddy and get_buddies_online. FIXES: - Added {add,remove}_buddy and get_buddies_online on Account class. - Added exists property on Buddy class. - Removed new() methods from Buddy class. Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br> Signed-off-by: Ragner Magalhaes <ragner.magalhaes@indt.org.br> git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1442 596f6dd7-e928-0410-a184-9e12fd12cf7e
Fixing set_protocol_options(...) to verify key Fixing set_protocol_options(...) to verify keys Signed-off-by: Ragner Magalhaes <ragner.magalhaes@indt.org.br> Acked-by: Ricardo Guimaraes <ricardo.guimaraes@indt.org.br> Acked-by: Dinorah Monteiro <dinorah.monteiro@indt.org.br> git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1436 596f6dd7-e928-0410-a184-9e12fd12cf7e
Fixing function new() to save account to xml 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
Adding functions set/_get_protocol_options Adding functions set/_get_procotol_options to get and set the options of the account's protocol 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@1433 596f6dd7-e928-0410-a184-9e12fd12cf7e
Declaring fields of Account class and fixing segfault Declaring fields of Account class Fixing segfault caused by recursive dependency 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@1427 596f6dd7-e928-0410-a184-9e12fd12cf7e