-/* Generated by Cython 0.9.8 on Wed Dec 10 14:36:50 2008 */
+/* Generated by Cython 0.9.8 on Fri Dec 12 10:07:08 2008 */
#define PY_SSIZE_T_CLEAN
#include "Python.h"
char *__pyx_v_name;
PyObject *__pyx_v_status_types;
PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
+ PyObject *__pyx_1 = 0;
+ int __pyx_2;
PyObject *__pyx_3 = 0;
PyObject *__pyx_4 = 0;
__pyx_v_status_types = Py_None; Py_INCREF(Py_None);
* cdef char *id = NULL
* cdef char *name = NULL # <<<<<<<<<<<<<<
*
- * if self.__exists:
+ * status_types = []
*/
__pyx_v_name = NULL;
/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":231
* cdef char *name = NULL
*
- * if self.__exists: # <<<<<<<<<<<<<<
- * status_types = []
+ * status_types = [] # <<<<<<<<<<<<<<
+ * if self.__exists:
* iter = account.purple_account_get_status_types(self._get_structure())
*/
- __pyx_1 = __Pyx_PyObject_IsTrue(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__exists); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 231; __pyx_clineno = __LINE__; goto __pyx_L1;}
- if (__pyx_1) {
+ __pyx_1 = PyList_New(0); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 231; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ Py_DECREF(__pyx_v_status_types);
+ __pyx_v_status_types = ((PyObject *)__pyx_1);
+ __pyx_1 = 0;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":232
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":232
*
- * if self.__exists:
- * status_types = [] # <<<<<<<<<<<<<<
+ * status_types = []
+ * if self.__exists: # <<<<<<<<<<<<<<
* iter = account.purple_account_get_status_types(self._get_structure())
* while iter:
*/
- __pyx_2 = PyList_New(0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 232; __pyx_clineno = __LINE__; goto __pyx_L1;}
- Py_DECREF(__pyx_v_status_types);
- __pyx_v_status_types = ((PyObject *)__pyx_2);
- __pyx_2 = 0;
+ __pyx_2 = __Pyx_PyObject_IsTrue(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__exists); if (unlikely(__pyx_2 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 232; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ if (__pyx_2) {
/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":233
+ * status_types = []
* if self.__exists:
- * status_types = []
* iter = account.purple_account_get_status_types(self._get_structure()) # <<<<<<<<<<<<<<
* while iter:
* c_statustype = <status.PurpleStatusType *> iter.data
__pyx_v_iter = purple_account_get_status_types(((struct __pyx_vtabstruct_6purple_Account *)((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__pyx_vtab)->_get_structure(((struct __pyx_obj_6purple_Account *)__pyx_v_self)));
/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":234
- * status_types = []
+ * if self.__exists:
* iter = account.purple_account_get_status_types(self._get_structure())
* while iter: # <<<<<<<<<<<<<<
* c_statustype = <status.PurpleStatusType *> iter.data
* id = <char *> status.purple_status_type_get_id(c_statustype)
*/
while (1) {
- __pyx_1 = (__pyx_v_iter != 0);
- if (!__pyx_1) break;
+ __pyx_2 = (__pyx_v_iter != 0);
+ if (!__pyx_2) break;
/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":235
* iter = account.purple_account_get_status_types(self._get_structure())
* name = <char *> status.purple_status_type_get_name(c_statustype)
* status_types.append((id, name)) # <<<<<<<<<<<<<<
* iter = iter.next
- * return status_types
+ *
*/
- __pyx_2 = __Pyx_PyBytes_FromString(__pyx_v_id); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_1 = __Pyx_PyBytes_FromString(__pyx_v_id); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1;}
__pyx_3 = __Pyx_PyBytes_FromString(__pyx_v_name); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1;}
__pyx_4 = PyTuple_New(2); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1;}
- PyTuple_SET_ITEM(__pyx_4, 0, __pyx_2);
+ PyTuple_SET_ITEM(__pyx_4, 0, __pyx_1);
PyTuple_SET_ITEM(__pyx_4, 1, __pyx_3);
- __pyx_2 = 0;
+ __pyx_1 = 0;
__pyx_3 = 0;
- __pyx_2 = __Pyx_PyObject_Append(__pyx_v_status_types, ((PyObject *)__pyx_4)); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_1 = __Pyx_PyObject_Append(__pyx_v_status_types, ((PyObject *)__pyx_4)); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1;}
Py_DECREF(((PyObject *)__pyx_4)); __pyx_4 = 0;
- Py_DECREF(__pyx_2); __pyx_2 = 0;
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":239
* name = <char *> status.purple_status_type_get_name(c_statustype)
* status_types.append((id, name))
* iter = iter.next # <<<<<<<<<<<<<<
- * return status_types
- * else:
+ *
+ * return status_types
*/
__pyx_v_iter = __pyx_v_iter->next;
}
-
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":240
- * status_types.append((id, name))
- * iter = iter.next
- * return status_types # <<<<<<<<<<<<<<
- * else:
- * return None
- */
- Py_INCREF(__pyx_v_status_types);
- __pyx_r = __pyx_v_status_types;
- goto __pyx_L0;
goto __pyx_L4;
}
- /*else*/ {
+ __pyx_L4:;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":242
- * return status_types
- * else:
- * return None # <<<<<<<<<<<<<<
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":241
+ * iter = iter.next
+ *
+ * return status_types # <<<<<<<<<<<<<<
*
* status_types = property(__get_status_types)
*/
- Py_INCREF(Py_None);
- __pyx_r = Py_None;
- goto __pyx_L0;
- }
- __pyx_L4:;
+ Py_INCREF(__pyx_v_status_types);
+ __pyx_r = __pyx_v_status_types;
+ goto __pyx_L0;
__pyx_r = Py_None; Py_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1:;
- Py_XDECREF(__pyx_2);
+ Py_XDECREF(__pyx_1);
Py_XDECREF(__pyx_3);
Py_XDECREF(__pyx_4);
__Pyx_AddTraceback("purple.Account.__get_status_types");
return __pyx_r;
}
-/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":246
+/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":245
* status_types = property(__get_status_types)
*
* def __get_active_status(self): # <<<<<<<<<<<<<<
PyObject *__pyx_2 = 0;
__pyx_v_active = Py_None; Py_INCREF(Py_None);
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":247
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":246
*
* def __get_active_status(self):
* cdef status.PurpleStatus* c_status = NULL # <<<<<<<<<<<<<<
__pyx_v_c_status = NULL;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":248
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":247
* def __get_active_status(self):
* cdef status.PurpleStatus* c_status = NULL
* cdef char *type = NULL # <<<<<<<<<<<<<<
__pyx_v_type = NULL;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":249
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":248
* cdef status.PurpleStatus* c_status = NULL
* cdef char *type = NULL
* cdef char *name = NULL # <<<<<<<<<<<<<<
__pyx_v_name = NULL;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":250
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":249
* cdef char *type = NULL
* cdef char *name = NULL
* cdef char *msg = NULL # <<<<<<<<<<<<<<
__pyx_v_msg = NULL;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":251
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":250
* cdef char *name = NULL
* cdef char *msg = NULL
* if self.__exists: # <<<<<<<<<<<<<<
* active = {}
* c_status = <status.PurpleStatus*> account.purple_account_get_active_status(self._get_structure())
*/
- __pyx_1 = __Pyx_PyObject_IsTrue(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__exists); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 251; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_1 = __Pyx_PyObject_IsTrue(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__exists); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 250; __pyx_clineno = __LINE__; goto __pyx_L1;}
if (__pyx_1) {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":252
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":251
* cdef char *msg = NULL
* if self.__exists:
* active = {} # <<<<<<<<<<<<<<
* c_status = <status.PurpleStatus*> account.purple_account_get_active_status(self._get_structure())
* type = <char *> status.purple_status_get_id(c_status)
*/
- __pyx_2 = PyDict_New(); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 252; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_2 = PyDict_New(); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 251; __pyx_clineno = __LINE__; goto __pyx_L1;}
Py_DECREF(__pyx_v_active);
__pyx_v_active = ((PyObject *)__pyx_2);
__pyx_2 = 0;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":253
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":252
* if self.__exists:
* active = {}
* c_status = <status.PurpleStatus*> account.purple_account_get_active_status(self._get_structure()) # <<<<<<<<<<<<<<
*/
__pyx_v_c_status = ((PurpleStatus *)purple_account_get_active_status(((struct __pyx_vtabstruct_6purple_Account *)((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__pyx_vtab)->_get_structure(((struct __pyx_obj_6purple_Account *)__pyx_v_self))));
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":254
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":253
* active = {}
* c_status = <status.PurpleStatus*> account.purple_account_get_active_status(self._get_structure())
* type = <char *> status.purple_status_get_id(c_status) # <<<<<<<<<<<<<<
*/
__pyx_v_type = ((char *)purple_status_get_id(__pyx_v_c_status));
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":255
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":254
* c_status = <status.PurpleStatus*> account.purple_account_get_active_status(self._get_structure())
* type = <char *> status.purple_status_get_id(c_status)
* name = <char *> status.purple_status_get_name(c_status) # <<<<<<<<<<<<<<
*/
__pyx_v_name = ((char *)purple_status_get_name(__pyx_v_c_status));
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":257
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":256
* name = <char *> status.purple_status_get_name(c_status)
* msg = <char *> status.purple_status_get_attr_string(c_status,
* "message") # <<<<<<<<<<<<<<
*/
__pyx_v_msg = ((char *)purple_status_get_attr_string(__pyx_v_c_status, __pyx_k_450));
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":259
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":258
* "message")
*
* active['type'] = type # <<<<<<<<<<<<<<
* active['name'] = name
* if msg:
*/
- __pyx_2 = __Pyx_PyBytes_FromString(__pyx_v_type); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 259; __pyx_clineno = __LINE__; goto __pyx_L1;}
- if (PyObject_SetItem(__pyx_v_active, __pyx_kp_451, __pyx_2) < 0) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 259; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_2 = __Pyx_PyBytes_FromString(__pyx_v_type); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 258; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ if (PyObject_SetItem(__pyx_v_active, __pyx_kp_451, __pyx_2) < 0) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 258; __pyx_clineno = __LINE__; goto __pyx_L1;}
Py_DECREF(__pyx_2); __pyx_2 = 0;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":260
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":259
*
* active['type'] = type
* active['name'] = name # <<<<<<<<<<<<<<
* if msg:
* active['message'] = msg
*/
- __pyx_2 = __Pyx_PyBytes_FromString(__pyx_v_name); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 260; __pyx_clineno = __LINE__; goto __pyx_L1;}
- if (PyObject_SetItem(__pyx_v_active, __pyx_kp_452, __pyx_2) < 0) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 260; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_2 = __Pyx_PyBytes_FromString(__pyx_v_name); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 259; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ if (PyObject_SetItem(__pyx_v_active, __pyx_kp_452, __pyx_2) < 0) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 259; __pyx_clineno = __LINE__; goto __pyx_L1;}
Py_DECREF(__pyx_2); __pyx_2 = 0;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":261
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":260
* active['type'] = type
* active['name'] = name
* if msg: # <<<<<<<<<<<<<<
__pyx_1 = (__pyx_v_msg != 0);
if (__pyx_1) {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":262
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":261
* active['name'] = name
* if msg:
* active['message'] = msg # <<<<<<<<<<<<<<
*
* return active
*/
- __pyx_2 = __Pyx_PyBytes_FromString(__pyx_v_msg); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 262; __pyx_clineno = __LINE__; goto __pyx_L1;}
- if (PyObject_SetItem(__pyx_v_active, __pyx_kp_453, __pyx_2) < 0) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 262; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_2 = __Pyx_PyBytes_FromString(__pyx_v_msg); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 261; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ if (PyObject_SetItem(__pyx_v_active, __pyx_kp_453, __pyx_2) < 0) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 261; __pyx_clineno = __LINE__; goto __pyx_L1;}
Py_DECREF(__pyx_2); __pyx_2 = 0;
goto __pyx_L5;
}
__pyx_L5:;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":264
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":263
* active['message'] = msg
*
* return active # <<<<<<<<<<<<<<
}
/*else*/ {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":266
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":265
* return active
* else:
* return None # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":269
+/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":268
* active_status = property(__get_active_status)
*
* def set_username(self, username): # <<<<<<<<<<<<<<
int __pyx_1;
char *__pyx_2;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":276
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":275
* @return True if successful, False if account doesn't exists
* """
* if self.__exists: # <<<<<<<<<<<<<<
* account.purple_account_set_username(self._get_structure(), \
* username)
*/
- __pyx_1 = __Pyx_PyObject_IsTrue(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__exists); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_1 = __Pyx_PyObject_IsTrue(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__exists); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 275; __pyx_clineno = __LINE__; goto __pyx_L1;}
if (__pyx_1) {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":278
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":277
* if self.__exists:
* account.purple_account_set_username(self._get_structure(), \
* username) # <<<<<<<<<<<<<<
* return True
* else:
*/
- __pyx_2 = __Pyx_PyBytes_AsString(__pyx_v_username); if (unlikely((!__pyx_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 278; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_2 = __Pyx_PyBytes_AsString(__pyx_v_username); if (unlikely((!__pyx_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 277; __pyx_clineno = __LINE__; goto __pyx_L1;}
purple_account_set_username(((struct __pyx_vtabstruct_6purple_Account *)((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__pyx_vtab)->_get_structure(((struct __pyx_obj_6purple_Account *)__pyx_v_self)), __pyx_2);
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":279
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":278
* account.purple_account_set_username(self._get_structure(), \
* username)
* return True # <<<<<<<<<<<<<<
}
/*else*/ {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":281
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":280
* return True
* else:
* return False # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":283
+/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":282
* return False
*
* def set_protocol(self, protocol): # <<<<<<<<<<<<<<
int __pyx_2;
char *__pyx_3;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":290
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":289
* @return True if successful, False if account doesn't exists
* """
* if protocol.exists and self.__exists: # <<<<<<<<<<<<<<
* account.purple_account_set_protocol_id(self._get_structure(), \
* protocol.id)
*/
- __pyx_1 = PyObject_GetAttr(__pyx_v_protocol, __pyx_kp_exists); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1;}
- __pyx_2 = __Pyx_PyObject_IsTrue(__pyx_1); if (unlikely(__pyx_2 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_1 = PyObject_GetAttr(__pyx_v_protocol, __pyx_kp_exists); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 289; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_2 = __Pyx_PyObject_IsTrue(__pyx_1); if (unlikely(__pyx_2 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 289; __pyx_clineno = __LINE__; goto __pyx_L1;}
if (__pyx_2) {
Py_DECREF(__pyx_1); __pyx_1 = 0;
__pyx_1 = ((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__exists;
Py_INCREF(__pyx_1);
}
- __pyx_2 = __Pyx_PyObject_IsTrue(__pyx_1); if (unlikely(__pyx_2 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_2 = __Pyx_PyObject_IsTrue(__pyx_1); if (unlikely(__pyx_2 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 289; __pyx_clineno = __LINE__; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
if (__pyx_2) {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":292
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":291
* if protocol.exists and self.__exists:
* account.purple_account_set_protocol_id(self._get_structure(), \
* protocol.id) # <<<<<<<<<<<<<<
* self.__protocol = protocol
* return True
*/
- __pyx_1 = PyObject_GetAttr(__pyx_v_protocol, __pyx_kp_id); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L1;}
- __pyx_3 = __Pyx_PyBytes_AsString(__pyx_1); if (unlikely((!__pyx_3) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_1 = PyObject_GetAttr(__pyx_v_protocol, __pyx_kp_id); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 291; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_3 = __Pyx_PyBytes_AsString(__pyx_1); if (unlikely((!__pyx_3) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 291; __pyx_clineno = __LINE__; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
purple_account_set_protocol_id(((struct __pyx_vtabstruct_6purple_Account *)((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__pyx_vtab)->_get_structure(((struct __pyx_obj_6purple_Account *)__pyx_v_self)), __pyx_3);
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":293
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":292
* account.purple_account_set_protocol_id(self._get_structure(), \
* protocol.id)
* self.__protocol = protocol # <<<<<<<<<<<<<<
Py_DECREF(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__protocol);
((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__protocol = __pyx_v_protocol;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":294
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":293
* protocol.id)
* self.__protocol = protocol
* return True # <<<<<<<<<<<<<<
}
/*else*/ {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":296
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":295
* return True
* else:
* return False # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":298
+/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":297
* return False
*
* def set_protocol_options(self, po): # <<<<<<<<<<<<<<
gboolean __pyx_8;
__pyx_v_sett = Py_None; Py_INCREF(Py_None);
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":314
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":313
* cdef glib.gboolean bool_value
*
* c_account = self._get_structure() # <<<<<<<<<<<<<<
*/
__pyx_v_c_account = ((struct __pyx_vtabstruct_6purple_Account *)((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__pyx_vtab)->_get_structure(((struct __pyx_obj_6purple_Account *)__pyx_v_self));
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":316
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":315
* c_account = self._get_structure()
*
* if c_account == NULL: # <<<<<<<<<<<<<<
__pyx_1 = (__pyx_v_c_account == NULL);
if (__pyx_1) {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":317
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":316
*
* if c_account == NULL:
* return False # <<<<<<<<<<<<<<
}
__pyx_L4:;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":319
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":318
* return False
*
* c_plugin = plugin.purple_plugins_find_with_id(self.__protocol.id) # <<<<<<<<<<<<<<
* prpl_info = plugin.PURPLE_PLUGIN_PROTOCOL_INFO(c_plugin)
* iter = prpl_info.protocol_options
*/
- __pyx_2 = PyObject_GetAttr(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__protocol, __pyx_kp_id); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 319; __pyx_clineno = __LINE__; goto __pyx_L1;}
- __pyx_3 = __Pyx_PyBytes_AsString(__pyx_2); if (unlikely((!__pyx_3) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 319; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_2 = PyObject_GetAttr(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__protocol, __pyx_kp_id); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_3 = __Pyx_PyBytes_AsString(__pyx_2); if (unlikely((!__pyx_3) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1;}
Py_DECREF(__pyx_2); __pyx_2 = 0;
__pyx_v_c_plugin = purple_plugins_find_with_id(__pyx_3);
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":320
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":319
*
* c_plugin = plugin.purple_plugins_find_with_id(self.__protocol.id)
* prpl_info = plugin.PURPLE_PLUGIN_PROTOCOL_INFO(c_plugin) # <<<<<<<<<<<<<<
*/
__pyx_v_prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(__pyx_v_c_plugin);
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":321
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":320
* c_plugin = plugin.purple_plugins_find_with_id(self.__protocol.id)
* prpl_info = plugin.PURPLE_PLUGIN_PROTOCOL_INFO(c_plugin)
* iter = prpl_info.protocol_options # <<<<<<<<<<<<<<
*/
__pyx_v_iter = __pyx_v_prpl_info->protocol_options;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":323
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":322
* iter = prpl_info.protocol_options
*
* while iter: # <<<<<<<<<<<<<<
__pyx_1 = (__pyx_v_iter != 0);
if (!__pyx_1) break;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":325
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":324
* while iter:
*
* option = <accountopt.PurpleAccountOption *> iter.data # <<<<<<<<<<<<<<
*/
__pyx_v_option = ((PurpleAccountOption *)__pyx_v_iter->data);
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":326
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":325
*
* option = <accountopt.PurpleAccountOption *> iter.data
* type = accountopt.purple_account_option_get_type(option) # <<<<<<<<<<<<<<
*/
__pyx_v_type = purple_account_option_get_type(__pyx_v_option);
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":327
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":326
* option = <accountopt.PurpleAccountOption *> iter.data
* type = accountopt.purple_account_option_get_type(option)
* setting = <char *> accountopt.purple_account_option_get_setting(option) # <<<<<<<<<<<<<<
*/
__pyx_v_setting = ((char *)purple_account_option_get_setting(__pyx_v_option));
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":329
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":328
* setting = <char *> accountopt.purple_account_option_get_setting(option)
*
* sett = str(<char *> setting) # <<<<<<<<<<<<<<
*
* if not po.has_key(sett):
*/
- __pyx_2 = __Pyx_PyBytes_FromString(((char *)__pyx_v_setting)); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 329; __pyx_clineno = __LINE__; goto __pyx_L1;}
- __pyx_4 = PyTuple_New(1); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 329; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_2 = __Pyx_PyBytes_FromString(((char *)__pyx_v_setting)); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 328; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_4 = PyTuple_New(1); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 328; __pyx_clineno = __LINE__; goto __pyx_L1;}
PyTuple_SET_ITEM(__pyx_4, 0, __pyx_2);
__pyx_2 = 0;
- __pyx_2 = PyObject_Call(((PyObject*)&PyBytes_Type), ((PyObject *)__pyx_4), NULL); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 329; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_2 = PyObject_Call(((PyObject*)&PyBytes_Type), ((PyObject *)__pyx_4), NULL); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 328; __pyx_clineno = __LINE__; goto __pyx_L1;}
Py_DECREF(((PyObject *)__pyx_4)); __pyx_4 = 0;
Py_DECREF(__pyx_v_sett);
__pyx_v_sett = __pyx_2;
__pyx_2 = 0;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":331
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":330
* sett = str(<char *> setting)
*
* if not po.has_key(sett): # <<<<<<<<<<<<<<
* iter = iter.next
* continue
*/
- __pyx_4 = PyObject_GetAttr(__pyx_v_po, __pyx_kp_has_key); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 331; __pyx_clineno = __LINE__; goto __pyx_L1;}
- __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 331; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_4 = PyObject_GetAttr(__pyx_v_po, __pyx_kp_has_key); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1;}
Py_INCREF(__pyx_v_sett);
PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_sett);
- __pyx_5 = PyObject_Call(__pyx_4, ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 331; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_5 = PyObject_Call(__pyx_4, ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1;}
Py_DECREF(__pyx_4); __pyx_4 = 0;
Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
- __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_5); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 331; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_5); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1;}
Py_DECREF(__pyx_5); __pyx_5 = 0;
__pyx_6 = (!__pyx_1);
if (__pyx_6) {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":332
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":331
*
* if not po.has_key(sett):
* iter = iter.next # <<<<<<<<<<<<<<
*/
__pyx_v_iter = __pyx_v_iter->next;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":333
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":332
* if not po.has_key(sett):
* iter = iter.next
* continue # <<<<<<<<<<<<<<
}
__pyx_L7:;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":335
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":334
* continue
*
* if type == prefs.PURPLE_PREF_STRING: # <<<<<<<<<<<<<<
__pyx_1 = (__pyx_v_type == PURPLE_PREF_STRING);
if (__pyx_1) {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":337
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":336
* if type == prefs.PURPLE_PREF_STRING:
*
* str_value = <char *> po[sett] # <<<<<<<<<<<<<<
* account.purple_account_set_string(c_account, setting, str_value)
*
*/
- __pyx_4 = PyObject_GetItem(__pyx_v_po, __pyx_v_sett); if (!__pyx_4) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 337; __pyx_clineno = __LINE__; goto __pyx_L1;}
- __pyx_3 = __Pyx_PyBytes_AsString(__pyx_4); if (unlikely((!__pyx_3) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 337; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_4 = PyObject_GetItem(__pyx_v_po, __pyx_v_sett); if (!__pyx_4) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 336; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_3 = __Pyx_PyBytes_AsString(__pyx_4); if (unlikely((!__pyx_3) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 336; __pyx_clineno = __LINE__; goto __pyx_L1;}
Py_DECREF(__pyx_4); __pyx_4 = 0;
__pyx_v_str_value = ((char *)__pyx_3);
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":338
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":337
*
* str_value = <char *> po[sett]
* account.purple_account_set_string(c_account, setting, str_value) # <<<<<<<<<<<<<<
goto __pyx_L8;
}
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":340
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":339
* account.purple_account_set_string(c_account, setting, str_value)
*
* elif type == prefs.PURPLE_PREF_INT: # <<<<<<<<<<<<<<
__pyx_6 = (__pyx_v_type == PURPLE_PREF_INT);
if (__pyx_6) {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":342
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":341
* elif type == prefs.PURPLE_PREF_INT:
*
* int_value = int(po[sett]) # <<<<<<<<<<<<<<
* account.purple_account_set_int(c_account, setting, int_value)
*
*/
- __pyx_2 = PyObject_GetItem(__pyx_v_po, __pyx_v_sett); if (!__pyx_2) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 342; __pyx_clineno = __LINE__; goto __pyx_L1;}
- __pyx_5 = PyTuple_New(1); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 342; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_2 = PyObject_GetItem(__pyx_v_po, __pyx_v_sett); if (!__pyx_2) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_5 = PyTuple_New(1); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L1;}
PyTuple_SET_ITEM(__pyx_5, 0, __pyx_2);
__pyx_2 = 0;
- __pyx_4 = PyObject_Call(((PyObject*)&PyInt_Type), ((PyObject *)__pyx_5), NULL); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 342; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_4 = PyObject_Call(((PyObject*)&PyInt_Type), ((PyObject *)__pyx_5), NULL); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L1;}
Py_DECREF(((PyObject *)__pyx_5)); __pyx_5 = 0;
- __pyx_7 = __pyx_PyInt_int(__pyx_4); if (unlikely((__pyx_7 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 342; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_7 = __pyx_PyInt_int(__pyx_4); if (unlikely((__pyx_7 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L1;}
Py_DECREF(__pyx_4); __pyx_4 = 0;
__pyx_v_int_value = __pyx_7;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":343
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":342
*
* int_value = int(po[sett])
* account.purple_account_set_int(c_account, setting, int_value) # <<<<<<<<<<<<<<
goto __pyx_L8;
}
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":345
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":344
* account.purple_account_set_int(c_account, setting, int_value)
*
* elif type == prefs.PURPLE_PREF_BOOLEAN: # <<<<<<<<<<<<<<
__pyx_1 = (__pyx_v_type == PURPLE_PREF_BOOLEAN);
if (__pyx_1) {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":347
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":346
* elif type == prefs.PURPLE_PREF_BOOLEAN:
*
* bool_value = bool(po[sett]) # <<<<<<<<<<<<<<
* account.purple_account_set_bool(c_account, setting, bool_value)
*
*/
- __pyx_2 = PyObject_GetItem(__pyx_v_po, __pyx_v_sett); if (!__pyx_2) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 347; __pyx_clineno = __LINE__; goto __pyx_L1;}
- __pyx_5 = PyTuple_New(1); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 347; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_2 = PyObject_GetItem(__pyx_v_po, __pyx_v_sett); if (!__pyx_2) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 346; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_5 = PyTuple_New(1); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 346; __pyx_clineno = __LINE__; goto __pyx_L1;}
PyTuple_SET_ITEM(__pyx_5, 0, __pyx_2);
__pyx_2 = 0;
- __pyx_4 = PyObject_Call(__pyx_builtin_bool, ((PyObject *)__pyx_5), NULL); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 347; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_4 = PyObject_Call(__pyx_builtin_bool, ((PyObject *)__pyx_5), NULL); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 346; __pyx_clineno = __LINE__; goto __pyx_L1;}
Py_DECREF(((PyObject *)__pyx_5)); __pyx_5 = 0;
- __pyx_8 = __pyx_PyInt_int(__pyx_4); if (unlikely((__pyx_8 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 347; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_8 = __pyx_PyInt_int(__pyx_4); if (unlikely((__pyx_8 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 346; __pyx_clineno = __LINE__; goto __pyx_L1;}
Py_DECREF(__pyx_4); __pyx_4 = 0;
__pyx_v_bool_value = __pyx_8;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":348
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":347
*
* bool_value = bool(po[sett])
* account.purple_account_set_bool(c_account, setting, bool_value) # <<<<<<<<<<<<<<
goto __pyx_L8;
}
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":350
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":349
* account.purple_account_set_bool(c_account, setting, bool_value)
*
* elif type == prefs.PURPLE_PREF_STRING_LIST: # <<<<<<<<<<<<<<
__pyx_6 = (__pyx_v_type == PURPLE_PREF_STRING_LIST);
if (__pyx_6) {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":352
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":351
* elif type == prefs.PURPLE_PREF_STRING_LIST:
*
* str_value = <char *> po[sett] # <<<<<<<<<<<<<<
* account.purple_account_set_string(c_account, setting, str_value)
*
*/
- __pyx_2 = PyObject_GetItem(__pyx_v_po, __pyx_v_sett); if (!__pyx_2) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 352; __pyx_clineno = __LINE__; goto __pyx_L1;}
- __pyx_3 = __Pyx_PyBytes_AsString(__pyx_2); if (unlikely((!__pyx_3) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 352; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_2 = PyObject_GetItem(__pyx_v_po, __pyx_v_sett); if (!__pyx_2) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_3 = __Pyx_PyBytes_AsString(__pyx_2); if (unlikely((!__pyx_3) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L1;}
Py_DECREF(__pyx_2); __pyx_2 = 0;
__pyx_v_str_value = ((char *)__pyx_3);
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":353
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":352
*
* str_value = <char *> po[sett]
* account.purple_account_set_string(c_account, setting, str_value) # <<<<<<<<<<<<<<
}
__pyx_L8:;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":355
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":354
* account.purple_account_set_string(c_account, setting, str_value)
*
* iter = iter.next # <<<<<<<<<<<<<<
__pyx_L5:;
}
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":357
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":356
* iter = iter.next
*
* return True # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":359
+/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":358
* return True
*
* def set_password(self, password): # <<<<<<<<<<<<<<
int __pyx_1;
char *__pyx_2;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":366
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":365
* @return True if successful, False if account doesn't exists
* """
* if self.__exists: # <<<<<<<<<<<<<<
* account.purple_account_set_password(self._get_structure(), \
* password)
*/
- __pyx_1 = __Pyx_PyObject_IsTrue(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__exists); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 366; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_1 = __Pyx_PyObject_IsTrue(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__exists); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 365; __pyx_clineno = __LINE__; goto __pyx_L1;}
if (__pyx_1) {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":368
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":367
* if self.__exists:
* account.purple_account_set_password(self._get_structure(), \
* password) # <<<<<<<<<<<<<<
* return True
* else:
*/
- __pyx_2 = __Pyx_PyBytes_AsString(__pyx_v_password); if (unlikely((!__pyx_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 368; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_2 = __Pyx_PyBytes_AsString(__pyx_v_password); if (unlikely((!__pyx_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 367; __pyx_clineno = __LINE__; goto __pyx_L1;}
purple_account_set_password(((struct __pyx_vtabstruct_6purple_Account *)((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__pyx_vtab)->_get_structure(((struct __pyx_obj_6purple_Account *)__pyx_v_self)), __pyx_2);
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":369
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":368
* account.purple_account_set_password(self._get_structure(), \
* password)
* return True # <<<<<<<<<<<<<<
}
/*else*/ {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":371
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":370
* return True
* else:
* return False # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":373
+/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":372
* return False
*
* def set_alias(self, alias): # <<<<<<<<<<<<<<
int __pyx_1;
char *__pyx_2;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":380
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":379
* @return True if successful, False if account doesn't exists
* """
* if self.__exists: # <<<<<<<<<<<<<<
* account.purple_account_set_alias(self._get_structure(), \
* alias)
*/
- __pyx_1 = __Pyx_PyObject_IsTrue(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__exists); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_1 = __Pyx_PyObject_IsTrue(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__exists); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 379; __pyx_clineno = __LINE__; goto __pyx_L1;}
if (__pyx_1) {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":382
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":381
* if self.__exists:
* account.purple_account_set_alias(self._get_structure(), \
* alias) # <<<<<<<<<<<<<<
* return True
* else:
*/
- __pyx_2 = __Pyx_PyBytes_AsString(__pyx_v_alias); if (unlikely((!__pyx_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 382; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_2 = __Pyx_PyBytes_AsString(__pyx_v_alias); if (unlikely((!__pyx_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 381; __pyx_clineno = __LINE__; goto __pyx_L1;}
purple_account_set_alias(((struct __pyx_vtabstruct_6purple_Account *)((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__pyx_vtab)->_get_structure(((struct __pyx_obj_6purple_Account *)__pyx_v_self)), __pyx_2);
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":383
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":382
* account.purple_account_set_alias(self._get_structure(), \
* alias)
* return True # <<<<<<<<<<<<<<
}
/*else*/ {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":385
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":384
* return True
* else:
* return False # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":387
+/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":386
* return False
*
* def set_user_info(self, user_info): # <<<<<<<<<<<<<<
int __pyx_1;
char *__pyx_2;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":394
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":393
* @return True if successful, False if account doesn't exists
* """
* if self.__exists: # <<<<<<<<<<<<<<
* account.purple_account_set_user_info(self._get_structure(), \
* user_info)
*/
- __pyx_1 = __Pyx_PyObject_IsTrue(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__exists); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 394; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_1 = __Pyx_PyObject_IsTrue(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__exists); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 393; __pyx_clineno = __LINE__; goto __pyx_L1;}
if (__pyx_1) {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":396
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":395
* if self.__exists:
* account.purple_account_set_user_info(self._get_structure(), \
* user_info) # <<<<<<<<<<<<<<
* return True
* else:
*/
- __pyx_2 = __Pyx_PyBytes_AsString(__pyx_v_user_info); if (unlikely((!__pyx_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 396; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_2 = __Pyx_PyBytes_AsString(__pyx_v_user_info); if (unlikely((!__pyx_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 395; __pyx_clineno = __LINE__; goto __pyx_L1;}
purple_account_set_user_info(((struct __pyx_vtabstruct_6purple_Account *)((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__pyx_vtab)->_get_structure(((struct __pyx_obj_6purple_Account *)__pyx_v_self)), __pyx_2);
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":397
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":396
* account.purple_account_set_user_info(self._get_structure(), \
* user_info)
* return True # <<<<<<<<<<<<<<
}
/*else*/ {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":399
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":398
* return True
* else:
* return False # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":401
+/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":400
* return False
*
* def set_remember_password(self, remember_password): # <<<<<<<<<<<<<<
int __pyx_1;
gboolean __pyx_2;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":409
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":408
* @return True if successful, False if account doesn't exists
* """
* if self.__exists: # <<<<<<<<<<<<<<
* account.purple_account_set_remember_password( \
* self._get_structure(), remember_password)
*/
- __pyx_1 = __Pyx_PyObject_IsTrue(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__exists); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 409; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_1 = __Pyx_PyObject_IsTrue(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__exists); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 408; __pyx_clineno = __LINE__; goto __pyx_L1;}
if (__pyx_1) {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":411
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":410
* if self.__exists:
* account.purple_account_set_remember_password( \
* self._get_structure(), remember_password) # <<<<<<<<<<<<<<
* return True
* else:
*/
- __pyx_2 = __pyx_PyInt_int(__pyx_v_remember_password); if (unlikely((__pyx_2 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 411; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_2 = __pyx_PyInt_int(__pyx_v_remember_password); if (unlikely((__pyx_2 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 410; __pyx_clineno = __LINE__; goto __pyx_L1;}
purple_account_set_remember_password(((struct __pyx_vtabstruct_6purple_Account *)((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__pyx_vtab)->_get_structure(((struct __pyx_obj_6purple_Account *)__pyx_v_self)), __pyx_2);
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":412
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":411
* account.purple_account_set_remember_password( \
* self._get_structure(), remember_password)
* return True # <<<<<<<<<<<<<<
}
/*else*/ {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":414
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":413
* return True
* else:
* return False # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":416
+/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":415
* return False
*
* def set_enabled(self, value): # <<<<<<<<<<<<<<
PyObject *__pyx_4 = 0;
gboolean __pyx_5;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":423
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":422
* @return True if successful, False if account doesn't exists
* """
* if self.__exists: # <<<<<<<<<<<<<<
* account.purple_account_set_enabled(self._get_structure(), \
* self.__core.ui_name, bool(value))
*/
- __pyx_1 = __Pyx_PyObject_IsTrue(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__exists); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 423; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_1 = __Pyx_PyObject_IsTrue(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__exists); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 422; __pyx_clineno = __LINE__; goto __pyx_L1;}
if (__pyx_1) {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":425
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":424
* if self.__exists:
* account.purple_account_set_enabled(self._get_structure(), \
* self.__core.ui_name, bool(value)) # <<<<<<<<<<<<<<
* return True
* else:
*/
- __pyx_2 = PyObject_GetAttr(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__core, __pyx_kp_ui_name); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 425; __pyx_clineno = __LINE__; goto __pyx_L1;}
- __pyx_3 = __Pyx_PyBytes_AsString(__pyx_2); if (unlikely((!__pyx_3) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 425; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_2 = PyObject_GetAttr(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__core, __pyx_kp_ui_name); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 424; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_3 = __Pyx_PyBytes_AsString(__pyx_2); if (unlikely((!__pyx_3) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 424; __pyx_clineno = __LINE__; goto __pyx_L1;}
Py_DECREF(__pyx_2); __pyx_2 = 0;
- __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 425; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 424; __pyx_clineno = __LINE__; goto __pyx_L1;}
Py_INCREF(__pyx_v_value);
PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_value);
- __pyx_4 = PyObject_Call(__pyx_builtin_bool, ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 425; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_4 = PyObject_Call(__pyx_builtin_bool, ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 424; __pyx_clineno = __LINE__; goto __pyx_L1;}
Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
- __pyx_5 = __pyx_PyInt_int(__pyx_4); if (unlikely((__pyx_5 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 425; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_5 = __pyx_PyInt_int(__pyx_4); if (unlikely((__pyx_5 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 424; __pyx_clineno = __LINE__; goto __pyx_L1;}
Py_DECREF(__pyx_4); __pyx_4 = 0;
purple_account_set_enabled(((struct __pyx_vtabstruct_6purple_Account *)((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__pyx_vtab)->_get_structure(((struct __pyx_obj_6purple_Account *)__pyx_v_self)), __pyx_3, __pyx_5);
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":426
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":425
* account.purple_account_set_enabled(self._get_structure(), \
* self.__core.ui_name, bool(value))
* return True # <<<<<<<<<<<<<<
}
/*else*/ {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":428
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":427
* return True
* else:
* return False # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":430
+/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":429
* return False
*
* def new(self): # <<<<<<<<<<<<<<
PyObject *__pyx_3 = 0;
char *__pyx_4;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":436
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":435
* @return True if successful, False if account already exists
* """
* if self.__exists: # <<<<<<<<<<<<<<
* return False
* else:
*/
- __pyx_1 = __Pyx_PyObject_IsTrue(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__exists); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 436; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_1 = __Pyx_PyObject_IsTrue(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__exists); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 435; __pyx_clineno = __LINE__; goto __pyx_L1;}
if (__pyx_1) {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":437
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":436
* """
* if self.__exists:
* return False # <<<<<<<<<<<<<<
}
/*else*/ {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":440
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":439
* else:
* account.purple_accounts_add(account.purple_account_new( \
* self.__username, self.__protocol.id)) # <<<<<<<<<<<<<<
*
* self.__exists = True
*/
- __pyx_2 = __Pyx_PyBytes_AsString(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__username); if (unlikely((!__pyx_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 440; __pyx_clineno = __LINE__; goto __pyx_L1;}
- __pyx_3 = PyObject_GetAttr(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__protocol, __pyx_kp_id); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 440; __pyx_clineno = __LINE__; goto __pyx_L1;}
- __pyx_4 = __Pyx_PyBytes_AsString(__pyx_3); if (unlikely((!__pyx_4) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 440; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_2 = __Pyx_PyBytes_AsString(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__username); if (unlikely((!__pyx_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 439; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_3 = PyObject_GetAttr(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__protocol, __pyx_kp_id); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 439; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_4 = __Pyx_PyBytes_AsString(__pyx_3); if (unlikely((!__pyx_4) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 439; __pyx_clineno = __LINE__; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
purple_accounts_add(purple_account_new(__pyx_2, __pyx_4));
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":442
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":441
* self.__username, self.__protocol.id))
*
* self.__exists = True # <<<<<<<<<<<<<<
Py_DECREF(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__exists);
((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__exists = Py_True;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":443
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":442
*
* self.__exists = True
* return True # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":445
+/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":444
* return True
*
* def remove(self): # <<<<<<<<<<<<<<
int __pyx_1;
__pyx_v_self__exists = Py_None; Py_INCREF(Py_None);
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":451
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":450
* @return True if successful, False if account doesn't exists
* """
* if self.__exists: # <<<<<<<<<<<<<<
* account.purple_accounts_delete(self._get_structure())
* self__exists = False
*/
- __pyx_1 = __Pyx_PyObject_IsTrue(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__exists); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 451; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_1 = __Pyx_PyObject_IsTrue(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__exists); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 450; __pyx_clineno = __LINE__; goto __pyx_L1;}
if (__pyx_1) {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":452
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":451
* """
* if self.__exists:
* account.purple_accounts_delete(self._get_structure()) # <<<<<<<<<<<<<<
*/
purple_accounts_delete(((struct __pyx_vtabstruct_6purple_Account *)((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__pyx_vtab)->_get_structure(((struct __pyx_obj_6purple_Account *)__pyx_v_self)));
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":453
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":452
* if self.__exists:
* account.purple_accounts_delete(self._get_structure())
* self__exists = False # <<<<<<<<<<<<<<
Py_DECREF(__pyx_v_self__exists);
__pyx_v_self__exists = Py_False;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":454
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":453
* account.purple_accounts_delete(self._get_structure())
* self__exists = False
* return True # <<<<<<<<<<<<<<
}
/*else*/ {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":456
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":455
* return True
* else:
* return False # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":458
+/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":457
* return False
*
* def connect(self): # <<<<<<<<<<<<<<
PyObject *__pyx_r;
int __pyx_1;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":464
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":463
* @return True if successful, False if account doesn't exists
* """
* if self.__exists: # <<<<<<<<<<<<<<
* account.purple_account_connect(self._get_structure())
* return True
*/
- __pyx_1 = __Pyx_PyObject_IsTrue(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__exists); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 464; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_1 = __Pyx_PyObject_IsTrue(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__exists); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 463; __pyx_clineno = __LINE__; goto __pyx_L1;}
if (__pyx_1) {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":465
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":464
* """
* if self.__exists:
* account.purple_account_connect(self._get_structure()) # <<<<<<<<<<<<<<
*/
purple_account_connect(((struct __pyx_vtabstruct_6purple_Account *)((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__pyx_vtab)->_get_structure(((struct __pyx_obj_6purple_Account *)__pyx_v_self)));
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":466
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":465
* if self.__exists:
* account.purple_account_connect(self._get_structure())
* return True # <<<<<<<<<<<<<<
}
/*else*/ {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":468
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":467
* return True
* else:
* return False # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":470
+/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":469
* return False
*
* def disconnect(self): # <<<<<<<<<<<<<<
PyObject *__pyx_r;
int __pyx_1;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":476
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":475
* @return True if successful, False if account doesn't exists
* """
* if self.__exists: # <<<<<<<<<<<<<<
* account.purple_account_disconnect(self._get_structure())
* return True
*/
- __pyx_1 = __Pyx_PyObject_IsTrue(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__exists); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 476; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_1 = __Pyx_PyObject_IsTrue(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__exists); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 475; __pyx_clineno = __LINE__; goto __pyx_L1;}
if (__pyx_1) {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":477
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":476
* """
* if self.__exists:
* account.purple_account_disconnect(self._get_structure()) # <<<<<<<<<<<<<<
*/
purple_account_disconnect(((struct __pyx_vtabstruct_6purple_Account *)((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__pyx_vtab)->_get_structure(((struct __pyx_obj_6purple_Account *)__pyx_v_self)));
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":478
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":477
* if self.__exists:
* account.purple_account_disconnect(self._get_structure())
* return True # <<<<<<<<<<<<<<
}
/*else*/ {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":480
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":479
* return True
* else:
* return False # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":482
+/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":481
* return False
*
* def add_buddy(self, name, alias=None, group=None): # <<<<<<<<<<<<<<
}
}
else {
- if (unlikely(!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O|OO", __pyx_argnames, &__pyx_v_name, &__pyx_v_alias, &__pyx_v_group))) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 482; __pyx_clineno = __LINE__; goto __pyx_L2;}
+ if (unlikely(!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O|OO", __pyx_argnames, &__pyx_v_name, &__pyx_v_alias, &__pyx_v_group))) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 481; __pyx_clineno = __LINE__; goto __pyx_L2;}
}
goto __pyx_L3;
__pyx_L2:;
return NULL;
__pyx_L3:;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":490
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":489
* @return True if successfull, False otherwise
* """
* cdef blist.PurpleBuddy *c_buddy = NULL # <<<<<<<<<<<<<<
__pyx_v_c_buddy = NULL;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":491
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":490
* """
* cdef blist.PurpleBuddy *c_buddy = NULL
* cdef blist.PurpleGroup *c_group = NULL # <<<<<<<<<<<<<<
__pyx_v_c_group = NULL;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":492
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":491
* cdef blist.PurpleBuddy *c_buddy = NULL
* cdef blist.PurpleGroup *c_group = NULL
* cdef char *c_alias = NULL # <<<<<<<<<<<<<<
__pyx_v_c_alias = NULL;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":494
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":493
* cdef char *c_alias = NULL
*
* if alias: # <<<<<<<<<<<<<<
* c_alias = alias
* else:
*/
- __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_v_alias); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 494; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_v_alias); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 493; __pyx_clineno = __LINE__; goto __pyx_L1;}
if (__pyx_1) {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":495
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":494
*
* if alias:
* c_alias = alias # <<<<<<<<<<<<<<
* else:
* c_alias = NULL
*/
- __pyx_2 = __Pyx_PyBytes_AsString(__pyx_v_alias); if (unlikely((!__pyx_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 495; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_2 = __Pyx_PyBytes_AsString(__pyx_v_alias); if (unlikely((!__pyx_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 494; __pyx_clineno = __LINE__; goto __pyx_L1;}
__pyx_v_c_alias = __pyx_2;
goto __pyx_L4;
}
/*else*/ {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":497
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":496
* c_alias = alias
* else:
* c_alias = NULL # <<<<<<<<<<<<<<
}
__pyx_L4:;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":499
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":498
* c_alias = NULL
*
* if self.__exists and \ # <<<<<<<<<<<<<<
*/
__pyx_3 = ((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__exists;
Py_INCREF(__pyx_3);
- __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_3); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 499; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_3); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 498; __pyx_clineno = __LINE__; goto __pyx_L1;}
if (__pyx_1) {
Py_DECREF(__pyx_3); __pyx_3 = 0;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":500
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":499
*
* if self.__exists and \
* account.purple_account_is_connected(self._get_structure()): # <<<<<<<<<<<<<<
* if blist.purple_find_buddy(self._get_structure(), name):
* return False
*/
- __pyx_3 = PyInt_FromLong(purple_account_is_connected(((struct __pyx_vtabstruct_6purple_Account *)((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__pyx_vtab)->_get_structure(((struct __pyx_obj_6purple_Account *)__pyx_v_self)))); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 500; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_3 = PyInt_FromLong(purple_account_is_connected(((struct __pyx_vtabstruct_6purple_Account *)((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__pyx_vtab)->_get_structure(((struct __pyx_obj_6purple_Account *)__pyx_v_self)))); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 499; __pyx_clineno = __LINE__; goto __pyx_L1;}
}
- __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_3); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 499; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_3); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 498; __pyx_clineno = __LINE__; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
if (__pyx_1) {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":501
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":500
* if self.__exists and \
* account.purple_account_is_connected(self._get_structure()):
* if blist.purple_find_buddy(self._get_structure(), name): # <<<<<<<<<<<<<<
* return False
*
*/
- __pyx_2 = __Pyx_PyBytes_AsString(__pyx_v_name); if (unlikely((!__pyx_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 501; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_2 = __Pyx_PyBytes_AsString(__pyx_v_name); if (unlikely((!__pyx_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 500; __pyx_clineno = __LINE__; goto __pyx_L1;}
__pyx_1 = (purple_find_buddy(((struct __pyx_vtabstruct_6purple_Account *)((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__pyx_vtab)->_get_structure(((struct __pyx_obj_6purple_Account *)__pyx_v_self)), __pyx_2) != 0);
if (__pyx_1) {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":502
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":501
* account.purple_account_is_connected(self._get_structure()):
* if blist.purple_find_buddy(self._get_structure(), name):
* return False # <<<<<<<<<<<<<<
}
__pyx_L6:;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":504
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":503
* return False
*
* if group: # <<<<<<<<<<<<<<
* c_group = blist.purple_find_group(group)
* if c_group == NULL:
*/
- __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_v_group); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 504; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_v_group); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1;}
if (__pyx_1) {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":505
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":504
*
* if group:
* c_group = blist.purple_find_group(group) # <<<<<<<<<<<<<<
* if c_group == NULL:
* c_group = blist.purple_group_new(group)
*/
- __pyx_2 = __Pyx_PyBytes_AsString(__pyx_v_group); if (unlikely((!__pyx_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 505; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_2 = __Pyx_PyBytes_AsString(__pyx_v_group); if (unlikely((!__pyx_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 504; __pyx_clineno = __LINE__; goto __pyx_L1;}
__pyx_v_c_group = purple_find_group(__pyx_2);
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":506
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":505
* if group:
* c_group = blist.purple_find_group(group)
* if c_group == NULL: # <<<<<<<<<<<<<<
__pyx_1 = (__pyx_v_c_group == NULL);
if (__pyx_1) {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":507
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":506
* c_group = blist.purple_find_group(group)
* if c_group == NULL:
* c_group = blist.purple_group_new(group) # <<<<<<<<<<<<<<
*
* c_buddy = blist.purple_buddy_new(self._get_structure(), \
*/
- __pyx_2 = __Pyx_PyBytes_AsString(__pyx_v_group); if (unlikely((!__pyx_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 507; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_2 = __Pyx_PyBytes_AsString(__pyx_v_group); if (unlikely((!__pyx_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 506; __pyx_clineno = __LINE__; goto __pyx_L1;}
__pyx_v_c_group = purple_group_new(__pyx_2);
goto __pyx_L8;
}
}
__pyx_L7:;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":510
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":509
*
* c_buddy = blist.purple_buddy_new(self._get_structure(), \
* name, c_alias) # <<<<<<<<<<<<<<
* if c_buddy == NULL:
* return False
*/
- __pyx_2 = __Pyx_PyBytes_AsString(__pyx_v_name); if (unlikely((!__pyx_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 510; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_2 = __Pyx_PyBytes_AsString(__pyx_v_name); if (unlikely((!__pyx_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 509; __pyx_clineno = __LINE__; goto __pyx_L1;}
__pyx_v_c_buddy = purple_buddy_new(((struct __pyx_vtabstruct_6purple_Account *)((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__pyx_vtab)->_get_structure(((struct __pyx_obj_6purple_Account *)__pyx_v_self)), __pyx_2, __pyx_v_c_alias);
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":511
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":510
* c_buddy = blist.purple_buddy_new(self._get_structure(), \
* name, c_alias)
* if c_buddy == NULL: # <<<<<<<<<<<<<<
__pyx_1 = (__pyx_v_c_buddy == NULL);
if (__pyx_1) {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":512
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":511
* name, c_alias)
* if c_buddy == NULL:
* return False # <<<<<<<<<<<<<<
}
__pyx_L9:;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":514
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":513
* return False
*
* blist.purple_blist_add_buddy(c_buddy, NULL, c_group, NULL) # <<<<<<<<<<<<<<
*/
purple_blist_add_buddy(__pyx_v_c_buddy, NULL, __pyx_v_c_group, NULL);
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":515
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":514
*
* blist.purple_blist_add_buddy(c_buddy, NULL, c_group, NULL)
* account.purple_account_add_buddy(self._get_structure(), c_buddy) # <<<<<<<<<<<<<<
*/
purple_account_add_buddy(((struct __pyx_vtabstruct_6purple_Account *)((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__pyx_vtab)->_get_structure(((struct __pyx_obj_6purple_Account *)__pyx_v_self)), __pyx_v_c_buddy);
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":516
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":515
* blist.purple_blist_add_buddy(c_buddy, NULL, c_group, NULL)
* account.purple_account_add_buddy(self._get_structure(), c_buddy)
* if c_alias: # <<<<<<<<<<<<<<
__pyx_1 = (__pyx_v_c_alias != 0);
if (__pyx_1) {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":517
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":516
* account.purple_account_add_buddy(self._get_structure(), c_buddy)
* if c_alias:
* blist.purple_blist_alias_buddy(c_buddy, c_alias) # <<<<<<<<<<<<<<
*/
purple_blist_alias_buddy(__pyx_v_c_buddy, __pyx_v_c_alias);
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":518
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":517
* if c_alias:
* blist.purple_blist_alias_buddy(c_buddy, c_alias)
* server.serv_alias_buddy(c_buddy) # <<<<<<<<<<<<<<
}
__pyx_L10:;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":520
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":519
* server.serv_alias_buddy(c_buddy)
*
* return True # <<<<<<<<<<<<<<
}
/*else*/ {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":523
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":522
*
* else:
* return None # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":525
+/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":524
* return None
*
* def remove_buddy(self, name): # <<<<<<<<<<<<<<
int __pyx_2;
char *__pyx_3;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":532
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":531
* @return True if successful, False otherwise
* """
* cdef blist.PurpleBuddy *c_buddy = NULL # <<<<<<<<<<<<<<
__pyx_v_c_buddy = NULL;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":533
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":532
* """
* cdef blist.PurpleBuddy *c_buddy = NULL
* cdef blist.PurpleGroup *c_group = NULL # <<<<<<<<<<<<<<
__pyx_v_c_group = NULL;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":535
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":534
* cdef blist.PurpleGroup *c_group = NULL
*
* if self.__exists and \ # <<<<<<<<<<<<<<
*/
__pyx_1 = ((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__exists;
Py_INCREF(__pyx_1);
- __pyx_2 = __Pyx_PyObject_IsTrue(__pyx_1); if (unlikely(__pyx_2 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 535; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_2 = __Pyx_PyObject_IsTrue(__pyx_1); if (unlikely(__pyx_2 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 534; __pyx_clineno = __LINE__; goto __pyx_L1;}
if (__pyx_2) {
Py_DECREF(__pyx_1); __pyx_1 = 0;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":536
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":535
*
* if self.__exists and \
* account.purple_account_is_connected(self._get_structure()): # <<<<<<<<<<<<<<
* c_buddy = blist.purple_find_buddy(self._get_structure(), name)
* if c_buddy == NULL:
*/
- __pyx_1 = PyInt_FromLong(purple_account_is_connected(((struct __pyx_vtabstruct_6purple_Account *)((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__pyx_vtab)->_get_structure(((struct __pyx_obj_6purple_Account *)__pyx_v_self)))); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 536; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_1 = PyInt_FromLong(purple_account_is_connected(((struct __pyx_vtabstruct_6purple_Account *)((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__pyx_vtab)->_get_structure(((struct __pyx_obj_6purple_Account *)__pyx_v_self)))); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 535; __pyx_clineno = __LINE__; goto __pyx_L1;}
}
- __pyx_2 = __Pyx_PyObject_IsTrue(__pyx_1); if (unlikely(__pyx_2 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 535; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_2 = __Pyx_PyObject_IsTrue(__pyx_1); if (unlikely(__pyx_2 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 534; __pyx_clineno = __LINE__; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
if (__pyx_2) {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":537
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":536
* if self.__exists and \
* account.purple_account_is_connected(self._get_structure()):
* c_buddy = blist.purple_find_buddy(self._get_structure(), name) # <<<<<<<<<<<<<<
* if c_buddy == NULL:
* return False
*/
- __pyx_3 = __Pyx_PyBytes_AsString(__pyx_v_name); if (unlikely((!__pyx_3) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 537; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_3 = __Pyx_PyBytes_AsString(__pyx_v_name); if (unlikely((!__pyx_3) && PyErr_Occurred())) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 536; __pyx_clineno = __LINE__; goto __pyx_L1;}
__pyx_v_c_buddy = purple_find_buddy(((struct __pyx_vtabstruct_6purple_Account *)((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__pyx_vtab)->_get_structure(((struct __pyx_obj_6purple_Account *)__pyx_v_self)), __pyx_3);
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":538
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":537
* account.purple_account_is_connected(self._get_structure()):
* c_buddy = blist.purple_find_buddy(self._get_structure(), name)
* if c_buddy == NULL: # <<<<<<<<<<<<<<
__pyx_2 = (__pyx_v_c_buddy == NULL);
if (__pyx_2) {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":539
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":538
* c_buddy = blist.purple_find_buddy(self._get_structure(), name)
* if c_buddy == NULL:
* return False # <<<<<<<<<<<<<<
}
__pyx_L5:;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":541
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":540
* return False
*
* c_group = blist.purple_buddy_get_group(c_buddy) # <<<<<<<<<<<<<<
*/
__pyx_v_c_group = purple_buddy_get_group(__pyx_v_c_buddy);
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":544
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":543
*
* account.purple_account_remove_buddy(self._get_structure(), \
* c_buddy, c_group) # <<<<<<<<<<<<<<
*/
purple_account_remove_buddy(((struct __pyx_vtabstruct_6purple_Account *)((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__pyx_vtab)->_get_structure(((struct __pyx_obj_6purple_Account *)__pyx_v_self)), __pyx_v_c_buddy, __pyx_v_c_group);
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":545
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":544
* account.purple_account_remove_buddy(self._get_structure(), \
* c_buddy, c_group)
* blist.purple_blist_remove_buddy(c_buddy) # <<<<<<<<<<<<<<
*/
purple_blist_remove_buddy(__pyx_v_c_buddy);
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":546
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":545
* c_buddy, c_group)
* blist.purple_blist_remove_buddy(c_buddy)
* return True # <<<<<<<<<<<<<<
}
/*else*/ {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":548
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":547
* return True
* else:
* return None # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":550
+/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":549
* return None
*
* def get_buddies_online(self): # <<<<<<<<<<<<<<
__pyx_v_name = Py_None; Py_INCREF(Py_None);
__pyx_v_new_buddy = Py_None; Py_INCREF(Py_None);
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":551
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":550
*
* def get_buddies_online(self):
* cdef glib.GSList *iter = NULL # <<<<<<<<<<<<<<
__pyx_v_iter = NULL;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":552
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":551
* def get_buddies_online(self):
* cdef glib.GSList *iter = NULL
* cdef blist.PurpleBuddy *c_buddy = NULL # <<<<<<<<<<<<<<
__pyx_v_c_buddy = NULL;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":553
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":552
* cdef glib.GSList *iter = NULL
* cdef blist.PurpleBuddy *c_buddy = NULL
* cdef char *c_alias = NULL # <<<<<<<<<<<<<<
*
- * if self.__exists and \
+ * buddies_list = []
*/
__pyx_v_c_alias = NULL;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":555
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":554
* cdef char *c_alias = NULL
*
+ * buddies_list = [] # <<<<<<<<<<<<<<
+ * if self.__exists and \
+ * account.purple_account_is_connected(self._get_structure()):
+ */
+ __pyx_1 = PyList_New(0); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 554; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ Py_DECREF(__pyx_v_buddies_list);
+ __pyx_v_buddies_list = ((PyObject *)__pyx_1);
+ __pyx_1 = 0;
+
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":555
+ *
+ * buddies_list = []
* if self.__exists and \ # <<<<<<<<<<<<<<
* account.purple_account_is_connected(self._get_structure()):
* iter = blist.purple_find_buddies(self._get_structure(), NULL)
Py_DECREF(__pyx_1); __pyx_1 = 0;
/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":556
- *
+ * buddies_list = []
* if self.__exists and \
* account.purple_account_is_connected(self._get_structure()): # <<<<<<<<<<<<<<
* iter = blist.purple_find_buddies(self._get_structure(), NULL)
* account.purple_account_is_connected(self._get_structure()):
* iter = blist.purple_find_buddies(self._get_structure(), NULL) # <<<<<<<<<<<<<<
*
- * buddies_list = []
+ * while iter:
*/
__pyx_v_iter = purple_find_buddies(((struct __pyx_vtabstruct_6purple_Account *)((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__pyx_vtab)->_get_structure(((struct __pyx_obj_6purple_Account *)__pyx_v_self)), NULL);
/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":559
* iter = blist.purple_find_buddies(self._get_structure(), NULL)
*
- * buddies_list = [] # <<<<<<<<<<<<<<
- * while iter:
- * c_alias = NULL
- */
- __pyx_1 = PyList_New(0); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 559; __pyx_clineno = __LINE__; goto __pyx_L1;}
- Py_DECREF(__pyx_v_buddies_list);
- __pyx_v_buddies_list = ((PyObject *)__pyx_1);
- __pyx_1 = 0;
-
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":560
- *
- * buddies_list = []
* while iter: # <<<<<<<<<<<<<<
* c_alias = NULL
* c_buddy = <blist.PurpleBuddy *> iter.data
__pyx_2 = (__pyx_v_iter != 0);
if (!__pyx_2) break;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":561
- * buddies_list = []
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":560
+ *
* while iter:
* c_alias = NULL # <<<<<<<<<<<<<<
* c_buddy = <blist.PurpleBuddy *> iter.data
*/
__pyx_v_c_alias = NULL;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":562
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":561
* while iter:
* c_alias = NULL
* c_buddy = <blist.PurpleBuddy *> iter.data # <<<<<<<<<<<<<<
*/
__pyx_v_c_buddy = ((PurpleBuddy *)__pyx_v_iter->data);
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":563
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":562
* c_alias = NULL
* c_buddy = <blist.PurpleBuddy *> iter.data
* if <blist.PurpleBuddy *> c_buddy and \ # <<<<<<<<<<<<<<
__pyx_2 = (((PurpleBuddy *)__pyx_v_c_buddy) != 0);
if (__pyx_2) {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":565
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":564
* if <blist.PurpleBuddy *> c_buddy and \
* status.purple_presence_is_online( \
* blist.purple_buddy_get_presence(c_buddy)): # <<<<<<<<<<<<<<
}
if (__pyx_2) {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":566
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":565
* status.purple_presence_is_online( \
* blist.purple_buddy_get_presence(c_buddy)):
* name = <char *> blist.purple_buddy_get_name(c_buddy) # <<<<<<<<<<<<<<
*
* new_buddy = Buddy(name, self)
*/
- __pyx_1 = __Pyx_PyBytes_FromString(((char *)purple_buddy_get_name(__pyx_v_c_buddy))); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 566; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_1 = __Pyx_PyBytes_FromString(((char *)purple_buddy_get_name(__pyx_v_c_buddy))); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 565; __pyx_clineno = __LINE__; goto __pyx_L1;}
Py_DECREF(__pyx_v_name);
__pyx_v_name = __pyx_1;
__pyx_1 = 0;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":568
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":567
* name = <char *> blist.purple_buddy_get_name(c_buddy)
*
* new_buddy = Buddy(name, self) # <<<<<<<<<<<<<<
*
* c_alias = <char *> blist.purple_buddy_get_alias_only(c_buddy)
*/
- __pyx_1 = PyTuple_New(2); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 568; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_1 = PyTuple_New(2); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 567; __pyx_clineno = __LINE__; goto __pyx_L1;}
Py_INCREF(__pyx_v_name);
PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_name);
Py_INCREF(__pyx_v_self);
PyTuple_SET_ITEM(__pyx_1, 1, __pyx_v_self);
- __pyx_3 = PyObject_Call(((PyObject*)__pyx_ptype_6purple_Buddy), ((PyObject *)__pyx_1), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 568; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_3 = PyObject_Call(((PyObject*)__pyx_ptype_6purple_Buddy), ((PyObject *)__pyx_1), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 567; __pyx_clineno = __LINE__; goto __pyx_L1;}
Py_DECREF(((PyObject *)__pyx_1)); __pyx_1 = 0;
Py_DECREF(__pyx_v_new_buddy);
__pyx_v_new_buddy = __pyx_3;
__pyx_3 = 0;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":570
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":569
* new_buddy = Buddy(name, self)
*
* c_alias = <char *> blist.purple_buddy_get_alias_only(c_buddy) # <<<<<<<<<<<<<<
*/
__pyx_v_c_alias = ((char *)purple_buddy_get_alias_only(__pyx_v_c_buddy));
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":571
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":570
*
* c_alias = <char *> blist.purple_buddy_get_alias_only(c_buddy)
* if c_alias: # <<<<<<<<<<<<<<
__pyx_2 = (__pyx_v_c_alias != 0);
if (__pyx_2) {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":572
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":571
* c_alias = <char *> blist.purple_buddy_get_alias_only(c_buddy)
* if c_alias:
* new_buddy.set_alias(c_alias) # <<<<<<<<<<<<<<
*
* buddies_list.append(new_buddy)
*/
- __pyx_1 = PyObject_GetAttr(__pyx_v_new_buddy, __pyx_kp_set_alias); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1;}
- __pyx_3 = __Pyx_PyBytes_FromString(__pyx_v_c_alias); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1;}
- __pyx_4 = PyTuple_New(1); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_1 = PyObject_GetAttr(__pyx_v_new_buddy, __pyx_kp_set_alias); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 571; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_3 = __Pyx_PyBytes_FromString(__pyx_v_c_alias); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 571; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_4 = PyTuple_New(1); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 571; __pyx_clineno = __LINE__; goto __pyx_L1;}
PyTuple_SET_ITEM(__pyx_4, 0, __pyx_3);
__pyx_3 = 0;
- __pyx_3 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_4), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_3 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_4), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 571; __pyx_clineno = __LINE__; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
Py_DECREF(((PyObject *)__pyx_4)); __pyx_4 = 0;
Py_DECREF(__pyx_3); __pyx_3 = 0;
}
__pyx_L8:;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":574
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":573
* new_buddy.set_alias(c_alias)
*
* buddies_list.append(new_buddy) # <<<<<<<<<<<<<<
* iter = iter.next
- * return buddies_list
+ *
*/
- __pyx_1 = __Pyx_PyObject_Append(__pyx_v_buddies_list, __pyx_v_new_buddy); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 574; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_1 = __Pyx_PyObject_Append(__pyx_v_buddies_list, __pyx_v_new_buddy); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 573; __pyx_clineno = __LINE__; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
goto __pyx_L7;
}
__pyx_L7:;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":575
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":574
*
* buddies_list.append(new_buddy)
* iter = iter.next # <<<<<<<<<<<<<<
- * return buddies_list
- * else:
+ *
+ * return buddies_list
*/
__pyx_v_iter = __pyx_v_iter->next;
}
-
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":576
- * buddies_list.append(new_buddy)
- * iter = iter.next
- * return buddies_list # <<<<<<<<<<<<<<
- * else:
- * return None
- */
- Py_INCREF(__pyx_v_buddies_list);
- __pyx_r = __pyx_v_buddies_list;
- goto __pyx_L0;
goto __pyx_L4;
}
- /*else*/ {
+ __pyx_L4:;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":578
- * return buddies_list
- * else:
- * return None # <<<<<<<<<<<<<<
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":576
+ * iter = iter.next
+ *
+ * return buddies_list # <<<<<<<<<<<<<<
*
* def get_buddies(self):
*/
- Py_INCREF(Py_None);
- __pyx_r = Py_None;
- goto __pyx_L0;
- }
- __pyx_L4:;
+ Py_INCREF(__pyx_v_buddies_list);
+ __pyx_r = __pyx_v_buddies_list;
+ goto __pyx_L0;
__pyx_r = Py_None; Py_INCREF(Py_None);
goto __pyx_L0;
return __pyx_r;
}
-/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":580
- * return None
+/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":578
+ * return buddies_list
*
* def get_buddies(self): # <<<<<<<<<<<<<<
- * cdef glib.GSList *iter = NULL
- * cdef blist.PurpleBuddy *c_buddy = NULL
+ * """
+ * @return Account's buddies list
*/
static PyObject *__pyx_pf_6purple_7Account_get_buddies(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
+static char __pyx_doc_6purple_7Account_get_buddies[] = "\n @return Account\'s buddies list\n ";
static PyObject *__pyx_pf_6purple_7Account_get_buddies(PyObject *__pyx_v_self, PyObject *unused) {
GSList *__pyx_v_iter;
PurpleBuddy *__pyx_v_c_buddy;
PyObject *__pyx_v_name;
PyObject *__pyx_v_new_buddy;
PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
+ PyObject *__pyx_1 = 0;
+ int __pyx_2;
PyObject *__pyx_3 = 0;
PyObject *__pyx_4 = 0;
__pyx_v_buddies_list = Py_None; Py_INCREF(Py_None);
__pyx_v_name = Py_None; Py_INCREF(Py_None);
__pyx_v_new_buddy = Py_None; Py_INCREF(Py_None);
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":581
- *
- * def get_buddies(self):
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":582
+ * @return Account's buddies list
+ * """
* cdef glib.GSList *iter = NULL # <<<<<<<<<<<<<<
* cdef blist.PurpleBuddy *c_buddy = NULL
* cdef char *c_alias = NULL
__pyx_v_iter = NULL;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":582
- * def get_buddies(self):
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":583
+ * """
* cdef glib.GSList *iter = NULL
* cdef blist.PurpleBuddy *c_buddy = NULL # <<<<<<<<<<<<<<
* cdef char *c_alias = NULL
__pyx_v_c_buddy = NULL;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":583
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":584
* cdef glib.GSList *iter = NULL
* cdef blist.PurpleBuddy *c_buddy = NULL
* cdef char *c_alias = NULL # <<<<<<<<<<<<<<
*
- * if self.__exists:
+ * buddies_list = []
*/
__pyx_v_c_alias = NULL;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":585
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":586
* cdef char *c_alias = NULL
*
- * if self.__exists: # <<<<<<<<<<<<<<
+ * buddies_list = [] # <<<<<<<<<<<<<<
+ * if self.__exists:
* iter = blist.purple_find_buddies(self._get_structure(), NULL)
- *
*/
- __pyx_1 = __Pyx_PyObject_IsTrue(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__exists); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1;}
- if (__pyx_1) {
+ __pyx_1 = PyList_New(0); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 586; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ Py_DECREF(__pyx_v_buddies_list);
+ __pyx_v_buddies_list = ((PyObject *)__pyx_1);
+ __pyx_1 = 0;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":586
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":587
*
- * if self.__exists:
- * iter = blist.purple_find_buddies(self._get_structure(), NULL) # <<<<<<<<<<<<<<
+ * buddies_list = []
+ * if self.__exists: # <<<<<<<<<<<<<<
+ * iter = blist.purple_find_buddies(self._get_structure(), NULL)
*
- * buddies_list = []
*/
- __pyx_v_iter = purple_find_buddies(((struct __pyx_vtabstruct_6purple_Account *)((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__pyx_vtab)->_get_structure(((struct __pyx_obj_6purple_Account *)__pyx_v_self)), NULL);
+ __pyx_2 = __Pyx_PyObject_IsTrue(((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__exists); if (unlikely(__pyx_2 < 0)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 587; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ if (__pyx_2) {
/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":588
- * iter = blist.purple_find_buddies(self._get_structure(), NULL)
+ * buddies_list = []
+ * if self.__exists:
+ * iter = blist.purple_find_buddies(self._get_structure(), NULL) # <<<<<<<<<<<<<<
*
- * buddies_list = [] # <<<<<<<<<<<<<<
* while iter:
- * c_alias = NULL
*/
- __pyx_2 = PyList_New(0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 588; __pyx_clineno = __LINE__; goto __pyx_L1;}
- Py_DECREF(__pyx_v_buddies_list);
- __pyx_v_buddies_list = ((PyObject *)__pyx_2);
- __pyx_2 = 0;
+ __pyx_v_iter = purple_find_buddies(((struct __pyx_vtabstruct_6purple_Account *)((struct __pyx_obj_6purple_Account *)__pyx_v_self)->__pyx_vtab)->_get_structure(((struct __pyx_obj_6purple_Account *)__pyx_v_self)), NULL);
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":589
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":590
+ * iter = blist.purple_find_buddies(self._get_structure(), NULL)
*
- * buddies_list = []
* while iter: # <<<<<<<<<<<<<<
* c_alias = NULL
* c_buddy = <blist.PurpleBuddy *> iter.data
*/
while (1) {
- __pyx_1 = (__pyx_v_iter != 0);
- if (!__pyx_1) break;
+ __pyx_2 = (__pyx_v_iter != 0);
+ if (!__pyx_2) break;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":590
- * buddies_list = []
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":591
+ *
* while iter:
* c_alias = NULL # <<<<<<<<<<<<<<
* c_buddy = <blist.PurpleBuddy *> iter.data
*/
__pyx_v_c_alias = NULL;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":591
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":592
* while iter:
* c_alias = NULL
* c_buddy = <blist.PurpleBuddy *> iter.data # <<<<<<<<<<<<<<
*/
__pyx_v_c_buddy = ((PurpleBuddy *)__pyx_v_iter->data);
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":593
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":594
* c_buddy = <blist.PurpleBuddy *> iter.data
*
* name = <char *> blist.purple_buddy_get_name(c_buddy) # <<<<<<<<<<<<<<
* new_buddy = Buddy(name, self)
*
*/
- __pyx_2 = __Pyx_PyBytes_FromString(((char *)purple_buddy_get_name(__pyx_v_c_buddy))); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 593; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_1 = __Pyx_PyBytes_FromString(((char *)purple_buddy_get_name(__pyx_v_c_buddy))); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 594; __pyx_clineno = __LINE__; goto __pyx_L1;}
Py_DECREF(__pyx_v_name);
- __pyx_v_name = __pyx_2;
- __pyx_2 = 0;
+ __pyx_v_name = __pyx_1;
+ __pyx_1 = 0;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":594
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":595
*
* name = <char *> blist.purple_buddy_get_name(c_buddy)
* new_buddy = Buddy(name, self) # <<<<<<<<<<<<<<
*
* c_alias = <char *> blist.purple_buddy_get_alias_only(c_buddy)
*/
- __pyx_2 = PyTuple_New(2); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 594; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_1 = PyTuple_New(2); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 595; __pyx_clineno = __LINE__; goto __pyx_L1;}
Py_INCREF(__pyx_v_name);
- PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_name);
+ PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_name);
Py_INCREF(__pyx_v_self);
- PyTuple_SET_ITEM(__pyx_2, 1, __pyx_v_self);
- __pyx_3 = PyObject_Call(((PyObject*)__pyx_ptype_6purple_Buddy), ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 594; __pyx_clineno = __LINE__; goto __pyx_L1;}
- Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
+ PyTuple_SET_ITEM(__pyx_1, 1, __pyx_v_self);
+ __pyx_3 = PyObject_Call(((PyObject*)__pyx_ptype_6purple_Buddy), ((PyObject *)__pyx_1), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 595; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ Py_DECREF(((PyObject *)__pyx_1)); __pyx_1 = 0;
Py_DECREF(__pyx_v_new_buddy);
__pyx_v_new_buddy = __pyx_3;
__pyx_3 = 0;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":596
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":597
* new_buddy = Buddy(name, self)
*
* c_alias = <char *> blist.purple_buddy_get_alias_only(c_buddy) # <<<<<<<<<<<<<<
*/
__pyx_v_c_alias = ((char *)purple_buddy_get_alias_only(__pyx_v_c_buddy));
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":597
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":598
*
* c_alias = <char *> blist.purple_buddy_get_alias_only(c_buddy)
* if c_alias: # <<<<<<<<<<<<<<
* new_buddy.set_alias(c_alias)
*
*/
- __pyx_1 = (__pyx_v_c_alias != 0);
- if (__pyx_1) {
+ __pyx_2 = (__pyx_v_c_alias != 0);
+ if (__pyx_2) {
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":598
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":599
* c_alias = <char *> blist.purple_buddy_get_alias_only(c_buddy)
* if c_alias:
* new_buddy.set_alias(c_alias) # <<<<<<<<<<<<<<
*
* buddies_list.append(new_buddy)
*/
- __pyx_2 = PyObject_GetAttr(__pyx_v_new_buddy, __pyx_kp_set_alias); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 598; __pyx_clineno = __LINE__; goto __pyx_L1;}
- __pyx_3 = __Pyx_PyBytes_FromString(__pyx_v_c_alias); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 598; __pyx_clineno = __LINE__; goto __pyx_L1;}
- __pyx_4 = PyTuple_New(1); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 598; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_1 = PyObject_GetAttr(__pyx_v_new_buddy, __pyx_kp_set_alias); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 599; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_3 = __Pyx_PyBytes_FromString(__pyx_v_c_alias); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 599; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_4 = PyTuple_New(1); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 599; __pyx_clineno = __LINE__; goto __pyx_L1;}
PyTuple_SET_ITEM(__pyx_4, 0, __pyx_3);
__pyx_3 = 0;
- __pyx_3 = PyObject_Call(__pyx_2, ((PyObject *)__pyx_4), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 598; __pyx_clineno = __LINE__; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
+ __pyx_3 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_4), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 599; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
Py_DECREF(((PyObject *)__pyx_4)); __pyx_4 = 0;
Py_DECREF(__pyx_3); __pyx_3 = 0;
goto __pyx_L7;
}
__pyx_L7:;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":600
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":601
* new_buddy.set_alias(c_alias)
*
* buddies_list.append(new_buddy) # <<<<<<<<<<<<<<
* iter = iter.next
- * return buddies_list
+ *
*/
- __pyx_2 = __Pyx_PyObject_Append(__pyx_v_buddies_list, __pyx_v_new_buddy); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 600; __pyx_clineno = __LINE__; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
+ __pyx_1 = __Pyx_PyObject_Append(__pyx_v_buddies_list, __pyx_v_new_buddy); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 601; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":601
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":602
*
* buddies_list.append(new_buddy)
* iter = iter.next # <<<<<<<<<<<<<<
- * return buddies_list
- * else:
+ *
+ * return buddies_list
*/
__pyx_v_iter = __pyx_v_iter->next;
}
-
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":602
- * buddies_list.append(new_buddy)
- * iter = iter.next
- * return buddies_list # <<<<<<<<<<<<<<
- * else:
- * return None
- */
- Py_INCREF(__pyx_v_buddies_list);
- __pyx_r = __pyx_v_buddies_list;
- goto __pyx_L0;
goto __pyx_L4;
}
- /*else*/ {
+ __pyx_L4:;
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":604
- * return buddies_list
- * else:
- * return None # <<<<<<<<<<<<<<
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":604
+ * iter = iter.next
+ *
+ * return buddies_list # <<<<<<<<<<<<<<
*
* def request_add_buddy(self, buddy_username, buddy_alias):
*/
- Py_INCREF(Py_None);
- __pyx_r = Py_None;
- goto __pyx_L0;
- }
- __pyx_L4:;
+ Py_INCREF(__pyx_v_buddies_list);
+ __pyx_r = __pyx_v_buddies_list;
+ goto __pyx_L0;
__pyx_r = Py_None; Py_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1:;
- Py_XDECREF(__pyx_2);
+ Py_XDECREF(__pyx_1);
Py_XDECREF(__pyx_3);
Py_XDECREF(__pyx_4);
__Pyx_AddTraceback("purple.Account.get_buddies");
}
/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":606
- * return None
+ * return buddies_list
*
* def request_add_buddy(self, buddy_username, buddy_alias): # <<<<<<<<<<<<<<
* if buddy_alias:
{"add_buddy", (PyCFunction)__pyx_pf_6purple_7Account_add_buddy, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6purple_7Account_add_buddy},
{"remove_buddy", (PyCFunction)__pyx_pf_6purple_7Account_remove_buddy, METH_O, __pyx_doc_6purple_7Account_remove_buddy},
{"get_buddies_online", (PyCFunction)__pyx_pf_6purple_7Account_get_buddies_online, METH_NOARGS, 0},
- {"get_buddies", (PyCFunction)__pyx_pf_6purple_7Account_get_buddies, METH_NOARGS, 0},
+ {"get_buddies", (PyCFunction)__pyx_pf_6purple_7Account_get_buddies, METH_NOARGS, __pyx_doc_6purple_7Account_get_buddies},
{"request_add_buddy", (PyCFunction)__pyx_pf_6purple_7Account_request_add_buddy, METH_VARARGS|METH_KEYWORDS, 0},
{"set_active_status", (PyCFunction)__pyx_pf_6purple_7Account_set_active_status, METH_VARARGS|METH_KEYWORDS, 0},
{"set_status_message", (PyCFunction)__pyx_pf_6purple_7Account_set_status_message, METH_VARARGS|METH_KEYWORDS, 0},
if (PyDict_SetItem((PyObject *)__pyx_ptype_6purple_Account->tp_dict, __pyx_kp_enabled, __pyx_1) < 0) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 223; __pyx_clineno = __LINE__; goto __pyx_L1;}
__Pyx_TypeModified(__pyx_ptype_6purple_Account);
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":244
- * return None
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":243
+ * return status_types
*
* status_types = property(__get_status_types) # <<<<<<<<<<<<<<
*
* def __get_active_status(self):
*/
- __pyx_2 = __Pyx_GetName((PyObject *)__pyx_ptype_6purple_Account, __pyx_kp___get_status_types); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 244; __pyx_clineno = __LINE__; goto __pyx_L1;}
- __pyx_1 = PyTuple_New(1); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 244; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_2 = __Pyx_GetName((PyObject *)__pyx_ptype_6purple_Account, __pyx_kp___get_status_types); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 243; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_1 = PyTuple_New(1); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 243; __pyx_clineno = __LINE__; goto __pyx_L1;}
PyTuple_SET_ITEM(__pyx_1, 0, __pyx_2);
__pyx_2 = 0;
- __pyx_2 = PyObject_Call(__pyx_builtin_property, ((PyObject *)__pyx_1), NULL); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 244; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_2 = PyObject_Call(__pyx_builtin_property, ((PyObject *)__pyx_1), NULL); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 243; __pyx_clineno = __LINE__; goto __pyx_L1;}
Py_DECREF(((PyObject *)__pyx_1)); __pyx_1 = 0;
- if (PyDict_SetItem((PyObject *)__pyx_ptype_6purple_Account->tp_dict, __pyx_kp_status_types, __pyx_2) < 0) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 244; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_6purple_Account->tp_dict, __pyx_kp_status_types, __pyx_2) < 0) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 243; __pyx_clineno = __LINE__; goto __pyx_L1;}
__Pyx_TypeModified(__pyx_ptype_6purple_Account);
- /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":267
+ /* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/account.pyx":266
* else:
* return None
* active_status = property(__get_active_status) # <<<<<<<<<<<<<<
*
* def set_username(self, username):
*/
- __pyx_1 = __Pyx_GetName((PyObject *)__pyx_ptype_6purple_Account, __pyx_kp___get_active_status); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 267; __pyx_clineno = __LINE__; goto __pyx_L1;}
- __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 267; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_1 = __Pyx_GetName((PyObject *)__pyx_ptype_6purple_Account, __pyx_kp___get_active_status); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 266; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 266; __pyx_clineno = __LINE__; goto __pyx_L1;}
PyTuple_SET_ITEM(__pyx_2, 0, __pyx_1);
__pyx_1 = 0;
- __pyx_1 = PyObject_Call(__pyx_builtin_property, ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 267; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ __pyx_1 = PyObject_Call(__pyx_builtin_property, ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 266; __pyx_clineno = __LINE__; goto __pyx_L1;}
Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
- if (PyDict_SetItem((PyObject *)__pyx_ptype_6purple_Account->tp_dict, __pyx_kp_active_status, __pyx_1) < 0) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 267; __pyx_clineno = __LINE__; goto __pyx_L1;}
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_6purple_Account->tp_dict, __pyx_kp_active_status, __pyx_1) < 0) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 266; __pyx_clineno = __LINE__; goto __pyx_L1;}
__Pyx_TypeModified(__pyx_ptype_6purple_Account);
/* "/opt/wrk/indt/workspace/git-svn/carman/python-purple/buddy.pyx":49