/* Generated by Pyrex 0.9.4.1 on Sat Mar 17 22:23:19 2007 */ #define PY_SSIZE_T_CLEAN #include "Python.h" #include "structmember.h" #ifndef PY_LONG_LONG #define PY_LONG_LONG LONG_LONG #endif #if PY_VERSION_HEX < 0x02050000 typedef int Py_ssize_t; #define PY_SSIZE_T_MAX INT_MAX #define PY_SSIZE_T_MIN INT_MIN #define PyInt_FromSsize_t(z) PyInt_FromLong(z) #define PyInt_AsSsize_t(o) PyInt_AsLong(o) #endif #ifdef __cplusplus #define __PYX_EXTERN_C extern "C" #else #define __PYX_EXTERN_C extern #endif __PYX_EXTERN_C double pow(double, double); typedef struct {PyObject **p; char *s;} __Pyx_InternTabEntry; /*proto*/ typedef struct {PyObject **p; char *s; long n;} __Pyx_StringTabEntry; /*proto*/ static PyObject *__Pyx_UnpackItem(PyObject *, Py_ssize_t); /*proto*/ static int __Pyx_EndUnpack(PyObject *, Py_ssize_t); /*proto*/ static int __Pyx_PrintItem(PyObject *); /*proto*/ static int __Pyx_PrintNewline(void); /*proto*/ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb); /*proto*/ static void __Pyx_ReRaise(void); /*proto*/ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list); /*proto*/ static PyObject *__Pyx_GetExcValue(void); /*proto*/ static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed, char *name); /*proto*/ static int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type); /*proto*/ static int __Pyx_GetStarArgs(PyObject **args, PyObject **kwds, char *kwd_list[], Py_ssize_t nargs, PyObject **args2, PyObject **kwds2); /*proto*/ static void __Pyx_WriteUnraisable(char *name); /*proto*/ static void __Pyx_AddTraceback(char *funcname); /*proto*/ static PyTypeObject *__Pyx_ImportType(char *module_name, char *class_name, long size); /*proto*/ static int __Pyx_SetVtable(PyObject *dict, void *vtable); /*proto*/ static int __Pyx_GetVtable(PyObject *dict, void *vtabptr); /*proto*/ static PyObject *__Pyx_CreateClass(PyObject *bases, PyObject *dict, PyObject *name, char *modname); /*proto*/ static int __Pyx_InternStrings(__Pyx_InternTabEntry *t); /*proto*/ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /*proto*/ static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name); /*proto*/ static PyObject *__pyx_m; static PyObject *__pyx_b; static int __pyx_lineno; static char *__pyx_filename; static char **__pyx_f; /* Declarations from berylsettings */ struct __pyx_t_13berylsettings_GSList { void (*data); struct __pyx_t_13berylsettings_GSList (*next); }; enum __pyx_t_13berylsettings_BerylSettingConflictType { __pyx_e_13berylsettings_BERYL_SETTING_CONFLICT_TYPE_KEY, __pyx_e_13berylsettings_BERYL_SETTING_CONFLICT_TYPE_BUTTON, __pyx_e_13berylsettings_BERYL_SETTING_CONFLICT_TYPE_EDGE, __pyx_e_13berylsettings_BERYL_SETTING_CONFLICT_TYPE_ANY, }; enum __pyx_t_13berylsettings_BerylSettingType { __pyx_e_13berylsettings_BERYL_SETTING_TYPE_BOOL, __pyx_e_13berylsettings_BERYL_SETTING_TYPE_INT, __pyx_e_13berylsettings_BERYL_SETTING_TYPE_FLOAT, __pyx_e_13berylsettings_BERYL_SETTING_TYPE_STRING, __pyx_e_13berylsettings_BERYL_SETTING_TYPE_COLOR, __pyx_e_13berylsettings_BERYL_SETTING_TYPE_BINDING, __pyx_e_13berylsettings_BERYL_SETTING_TYPE_LIST, __pyx_e_13berylsettings_BERYL_SETTING_TYPE_COUNT, }; struct __pyx_t_13berylsettings_BerylSettingConflict { enum __pyx_t_13berylsettings_BerylSettingConflictType type; struct __pyx_t_13berylsettings_GSList (*list); }; struct __pyx_t_13berylsettings_BerylSettingColorValueColor { int red; int green; int blue; int alpha; }; struct __pyx_t_13berylsettings_BerylSettingColorValueArray { int (array[4]); }; union __pyx_t_13berylsettings_BerylSettingColorValue { struct __pyx_t_13berylsettings_BerylSettingColorValueColor color; struct __pyx_t_13berylsettings_BerylSettingColorValueArray array; }; struct __pyx_obj_13berylsettings_Backend { PyObject_HEAD struct __pyx_t_13berylsettings_BerylSettingsBackend (*myBackend); }; struct __pyx_obj_13berylsettings_Context { PyObject_HEAD struct __pyx_t_13berylsettings_BerylSettingsContext (*myContext); char (*backend); }; struct __pyx_obj_13berylsettings_Category { PyObject_HEAD struct __pyx_t_13berylsettings_BerylSettingsPluginCategory (*myCategory); struct __pyx_obj_13berylsettings_Context *pContext; }; struct __pyx_obj_13berylsettings_Plugin { PyObject_HEAD struct __pyx_t_13berylsettings_BerylSettingsPlugin (*myPlugin); struct __pyx_obj_13berylsettings_Context *pContext; int is_general; }; struct __pyx_obj_13berylsettings_Group { PyObject_HEAD struct __pyx_t_13berylsettings_BerylSettingsGroup (*myGroup); struct __pyx_obj_13berylsettings_Plugin *pPlugin; }; struct __pyx_obj_13berylsettings_SubGroup { PyObject_HEAD struct __pyx_t_13berylsettings_BerylSettingsSubGroup (*mySubGroup); struct __pyx_obj_13berylsettings_Group *pGroup; struct __pyx_obj_13berylsettings_Plugin *pPlugin; }; struct __pyx_obj_13berylsettings_Setting { PyObject_HEAD struct __pyx_t_13berylsettings_BerylSetting (*mySetting); struct __pyx_obj_13berylsettings_Plugin *pPlugin; }; static PyTypeObject *__pyx_ptype_13berylsettings_Backend = 0; static PyTypeObject *__pyx_ptype_13berylsettings_Context = 0; static PyTypeObject *__pyx_ptype_13berylsettings_Category = 0; static PyTypeObject *__pyx_ptype_13berylsettings_Plugin = 0; static PyTypeObject *__pyx_ptype_13berylsettings_Group = 0; static PyTypeObject *__pyx_ptype_13berylsettings_SubGroup = 0; static PyTypeObject *__pyx_ptype_13berylsettings_Setting = 0; static PyObject *__pyx_k9; static PyObject *__pyx_k10; static PyObject *__pyx_k11; __PYX_EXTERN_C struct __pyx_t_13berylsettings_BerylSettingsContext (*(beryl_settings_context_new(void))); /*proto*/ __PYX_EXTERN_C int (beryl_settings_context_set_backend(struct __pyx_t_13berylsettings_BerylSettingsContext (*),char (*))); /*proto*/ __PYX_EXTERN_C void (beryl_settings_context_destroy(struct __pyx_t_13berylsettings_BerylSettingsContext (*))); /*proto*/ __PYX_EXTERN_C struct __pyx_t_13berylsettings_GSList (*(beryl_settings_plugin_get_groups(struct __pyx_t_13berylsettings_BerylSettingsPlugin (*)))); /*proto*/ __PYX_EXTERN_C struct __pyx_t_13berylsettings_BerylSettingsGroup (*(beryl_settings_plugin_find_group(struct __pyx_t_13berylsettings_BerylSettingsPlugin (*),char (*)))); /*proto*/ __PYX_EXTERN_C char (*(beryl_settings_group_get_name(struct __pyx_t_13berylsettings_BerylSettingsGroup (*)))); /*proto*/ __PYX_EXTERN_C struct __pyx_t_13berylsettings_GSList (*(beryl_settings_group_get_subgroups(struct __pyx_t_13berylsettings_BerylSettingsGroup (*)))); /*proto*/ __PYX_EXTERN_C struct __pyx_t_13berylsettings_BerylSettingsSubGroup (*(beryl_settings_group_find_subgroup(struct __pyx_t_13berylsettings_BerylSettingsGroup (*),char (*)))); /*proto*/ __PYX_EXTERN_C char (*(beryl_settings_subgroup_get_name(struct __pyx_t_13berylsettings_BerylSettingsSubGroup (*)))); /*proto*/ __PYX_EXTERN_C struct __pyx_t_13berylsettings_GSList (*(beryl_settings_subgroup_get_settings(struct __pyx_t_13berylsettings_BerylSettingsSubGroup (*)))); /*proto*/ __PYX_EXTERN_C struct __pyx_t_13berylsettings_BerylSetting (*(beryl_settings_subgroup_find_setting(struct __pyx_t_13berylsettings_BerylSettingsSubGroup (*),char (*)))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_has_hint(struct __pyx_t_13berylsettings_BerylSetting (*),char (*))); /*proto*/ __PYX_EXTERN_C struct __pyx_t_13berylsettings_BerylSettingsPlugin (*(beryl_settings_context_find_plugin(struct __pyx_t_13berylsettings_BerylSettingsContext (*),char (*)))); /*proto*/ __PYX_EXTERN_C struct __pyx_t_13berylsettings_BerylSetting (*(beryl_settings_plugin_find_setting(struct __pyx_t_13berylsettings_BerylSettingsPlugin (*),char (*),int ))); /*proto*/ __PYX_EXTERN_C void (beryl_settings_context_read(struct __pyx_t_13berylsettings_BerylSettingsContext (*))); /*proto*/ __PYX_EXTERN_C void (beryl_settings_context_write(struct __pyx_t_13berylsettings_BerylSettingsContext (*))); /*proto*/ __PYX_EXTERN_C struct __pyx_t_13berylsettings_BerylSettingsContext (*(beryl_settings_context_comp_new(void))); /*proto*/ __PYX_EXTERN_C int (beryl_settings_send_reload_signal(void)); /*proto*/ __PYX_EXTERN_C void (beryl_setting_reset_to_default(struct __pyx_t_13berylsettings_BerylSetting (*))); /*proto*/ __PYX_EXTERN_C void (beryl_setting_list_clear(struct __pyx_t_13berylsettings_BerylSetting (*))); /*proto*/ __PYX_EXTERN_C struct __pyx_t_13berylsettings_BerylSettingValue (*(beryl_setting_list_append(struct __pyx_t_13berylsettings_BerylSetting (*)))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_list_length(struct __pyx_t_13berylsettings_BerylSetting (*))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_list_value_index(struct __pyx_t_13berylsettings_BerylSettingValue (*))); /*proto*/ __PYX_EXTERN_C void (beryl_setting_list_value_swap_with(struct __pyx_t_13berylsettings_BerylSettingValue (*),unsigned int )); /*proto*/ __PYX_EXTERN_C void (beryl_setting_list_value_move_before(struct __pyx_t_13berylsettings_BerylSettingValue (*),unsigned int )); /*proto*/ __PYX_EXTERN_C void (beryl_setting_list_value_remove(struct __pyx_t_13berylsettings_BerylSettingValue (*))); /*proto*/ __PYX_EXTERN_C struct __pyx_t_13berylsettings_BerylSettingValue (*(beryl_setting_get_primary_value(struct __pyx_t_13berylsettings_BerylSetting (*)))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_value_get_int(struct __pyx_t_13berylsettings_BerylSettingValue (*),int (*))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_value_get_float(struct __pyx_t_13berylsettings_BerylSettingValue (*),double (*))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_value_get_bool(struct __pyx_t_13berylsettings_BerylSettingValue (*),int (*))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_value_get_string(struct __pyx_t_13berylsettings_BerylSettingValue (*),char (*(*)))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_value_get_keysym(struct __pyx_t_13berylsettings_BerylSettingValue (*),int (*))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_value_get_keymods(struct __pyx_t_13berylsettings_BerylSettingValue (*),int (*))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_value_get_button(struct __pyx_t_13berylsettings_BerylSettingValue (*),int (*))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_value_get_buttonmods(struct __pyx_t_13berylsettings_BerylSettingValue (*),int (*))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_value_get_bell(struct __pyx_t_13berylsettings_BerylSettingValue (*),int (*))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_value_get_edgemask(struct __pyx_t_13berylsettings_BerylSettingValue (*),int (*))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_value_get_key_enabled(struct __pyx_t_13berylsettings_BerylSettingValue (*),int (*))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_value_get_button_enabled(struct __pyx_t_13berylsettings_BerylSettingValue (*),int (*))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_value_get_color(struct __pyx_t_13berylsettings_BerylSettingValue (*),union __pyx_t_13berylsettings_BerylSettingColorValue (*))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_value_get_value_list(struct __pyx_t_13berylsettings_BerylSettingValue (*),struct __pyx_t_13berylsettings_GSList (*(*)))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_value_set_int(struct __pyx_t_13berylsettings_BerylSettingValue (*),int (*))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_value_set_float(struct __pyx_t_13berylsettings_BerylSettingValue (*),double (*))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_value_set_bool(struct __pyx_t_13berylsettings_BerylSettingValue (*),int (*))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_value_set_string(struct __pyx_t_13berylsettings_BerylSettingValue (*),char (*(*)))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_value_set_keysym(struct __pyx_t_13berylsettings_BerylSettingValue (*),int (*))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_value_set_keymods(struct __pyx_t_13berylsettings_BerylSettingValue (*),int (*))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_value_set_button(struct __pyx_t_13berylsettings_BerylSettingValue (*),int (*))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_value_set_buttonmods(struct __pyx_t_13berylsettings_BerylSettingValue (*),int (*))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_value_set_bell(struct __pyx_t_13berylsettings_BerylSettingValue (*),int (*))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_value_set_edgemask(struct __pyx_t_13berylsettings_BerylSettingValue (*),int (*))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_value_set_key_enabled(struct __pyx_t_13berylsettings_BerylSettingValue (*),int (*))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_value_set_button_enabled(struct __pyx_t_13berylsettings_BerylSettingValue (*),int (*))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_value_set_color(struct __pyx_t_13berylsettings_BerylSettingValue (*),union __pyx_t_13berylsettings_BerylSettingColorValue (*))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_get_can_set_key(struct __pyx_t_13berylsettings_BerylSetting (*),int (*))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_get_can_set_button(struct __pyx_t_13berylsettings_BerylSetting (*),int (*))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_get_can_set_edgemask(struct __pyx_t_13berylsettings_BerylSetting (*),int (*))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_get_can_set_bell(struct __pyx_t_13berylsettings_BerylSetting (*),int (*))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_get_allowed_strings(struct __pyx_t_13berylsettings_BerylSetting (*),struct __pyx_t_13berylsettings_GSList (*(*)))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_get_raw_allowed_strings(struct __pyx_t_13berylsettings_BerylSetting (*),struct __pyx_t_13berylsettings_GSList (*(*)))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_get_int_min(struct __pyx_t_13berylsettings_BerylSetting (*),int (*))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_get_int_max(struct __pyx_t_13berylsettings_BerylSetting (*),int (*))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_get_float_min(struct __pyx_t_13berylsettings_BerylSetting (*),double (*))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_get_float_max(struct __pyx_t_13berylsettings_BerylSetting (*),double (*))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_get_float_precision(struct __pyx_t_13berylsettings_BerylSetting (*),double (*))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_get_list_type(struct __pyx_t_13berylsettings_BerylSetting (*),enum __pyx_t_13berylsettings_BerylSettingType (*))); /*proto*/ __PYX_EXTERN_C enum __pyx_t_13berylsettings_BerylSettingType (beryl_setting_get_type(struct __pyx_t_13berylsettings_BerylSetting (*))); /*proto*/ __PYX_EXTERN_C char (*(beryl_setting_get_short_desc(struct __pyx_t_13berylsettings_BerylSetting (*)))); /*proto*/ __PYX_EXTERN_C char (*(beryl_setting_get_long_desc(struct __pyx_t_13berylsettings_BerylSetting (*)))); /*proto*/ __PYX_EXTERN_C char (*(beryl_setting_get_group(struct __pyx_t_13berylsettings_BerylSetting (*)))); /*proto*/ __PYX_EXTERN_C char (*(beryl_setting_get_subgroup(struct __pyx_t_13berylsettings_BerylSetting (*)))); /*proto*/ __PYX_EXTERN_C char (*(beryl_setting_get_name(struct __pyx_t_13berylsettings_BerylSetting (*)))); /*proto*/ __PYX_EXTERN_C char (*(beryl_settings_plugin_get_short_desc(struct __pyx_t_13berylsettings_BerylSettingsPlugin (*)))); /*proto*/ __PYX_EXTERN_C char (*(beryl_settings_plugin_get_long_desc(struct __pyx_t_13berylsettings_BerylSettingsPlugin (*)))); /*proto*/ __PYX_EXTERN_C char (*(beryl_settings_plugin_get_name(struct __pyx_t_13berylsettings_BerylSettingsPlugin (*)))); /*proto*/ __PYX_EXTERN_C struct __pyx_t_13berylsettings_GSList (*(beryl_settings_context_get_plugins(struct __pyx_t_13berylsettings_BerylSettingsContext (*)))); /*proto*/ __PYX_EXTERN_C struct __pyx_t_13berylsettings_GSList (*(beryl_settings_plugin_get_settings(struct __pyx_t_13berylsettings_BerylSettingsPlugin (*)))); /*proto*/ __PYX_EXTERN_C void (*(beryl_settings_context_get_private(struct __pyx_t_13berylsettings_BerylSettingsContext (*)))); /*proto*/ __PYX_EXTERN_C void (*(beryl_settings_plugin_get_private(struct __pyx_t_13berylsettings_BerylSettingsPlugin (*)))); /*proto*/ __PYX_EXTERN_C void (*(beryl_setting_get_private(struct __pyx_t_13berylsettings_BerylSetting (*)))); /*proto*/ __PYX_EXTERN_C void (beryl_settings_context_set_private(struct __pyx_t_13berylsettings_BerylSettingsContext (*),void (*))); /*proto*/ __PYX_EXTERN_C void (beryl_settings_plugin_set_private(struct __pyx_t_13berylsettings_BerylSettingsPlugin (*),void (*))); /*proto*/ __PYX_EXTERN_C void (beryl_setting_set_private(struct __pyx_t_13berylsettings_BerylSetting (*),void (*))); /*proto*/ __PYX_EXTERN_C unsigned int (beryl_settings_get_mods_and_endptr(char (*),char (*(*)))); /*proto*/ __PYX_EXTERN_C char (*(beryl_settings_mods_to_string(unsigned int ))); /*proto*/ __PYX_EXTERN_C int (beryl_settings_get_plugin_category_count(void)); /*proto*/ __PYX_EXTERN_C struct __pyx_t_13berylsettings_BerylSettingsPluginCategory (*(beryl_settings_context_get_nth_plugin_category(struct __pyx_t_13berylsettings_BerylSettingsContext (*),int ))); /*proto*/ __PYX_EXTERN_C char (*(beryl_settings_plugin_category_get_name(struct __pyx_t_13berylsettings_BerylSettingsPluginCategory (*)))); /*proto*/ __PYX_EXTERN_C char (*(beryl_settings_plugin_category_get_short_desc(struct __pyx_t_13berylsettings_BerylSettingsPluginCategory (*)))); /*proto*/ __PYX_EXTERN_C char (*(beryl_settings_plugin_category_get_long_desc(struct __pyx_t_13berylsettings_BerylSettingsPluginCategory (*)))); /*proto*/ __PYX_EXTERN_C struct __pyx_t_13berylsettings_GSList (*(beryl_settings_plugin_category_get_plugins(struct __pyx_t_13berylsettings_BerylSettingsPluginCategory (*)))); /*proto*/ __PYX_EXTERN_C struct __pyx_t_13berylsettings_GSList (*(beryl_settings_plugin_get_provides(struct __pyx_t_13berylsettings_BerylSettingsPlugin (*)))); /*proto*/ __PYX_EXTERN_C struct __pyx_t_13berylsettings_GSList (*(beryl_settings_plugin_get_requires(struct __pyx_t_13berylsettings_BerylSettingsPlugin (*)))); /*proto*/ __PYX_EXTERN_C struct __pyx_t_13berylsettings_GSList (*(beryl_settings_plugin_get_load_before(struct __pyx_t_13berylsettings_BerylSettingsPlugin (*)))); /*proto*/ __PYX_EXTERN_C struct __pyx_t_13berylsettings_GSList (*(beryl_settings_plugin_get_load_after(struct __pyx_t_13berylsettings_BerylSettingsPlugin (*)))); /*proto*/ __PYX_EXTERN_C char (*(beryl_settings_group_get_desc(struct __pyx_t_13berylsettings_BerylSettingsGroup (*)))); /*proto*/ __PYX_EXTERN_C char (*(beryl_settings_subgroup_get_desc(struct __pyx_t_13berylsettings_BerylSettingsSubGroup (*)))); /*proto*/ __PYX_EXTERN_C void (beryl_settings_context_set_profile(struct __pyx_t_13berylsettings_BerylSettingsContext (*),char (*))); /*proto*/ __PYX_EXTERN_C char (*(beryl_settings_context_get_profile(struct __pyx_t_13berylsettings_BerylSettingsContext (*)))); /*proto*/ __PYX_EXTERN_C void (beryl_settings_context_set_de_integration_enabled(struct __pyx_t_13berylsettings_BerylSettingsContext (*),int )); /*proto*/ __PYX_EXTERN_C int (beryl_settings_context_get_de_integration_enabled(struct __pyx_t_13berylsettings_BerylSettingsContext (*))); /*proto*/ __PYX_EXTERN_C int (beryl_settings_context_get_setting_is_read_only(struct __pyx_t_13berylsettings_BerylSettingsContext (*),struct __pyx_t_13berylsettings_BerylSetting (*))); /*proto*/ __PYX_EXTERN_C int (beryl_settings_context_get_setting_is_de_integrated(struct __pyx_t_13berylsettings_BerylSettingsContext (*),struct __pyx_t_13berylsettings_BerylSetting (*))); /*proto*/ __PYX_EXTERN_C char (*(beryl_settings_context_get_backend(struct __pyx_t_13berylsettings_BerylSettingsContext (*)))); /*proto*/ __PYX_EXTERN_C int (beryl_setting_get_is_advanced(struct __pyx_t_13berylsettings_BerylSetting (*))); /*proto*/ __PYX_EXTERN_C int (beryl_settings_context_import_from_file(struct __pyx_t_13berylsettings_BerylSettingsContext (*),char (*),int )); /*proto*/ __PYX_EXTERN_C int (beryl_settings_context_export_to_file(struct __pyx_t_13berylsettings_BerylSettingsContext (*),char (*))); /*proto*/ __PYX_EXTERN_C struct __pyx_t_13berylsettings_GSList (*(beryl_settings_context_get_existing_profiles(struct __pyx_t_13berylsettings_BerylSettingsContext (*)))); /*proto*/ __PYX_EXTERN_C void (beryl_settings_free_profile_list(struct __pyx_t_13berylsettings_GSList (*))); /*proto*/ __PYX_EXTERN_C struct __pyx_t_13berylsettings_BerylSettingsPlugin (*(beryl_setting_get_plugin(struct __pyx_t_13berylsettings_BerylSetting (*)))); /*proto*/ __PYX_EXTERN_C struct __pyx_t_13berylsettings_BerylSetting (*(beryl_settings_context_find_first_edge_owner(struct __pyx_t_13berylsettings_BerylSettingsContext (*),int ))); /*proto*/ __PYX_EXTERN_C enum __pyx_t_13berylsettings_BerylSettingConflictType (beryl_setting_conflict_get_type(struct __pyx_t_13berylsettings_BerylSettingConflict (*))); /*proto*/ __PYX_EXTERN_C struct __pyx_t_13berylsettings_GSList (*(beryl_setting_conflict_get_settings(struct __pyx_t_13berylsettings_BerylSettingConflict (*)))); /*proto*/ __PYX_EXTERN_C struct __pyx_t_13berylsettings_GSList (*(beryl_settings_context_find_conflicts(struct __pyx_t_13berylsettings_BerylSettingsContext (*),enum __pyx_t_13berylsettings_BerylSettingConflictType ))); /*proto*/ __PYX_EXTERN_C struct __pyx_t_13berylsettings_GSList (*(beryl_settings_context_find_conflicts_for_setting(struct __pyx_t_13berylsettings_BerylSettingsContext (*),struct __pyx_t_13berylsettings_BerylSetting (*),enum __pyx_t_13berylsettings_BerylSettingConflictType ))); /*proto*/ __PYX_EXTERN_C void (beryl_settings_free_conflict_list(struct __pyx_t_13berylsettings_GSList (*))); /*proto*/ __PYX_EXTERN_C struct __pyx_t_13berylsettings_GSList (*(beryl_settings_context_get_active_plugins(struct __pyx_t_13berylsettings_BerylSettingsContext (*)))); /*proto*/ __PYX_EXTERN_C int (beryl_settings_plugin_enable(struct __pyx_t_13berylsettings_BerylSettingsPlugin (*))); /*proto*/ __PYX_EXTERN_C int (beryl_settings_plugin_disable(struct __pyx_t_13berylsettings_BerylSettingsPlugin (*))); /*proto*/ __PYX_EXTERN_C int (beryl_settings_plugin_get_is_enabled(struct __pyx_t_13berylsettings_BerylSettingsPlugin (*))); /*proto*/ __PYX_EXTERN_C struct __pyx_t_13berylsettings_GSList (*(beryl_settings_get_backends(void))); /*proto*/ __PYX_EXTERN_C char (*(beryl_settings_backend_get_name(struct __pyx_t_13berylsettings_BerylSettingsBackend (*)))); /*proto*/ __PYX_EXTERN_C char (*(beryl_settings_backend_get_short_desc(struct __pyx_t_13berylsettings_BerylSettingsBackend (*)))); /*proto*/ __PYX_EXTERN_C int (beryl_settings_backend_get_supports_integration(struct __pyx_t_13berylsettings_BerylSettingsBackend (*))); /*proto*/ __PYX_EXTERN_C int (beryl_settings_delete_profile(struct __pyx_t_13berylsettings_BerylSettingsContext (*),char (*))); /*proto*/ __PYX_EXTERN_C void (g_slist_free(struct __pyx_t_13berylsettings_GSList (*))); /*proto*/ __PYX_EXTERN_C char (*(XKeysymToString(int ))); /*proto*/ __PYX_EXTERN_C int (XStringToKeysym(char (*))); /*proto*/ static PyObject *(__pyx_f_13berylsettings_plugin_get_name(struct __pyx_t_13berylsettings_BerylSettingsPlugin (*))); /*proto*/ /* Implementation of berylsettings */ static PyObject *__pyx_n_keytostring; static PyObject *__pyx_n_modstostring; static PyObject *__pyx_n_buttontostring; static PyObject *__pyx_n_edgelisttomask; static PyObject *__pyx_n_edgetolist; static PyObject *__pyx_n_send_reload; static PyObject *__pyx_n_PluginSetEnabledException; static PyObject *__pyx_n_PluginEnableException; static PyObject *__pyx_n_PluginDisableException; static PyObject *__pyx_n_NotFoundException; static PyObject *__pyx_n_SettingNotFoundException; static PyObject *__pyx_n_GroupNotFoundException; static PyObject *__pyx_n_PluginNotFoundException; static PyObject *__pyx_n_SubGroupNotFoundException; static PyObject *__pyx_n_Backends; static PyObject *__pyx_n_Exception; static PyObject *__pyx_n___init__; static PyObject *__pyx_n___str__; static PyObject *__pyx_n_False; static PyObject *__pyx_n__; static PyObject *__pyx_f_13berylsettings_plugin_get_name(struct __pyx_t_13berylsettings_BerylSettingsPlugin (*__pyx_v_plugin)) { char (*__pyx_v_s); PyObject *__pyx_v_p; PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; __pyx_v_p = Py_None; Py_INCREF(Py_None); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":303 */ __pyx_v_s = beryl_settings_plugin_get_name(__pyx_v_plugin); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":304 */ __pyx_1 = (__pyx_v_s == 0); if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":305 */ Py_INCREF(__pyx_n__); Py_DECREF(__pyx_v_p); __pyx_v_p = __pyx_n__; goto __pyx_L2; } /*else*/ { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":307 */ __pyx_2 = PyString_FromString(__pyx_v_s); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 307; goto __pyx_L1;} Py_DECREF(__pyx_v_p); __pyx_v_p = __pyx_2; __pyx_2 = 0; } __pyx_L2:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":308 */ Py_INCREF(__pyx_v_p); __pyx_r = __pyx_v_p; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); __Pyx_AddTraceback("berylsettings.plugin_get_name"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_p); return __pyx_r; } static PyObject *__pyx_n_None; static PyObject *__pyx_f_13berylsettings_keytostring(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_13berylsettings_keytostring(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_keysym = 0; char (*__pyx_v_s); PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; static char *__pyx_argnames[] = {"keysym",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_keysym)) return 0; Py_INCREF(__pyx_v_keysym); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":312 */ __pyx_1 = PyInt_AsLong(__pyx_v_keysym); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 312; goto __pyx_L1;} __pyx_v_s = XKeysymToString(__pyx_1); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":313 */ __pyx_1 = (__pyx_v_s == 0); if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":314 */ Py_INCREF(__pyx_n_None); __pyx_r = __pyx_n_None; goto __pyx_L0; goto __pyx_L2; } __pyx_L2:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":315 */ __pyx_2 = PyString_FromString(__pyx_v_s); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 315; goto __pyx_L1;} __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); __Pyx_AddTraceback("berylsettings.keytostring"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_keysym); return __pyx_r; } static PyObject *__pyx_k14p; static char (__pyx_k14[]) = ""; static PyObject *__pyx_f_13berylsettings_modstostring(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_13berylsettings_modstostring(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_mods = 0; char (*__pyx_v_s); PyObject *__pyx_r; unsigned int __pyx_1; int __pyx_2; PyObject *__pyx_3 = 0; static char *__pyx_argnames[] = {"mods",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_mods)) return 0; Py_INCREF(__pyx_v_mods); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":319 */ __pyx_1 = PyInt_AsUnsignedLongMask(__pyx_v_mods); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 319; goto __pyx_L1;} __pyx_v_s = beryl_settings_mods_to_string(__pyx_1); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":320 */ __pyx_2 = (__pyx_v_s == 0); if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":321 */ Py_INCREF(__pyx_k14p); __pyx_r = __pyx_k14p; goto __pyx_L0; goto __pyx_L2; } __pyx_L2:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":322 */ __pyx_3 = PyString_FromString(__pyx_v_s); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 322; goto __pyx_L1;} __pyx_r = __pyx_3; __pyx_3 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_3); __Pyx_AddTraceback("berylsettings.modstostring"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_mods); return __pyx_r; } static PyObject *__pyx_k16p; static char (__pyx_k16[]) = "Button%d"; static PyObject *__pyx_f_13berylsettings_buttontostring(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_13berylsettings_buttontostring(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_button = 0; PyObject *__pyx_r; PyObject *__pyx_1 = 0; int __pyx_2; static char *__pyx_argnames[] = {"button",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_button)) return 0; Py_INCREF(__pyx_v_button); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":325 */ __pyx_1 = PyInt_FromLong(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 325; goto __pyx_L1;} if (PyObject_Cmp(__pyx_v_button, __pyx_1, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 325; goto __pyx_L1;} __pyx_2 = __pyx_2 == 0; Py_DECREF(__pyx_1); __pyx_1 = 0; if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":326 */ Py_INCREF(__pyx_n_None); __pyx_r = __pyx_n_None; goto __pyx_L0; goto __pyx_L2; } __pyx_L2:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":327 */ __pyx_1 = PyNumber_Remainder(__pyx_k16p, __pyx_v_button); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 327; goto __pyx_L1;} __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); __Pyx_AddTraceback("berylsettings.buttontostring"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_button); return __pyx_r; } static PyObject *__pyx_n_Left; static PyObject *__pyx_n_Right; static PyObject *__pyx_n_Top; static PyObject *__pyx_n_Bottom; static PyObject *__pyx_n_TopLeft; static PyObject *__pyx_n_TopRight; static PyObject *__pyx_n_BottomLeft; static PyObject *__pyx_n_BottomRight; static PyObject *__pyx_n_str; static PyObject *__pyx_n_lower; static PyObject *__pyx_f_13berylsettings_edgelisttomask(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_13berylsettings_edgelisttomask(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_edge = 0; PyObject *__pyx_v_edges; PyObject *__pyx_v_ret; PyObject *__pyx_v_each; PyObject *__pyx_v_ev; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; PyObject *__pyx_4 = 0; PyObject *__pyx_5 = 0; PyObject *__pyx_6 = 0; PyObject *__pyx_7 = 0; PyObject *__pyx_8 = 0; PyObject *__pyx_9 = 0; int __pyx_10; static char *__pyx_argnames[] = {"edge",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_edge)) return 0; Py_INCREF(__pyx_v_edge); __pyx_v_edges = Py_None; Py_INCREF(Py_None); __pyx_v_ret = Py_None; Py_INCREF(Py_None); __pyx_v_each = Py_None; Py_INCREF(Py_None); __pyx_v_ev = Py_None; Py_INCREF(Py_None); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":331 */ __pyx_1 = PyInt_FromLong(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; goto __pyx_L1;} __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_2, 0, __pyx_1); Py_INCREF(__pyx_n_Left); PyTuple_SET_ITEM(__pyx_2, 1, __pyx_n_Left); __pyx_1 = 0; __pyx_1 = PyInt_FromLong(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 332; goto __pyx_L1;} __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 332; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_3, 0, __pyx_1); Py_INCREF(__pyx_n_Right); PyTuple_SET_ITEM(__pyx_3, 1, __pyx_n_Right); __pyx_1 = 0; __pyx_1 = PyInt_FromLong(4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; goto __pyx_L1;} __pyx_4 = PyTuple_New(2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_4, 0, __pyx_1); Py_INCREF(__pyx_n_Top); PyTuple_SET_ITEM(__pyx_4, 1, __pyx_n_Top); __pyx_1 = 0; __pyx_1 = PyInt_FromLong(8); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 334; goto __pyx_L1;} __pyx_5 = PyTuple_New(2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 334; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_5, 0, __pyx_1); Py_INCREF(__pyx_n_Bottom); PyTuple_SET_ITEM(__pyx_5, 1, __pyx_n_Bottom); __pyx_1 = 0; __pyx_1 = PyInt_FromLong(16); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 335; goto __pyx_L1;} __pyx_6 = PyTuple_New(2); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 335; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_6, 0, __pyx_1); Py_INCREF(__pyx_n_TopLeft); PyTuple_SET_ITEM(__pyx_6, 1, __pyx_n_TopLeft); __pyx_1 = 0; __pyx_1 = PyInt_FromLong(32); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 336; goto __pyx_L1;} __pyx_7 = PyTuple_New(2); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 336; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_7, 0, __pyx_1); Py_INCREF(__pyx_n_TopRight); PyTuple_SET_ITEM(__pyx_7, 1, __pyx_n_TopRight); __pyx_1 = 0; __pyx_1 = PyInt_FromLong(64); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 337; goto __pyx_L1;} __pyx_8 = PyTuple_New(2); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 337; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_8, 0, __pyx_1); Py_INCREF(__pyx_n_BottomLeft); PyTuple_SET_ITEM(__pyx_8, 1, __pyx_n_BottomLeft); __pyx_1 = 0; __pyx_1 = PyInt_FromLong(128); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; goto __pyx_L1;} __pyx_9 = PyTuple_New(2); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_9, 0, __pyx_1); Py_INCREF(__pyx_n_BottomRight); PyTuple_SET_ITEM(__pyx_9, 1, __pyx_n_BottomRight); __pyx_1 = 0; __pyx_1 = PyTuple_New(8); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_1, 0, __pyx_2); PyTuple_SET_ITEM(__pyx_1, 1, __pyx_3); PyTuple_SET_ITEM(__pyx_1, 2, __pyx_4); PyTuple_SET_ITEM(__pyx_1, 3, __pyx_5); PyTuple_SET_ITEM(__pyx_1, 4, __pyx_6); PyTuple_SET_ITEM(__pyx_1, 5, __pyx_7); PyTuple_SET_ITEM(__pyx_1, 6, __pyx_8); PyTuple_SET_ITEM(__pyx_1, 7, __pyx_9); __pyx_2 = 0; __pyx_3 = 0; __pyx_4 = 0; __pyx_5 = 0; __pyx_6 = 0; __pyx_7 = 0; __pyx_8 = 0; __pyx_9 = 0; Py_DECREF(__pyx_v_edges); __pyx_v_edges = __pyx_1; __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":339 */ __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 339; goto __pyx_L1;} Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_2; __pyx_2 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":340 */ __pyx_3 = PyObject_GetIter(__pyx_v_edge); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 340; goto __pyx_L1;} for (;;) { __pyx_L2:; __pyx_4 = PyIter_Next(__pyx_3); if (!__pyx_4) { if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 340; goto __pyx_L1;} break; } Py_DECREF(__pyx_v_each); __pyx_v_each = __pyx_4; __pyx_4 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":341 */ __pyx_5 = PyObject_GetIter(__pyx_v_edges); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; goto __pyx_L1;} for (;;) { __pyx_L4:; __pyx_6 = PyIter_Next(__pyx_5); if (!__pyx_6) { if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; goto __pyx_L1;} break; } Py_DECREF(__pyx_v_ev); __pyx_v_ev = __pyx_6; __pyx_6 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":342 */ __pyx_7 = __Pyx_GetName(__pyx_b, __pyx_n_str); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 342; goto __pyx_L1;} __pyx_8 = PyTuple_New(1); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 342; goto __pyx_L1;} Py_INCREF(__pyx_v_each); PyTuple_SET_ITEM(__pyx_8, 0, __pyx_v_each); __pyx_9 = PyObject_CallObject(__pyx_7, __pyx_8); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 342; goto __pyx_L1;} Py_DECREF(__pyx_7); __pyx_7 = 0; Py_DECREF(__pyx_8); __pyx_8 = 0; __pyx_1 = PyObject_GetAttr(__pyx_9, __pyx_n_lower); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 342; goto __pyx_L1;} Py_DECREF(__pyx_9); __pyx_9 = 0; __pyx_2 = PyTuple_New(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 342; goto __pyx_L1;} __pyx_4 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 342; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_6 = PyInt_FromLong(1); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 342; goto __pyx_L1;} __pyx_7 = PyObject_GetItem(__pyx_v_ev, __pyx_6); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 342; goto __pyx_L1;} Py_DECREF(__pyx_6); __pyx_6 = 0; __pyx_8 = PyObject_GetAttr(__pyx_7, __pyx_n_lower); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 342; goto __pyx_L1;} Py_DECREF(__pyx_7); __pyx_7 = 0; __pyx_9 = PyTuple_New(0); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 342; goto __pyx_L1;} __pyx_1 = PyObject_CallObject(__pyx_8, __pyx_9); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 342; goto __pyx_L1;} Py_DECREF(__pyx_8); __pyx_8 = 0; Py_DECREF(__pyx_9); __pyx_9 = 0; if (PyObject_Cmp(__pyx_4, __pyx_1, &__pyx_10) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 342; goto __pyx_L1;} __pyx_10 = __pyx_10 == 0; Py_DECREF(__pyx_4); __pyx_4 = 0; Py_DECREF(__pyx_1); __pyx_1 = 0; if (__pyx_10) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":343 */ __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; goto __pyx_L1;} __pyx_6 = PyObject_GetItem(__pyx_v_ev, __pyx_2); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_7 = PyNumber_Or(__pyx_v_ret, __pyx_6); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; goto __pyx_L1;} Py_DECREF(__pyx_6); __pyx_6 = 0; Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_7; __pyx_7 = 0; goto __pyx_L6; } __pyx_L6:; } __pyx_L5:; Py_DECREF(__pyx_5); __pyx_5 = 0; } __pyx_L3:; Py_DECREF(__pyx_3); __pyx_3 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":344 */ Py_INCREF(__pyx_v_ret); __pyx_r = __pyx_v_ret; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); Py_XDECREF(__pyx_5); Py_XDECREF(__pyx_6); Py_XDECREF(__pyx_7); Py_XDECREF(__pyx_8); Py_XDECREF(__pyx_9); __Pyx_AddTraceback("berylsettings.edgelisttomask"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_edges); Py_DECREF(__pyx_v_ret); Py_DECREF(__pyx_v_each); Py_DECREF(__pyx_v_ev); Py_DECREF(__pyx_v_edge); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_edgetolist(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_13berylsettings_edgetolist(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_edge = 0; PyObject *__pyx_v_edges; PyObject *__pyx_v_ret; PyObject *__pyx_v_p; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; PyObject *__pyx_4 = 0; PyObject *__pyx_5 = 0; PyObject *__pyx_6 = 0; PyObject *__pyx_7 = 0; PyObject *__pyx_8 = 0; PyObject *__pyx_9 = 0; int __pyx_10; static char *__pyx_argnames[] = {"edge",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_edge)) return 0; Py_INCREF(__pyx_v_edge); __pyx_v_edges = Py_None; Py_INCREF(Py_None); __pyx_v_ret = Py_None; Py_INCREF(Py_None); __pyx_v_p = Py_None; Py_INCREF(Py_None); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":348 */ __pyx_1 = PyInt_FromLong(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; goto __pyx_L1;} __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_2, 0, __pyx_1); Py_INCREF(__pyx_n_Left); PyTuple_SET_ITEM(__pyx_2, 1, __pyx_n_Left); __pyx_1 = 0; __pyx_1 = PyInt_FromLong(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 349; goto __pyx_L1;} __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 349; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_3, 0, __pyx_1); Py_INCREF(__pyx_n_Right); PyTuple_SET_ITEM(__pyx_3, 1, __pyx_n_Right); __pyx_1 = 0; __pyx_1 = PyInt_FromLong(4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; goto __pyx_L1;} __pyx_4 = PyTuple_New(2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_4, 0, __pyx_1); Py_INCREF(__pyx_n_Top); PyTuple_SET_ITEM(__pyx_4, 1, __pyx_n_Top); __pyx_1 = 0; __pyx_1 = PyInt_FromLong(8); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 351; goto __pyx_L1;} __pyx_5 = PyTuple_New(2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 351; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_5, 0, __pyx_1); Py_INCREF(__pyx_n_Bottom); PyTuple_SET_ITEM(__pyx_5, 1, __pyx_n_Bottom); __pyx_1 = 0; __pyx_1 = PyInt_FromLong(16); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 352; goto __pyx_L1;} __pyx_6 = PyTuple_New(2); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 352; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_6, 0, __pyx_1); Py_INCREF(__pyx_n_TopLeft); PyTuple_SET_ITEM(__pyx_6, 1, __pyx_n_TopLeft); __pyx_1 = 0; __pyx_1 = PyInt_FromLong(32); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; goto __pyx_L1;} __pyx_7 = PyTuple_New(2); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_7, 0, __pyx_1); Py_INCREF(__pyx_n_TopRight); PyTuple_SET_ITEM(__pyx_7, 1, __pyx_n_TopRight); __pyx_1 = 0; __pyx_1 = PyInt_FromLong(64); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 354; goto __pyx_L1;} __pyx_8 = PyTuple_New(2); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 354; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_8, 0, __pyx_1); Py_INCREF(__pyx_n_BottomLeft); PyTuple_SET_ITEM(__pyx_8, 1, __pyx_n_BottomLeft); __pyx_1 = 0; __pyx_1 = PyInt_FromLong(128); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 355; goto __pyx_L1;} __pyx_9 = PyTuple_New(2); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 355; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_9, 0, __pyx_1); Py_INCREF(__pyx_n_BottomRight); PyTuple_SET_ITEM(__pyx_9, 1, __pyx_n_BottomRight); __pyx_1 = 0; __pyx_1 = PyTuple_New(8); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_1, 0, __pyx_2); PyTuple_SET_ITEM(__pyx_1, 1, __pyx_3); PyTuple_SET_ITEM(__pyx_1, 2, __pyx_4); PyTuple_SET_ITEM(__pyx_1, 3, __pyx_5); PyTuple_SET_ITEM(__pyx_1, 4, __pyx_6); PyTuple_SET_ITEM(__pyx_1, 5, __pyx_7); PyTuple_SET_ITEM(__pyx_1, 6, __pyx_8); PyTuple_SET_ITEM(__pyx_1, 7, __pyx_9); __pyx_2 = 0; __pyx_3 = 0; __pyx_4 = 0; __pyx_5 = 0; __pyx_6 = 0; __pyx_7 = 0; __pyx_8 = 0; __pyx_9 = 0; Py_DECREF(__pyx_v_edges); __pyx_v_edges = __pyx_1; __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":356 */ __pyx_2 = PyList_New(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 356; goto __pyx_L1;} Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_2; __pyx_2 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":357 */ __pyx_3 = PyObject_GetIter(__pyx_v_edges); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 357; goto __pyx_L1;} for (;;) { __pyx_L2:; __pyx_4 = PyIter_Next(__pyx_3); if (!__pyx_4) { if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 357; goto __pyx_L1;} break; } Py_DECREF(__pyx_v_p); __pyx_v_p = __pyx_4; __pyx_4 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":358 */ __pyx_5 = PyInt_FromLong(0); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; goto __pyx_L1;} __pyx_6 = PyObject_GetItem(__pyx_v_p, __pyx_5); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; goto __pyx_L1;} Py_DECREF(__pyx_5); __pyx_5 = 0; __pyx_7 = PyNumber_And(__pyx_v_edge, __pyx_6); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; goto __pyx_L1;} Py_DECREF(__pyx_6); __pyx_6 = 0; __pyx_10 = PyObject_IsTrue(__pyx_7); if (__pyx_10 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; goto __pyx_L1;} Py_DECREF(__pyx_7); __pyx_7 = 0; if (__pyx_10) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":359 */ __pyx_8 = PyInt_FromLong(1); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 359; goto __pyx_L1;} __pyx_9 = PyObject_GetItem(__pyx_v_p, __pyx_8); if (!__pyx_9) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 359; goto __pyx_L1;} Py_DECREF(__pyx_8); __pyx_8 = 0; __pyx_1 = PyList_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 359; goto __pyx_L1;} PyList_SET_ITEM(__pyx_1, 0, __pyx_9); __pyx_9 = 0; __pyx_2 = PyNumber_Add(__pyx_v_ret, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 359; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_2; __pyx_2 = 0; goto __pyx_L4; } __pyx_L4:; } __pyx_L3:; Py_DECREF(__pyx_3); __pyx_3 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":360 */ Py_INCREF(__pyx_v_ret); __pyx_r = __pyx_v_ret; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); Py_XDECREF(__pyx_5); Py_XDECREF(__pyx_6); Py_XDECREF(__pyx_7); Py_XDECREF(__pyx_8); Py_XDECREF(__pyx_9); __Pyx_AddTraceback("berylsettings.edgetolist"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_edges); Py_DECREF(__pyx_v_ret); Py_DECREF(__pyx_v_p); Py_DECREF(__pyx_v_edge); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_send_reload(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_13berylsettings_send_reload(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_r; static char *__pyx_argnames[] = {0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":363 */ beryl_settings_send_reload_signal(); __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; __Pyx_AddTraceback("berylsettings.send_reload"); __pyx_r = 0; __pyx_L0:; return __pyx_r; } static PyObject *__pyx_n_plugin; static PyObject *__pyx_n_type; static PyObject *__pyx_f_13berylsettings_25PluginSetEnabledException___init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_13berylsettings_25PluginSetEnabledException___init__ = {"__init__", (PyCFunction)__pyx_f_13berylsettings_25PluginSetEnabledException___init__, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_f_13berylsettings_25PluginSetEnabledException___init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_plugin = 0; PyObject *__pyx_v_type = 0; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; static char *__pyx_argnames[] = {"self","plugin","type",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OOO", __pyx_argnames, &__pyx_v_self, &__pyx_v_plugin, &__pyx_v_type)) return 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_plugin); Py_INCREF(__pyx_v_type); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":367 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_str); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; goto __pyx_L1;} __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; goto __pyx_L1;} Py_INCREF(__pyx_v_plugin); PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_plugin); __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; if (PyObject_SetAttr(__pyx_v_self, __pyx_n_plugin, __pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":368 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_str); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 368; goto __pyx_L1;} __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 368; goto __pyx_L1;} Py_INCREF(__pyx_v_type); PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_type); __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 368; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; if (PyObject_SetAttr(__pyx_v_self, __pyx_n_type, __pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 368; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("berylsettings.PluginSetEnabledException.__init__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_plugin); Py_DECREF(__pyx_v_type); return __pyx_r; } static PyObject *__pyx_n_repr; static PyObject *__pyx_k33p; static char (__pyx_k33[]) = "Could not %s %s, dependencies not met."; static PyObject *__pyx_f_13berylsettings_25PluginSetEnabledException___str__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_13berylsettings_25PluginSetEnabledException___str__ = {"__str__", (PyCFunction)__pyx_f_13berylsettings_25PluginSetEnabledException___str__, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_f_13berylsettings_25PluginSetEnabledException___str__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; PyObject *__pyx_4 = 0; static char *__pyx_argnames[] = {"self",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_self)) return 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":370 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_repr); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; goto __pyx_L1;} __pyx_2 = PyObject_GetAttr(__pyx_v_self, __pyx_n_type); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; goto __pyx_L1;} __pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_plugin); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; goto __pyx_L1;} __pyx_4 = PyTuple_New(2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_4, 0, __pyx_2); PyTuple_SET_ITEM(__pyx_4, 1, __pyx_3); __pyx_2 = 0; __pyx_3 = 0; __pyx_2 = PyNumber_Remainder(__pyx_k33p, __pyx_4); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_3, 0, __pyx_2); __pyx_2 = 0; __pyx_4 = PyObject_CallObject(__pyx_1, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_r = __pyx_4; __pyx_4 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); __Pyx_AddTraceback("berylsettings.PluginSetEnabledException.__str__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_n_enable; static PyObject *__pyx_f_13berylsettings_21PluginEnableException___init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_13berylsettings_21PluginEnableException___init__ = {"__init__", (PyCFunction)__pyx_f_13berylsettings_21PluginEnableException___init__, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_f_13berylsettings_21PluginEnableException___init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_plugin = 0; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; static char *__pyx_argnames[] = {"self","plugin",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OO", __pyx_argnames, &__pyx_v_self, &__pyx_v_plugin)) return 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_plugin); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":374 */ __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_PluginSetEnabledException); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 374; goto __pyx_L1;} __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n___init__); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 374; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_1 = PyTuple_New(3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 374; goto __pyx_L1;} Py_INCREF(__pyx_v_self); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_self); Py_INCREF(__pyx_v_plugin); PyTuple_SET_ITEM(__pyx_1, 1, __pyx_v_plugin); Py_INCREF(__pyx_n_enable); PyTuple_SET_ITEM(__pyx_1, 2, __pyx_n_enable); __pyx_3 = PyObject_CallObject(__pyx_2, __pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 374; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("berylsettings.PluginEnableException.__init__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_plugin); return __pyx_r; } static PyObject *__pyx_n_disable; static PyObject *__pyx_f_13berylsettings_22PluginDisableException___init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_13berylsettings_22PluginDisableException___init__ = {"__init__", (PyCFunction)__pyx_f_13berylsettings_22PluginDisableException___init__, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_f_13berylsettings_22PluginDisableException___init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_plugin = 0; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; static char *__pyx_argnames[] = {"self","plugin",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OO", __pyx_argnames, &__pyx_v_self, &__pyx_v_plugin)) return 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_plugin); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":378 */ __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_PluginSetEnabledException); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; goto __pyx_L1;} __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n___init__); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_1 = PyTuple_New(3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; goto __pyx_L1;} Py_INCREF(__pyx_v_self); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_self); Py_INCREF(__pyx_v_plugin); PyTuple_SET_ITEM(__pyx_1, 1, __pyx_v_plugin); Py_INCREF(__pyx_n_disable); PyTuple_SET_ITEM(__pyx_1, 2, __pyx_n_disable); __pyx_3 = PyObject_CallObject(__pyx_2, __pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("berylsettings.PluginDisableException.__init__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_plugin); return __pyx_r; } static PyObject *__pyx_n_value; static PyObject *__pyx_n_owner; static PyObject *__pyx_f_13berylsettings_17NotFoundException___init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_13berylsettings_17NotFoundException___init__ = {"__init__", (PyCFunction)__pyx_f_13berylsettings_17NotFoundException___init__, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_f_13berylsettings_17NotFoundException___init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_type = 0; PyObject *__pyx_v_value = 0; PyObject *__pyx_v_owner = 0; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; static char *__pyx_argnames[] = {"self","type","value","owner",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OOOO", __pyx_argnames, &__pyx_v_self, &__pyx_v_type, &__pyx_v_value, &__pyx_v_owner)) return 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_type); Py_INCREF(__pyx_v_value); Py_INCREF(__pyx_v_owner); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":382 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_str); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 382; goto __pyx_L1;} __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 382; goto __pyx_L1;} Py_INCREF(__pyx_v_value); PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_value); __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 382; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; if (PyObject_SetAttr(__pyx_v_self, __pyx_n_value, __pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 382; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":383 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_str); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 383; goto __pyx_L1;} __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 383; goto __pyx_L1;} Py_INCREF(__pyx_v_type); PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_type); __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 383; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; if (PyObject_SetAttr(__pyx_v_self, __pyx_n_type, __pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 383; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":384 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_str); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; goto __pyx_L1;} __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; goto __pyx_L1;} Py_INCREF(__pyx_v_owner); PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_owner); __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; if (PyObject_SetAttr(__pyx_v_self, __pyx_n_owner, __pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("berylsettings.NotFoundException.__init__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_type); Py_DECREF(__pyx_v_value); Py_DECREF(__pyx_v_owner); return __pyx_r; } static PyObject *__pyx_k36p; static char (__pyx_k36[]) = "Could not find %s named \"%s\" in \"%s\""; static PyObject *__pyx_f_13berylsettings_17NotFoundException___str__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_13berylsettings_17NotFoundException___str__ = {"__str__", (PyCFunction)__pyx_f_13berylsettings_17NotFoundException___str__, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_f_13berylsettings_17NotFoundException___str__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; PyObject *__pyx_4 = 0; PyObject *__pyx_5 = 0; static char *__pyx_argnames[] = {"self",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_self)) return 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":386 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_repr); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 386; goto __pyx_L1;} __pyx_2 = PyObject_GetAttr(__pyx_v_self, __pyx_n_type); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 386; goto __pyx_L1;} __pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_value); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 386; goto __pyx_L1;} __pyx_4 = PyObject_GetAttr(__pyx_v_self, __pyx_n_owner); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 386; goto __pyx_L1;} __pyx_5 = PyTuple_New(3); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 386; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_5, 0, __pyx_2); PyTuple_SET_ITEM(__pyx_5, 1, __pyx_3); PyTuple_SET_ITEM(__pyx_5, 2, __pyx_4); __pyx_2 = 0; __pyx_3 = 0; __pyx_4 = 0; __pyx_2 = PyNumber_Remainder(__pyx_k36p, __pyx_5); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 386; goto __pyx_L1;} Py_DECREF(__pyx_5); __pyx_5 = 0; __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 386; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_3, 0, __pyx_2); __pyx_2 = 0; __pyx_4 = PyObject_CallObject(__pyx_1, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 386; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_r = __pyx_4; __pyx_4 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); Py_XDECREF(__pyx_5); __Pyx_AddTraceback("berylsettings.NotFoundException.__str__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_n_setting; static PyObject *__pyx_f_13berylsettings_24SettingNotFoundException___init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_13berylsettings_24SettingNotFoundException___init__ = {"__init__", (PyCFunction)__pyx_f_13berylsettings_24SettingNotFoundException___init__, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_f_13berylsettings_24SettingNotFoundException___init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_value = 0; PyObject *__pyx_v_owner = 0; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; static char *__pyx_argnames[] = {"self","value","owner",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OOO", __pyx_argnames, &__pyx_v_self, &__pyx_v_value, &__pyx_v_owner)) return 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_value); Py_INCREF(__pyx_v_owner); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":390 */ __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_NotFoundException); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 390; goto __pyx_L1;} __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n___init__); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 390; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_1 = PyTuple_New(4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 390; goto __pyx_L1;} Py_INCREF(__pyx_v_self); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_self); Py_INCREF(__pyx_n_setting); PyTuple_SET_ITEM(__pyx_1, 1, __pyx_n_setting); Py_INCREF(__pyx_v_value); PyTuple_SET_ITEM(__pyx_1, 2, __pyx_v_value); Py_INCREF(__pyx_v_owner); PyTuple_SET_ITEM(__pyx_1, 3, __pyx_v_owner); __pyx_3 = PyObject_CallObject(__pyx_2, __pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 390; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("berylsettings.SettingNotFoundException.__init__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_value); Py_DECREF(__pyx_v_owner); return __pyx_r; } static PyObject *__pyx_n_group; static PyObject *__pyx_f_13berylsettings_22GroupNotFoundException___init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_13berylsettings_22GroupNotFoundException___init__ = {"__init__", (PyCFunction)__pyx_f_13berylsettings_22GroupNotFoundException___init__, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_f_13berylsettings_22GroupNotFoundException___init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_value = 0; PyObject *__pyx_v_owner = 0; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; static char *__pyx_argnames[] = {"self","value","owner",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OOO", __pyx_argnames, &__pyx_v_self, &__pyx_v_value, &__pyx_v_owner)) return 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_value); Py_INCREF(__pyx_v_owner); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":394 */ __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_NotFoundException); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 394; goto __pyx_L1;} __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n___init__); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 394; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_1 = PyTuple_New(4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 394; goto __pyx_L1;} Py_INCREF(__pyx_v_self); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_self); Py_INCREF(__pyx_n_group); PyTuple_SET_ITEM(__pyx_1, 1, __pyx_n_group); Py_INCREF(__pyx_v_value); PyTuple_SET_ITEM(__pyx_1, 2, __pyx_v_value); Py_INCREF(__pyx_v_owner); PyTuple_SET_ITEM(__pyx_1, 3, __pyx_v_owner); __pyx_3 = PyObject_CallObject(__pyx_2, __pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 394; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("berylsettings.GroupNotFoundException.__init__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_value); Py_DECREF(__pyx_v_owner); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_23PluginNotFoundException___init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_13berylsettings_23PluginNotFoundException___init__ = {"__init__", (PyCFunction)__pyx_f_13berylsettings_23PluginNotFoundException___init__, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_f_13berylsettings_23PluginNotFoundException___init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_value = 0; PyObject *__pyx_v_owner = 0; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; static char *__pyx_argnames[] = {"self","value","owner",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OOO", __pyx_argnames, &__pyx_v_self, &__pyx_v_value, &__pyx_v_owner)) return 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_value); Py_INCREF(__pyx_v_owner); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":398 */ __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_NotFoundException); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 398; goto __pyx_L1;} __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n___init__); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 398; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_1 = PyTuple_New(4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 398; goto __pyx_L1;} Py_INCREF(__pyx_v_self); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_self); Py_INCREF(__pyx_n_plugin); PyTuple_SET_ITEM(__pyx_1, 1, __pyx_n_plugin); Py_INCREF(__pyx_v_value); PyTuple_SET_ITEM(__pyx_1, 2, __pyx_v_value); Py_INCREF(__pyx_v_owner); PyTuple_SET_ITEM(__pyx_1, 3, __pyx_v_owner); __pyx_3 = PyObject_CallObject(__pyx_2, __pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 398; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("berylsettings.PluginNotFoundException.__init__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_value); Py_DECREF(__pyx_v_owner); return __pyx_r; } static PyObject *__pyx_n_subgroup; static PyObject *__pyx_f_13berylsettings_25SubGroupNotFoundException___init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_13berylsettings_25SubGroupNotFoundException___init__ = {"__init__", (PyCFunction)__pyx_f_13berylsettings_25SubGroupNotFoundException___init__, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_f_13berylsettings_25SubGroupNotFoundException___init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_value = 0; PyObject *__pyx_v_owner = 0; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; static char *__pyx_argnames[] = {"self","value","owner",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OOO", __pyx_argnames, &__pyx_v_self, &__pyx_v_value, &__pyx_v_owner)) return 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_value); Py_INCREF(__pyx_v_owner); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":402 */ __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_NotFoundException); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 402; goto __pyx_L1;} __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n___init__); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 402; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_1 = PyTuple_New(4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 402; goto __pyx_L1;} Py_INCREF(__pyx_v_self); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_self); Py_INCREF(__pyx_n_subgroup); PyTuple_SET_ITEM(__pyx_1, 1, __pyx_n_subgroup); Py_INCREF(__pyx_v_value); PyTuple_SET_ITEM(__pyx_1, 2, __pyx_v_value); Py_INCREF(__pyx_v_owner); PyTuple_SET_ITEM(__pyx_1, 3, __pyx_v_owner); __pyx_3 = PyObject_CallObject(__pyx_2, __pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 402; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("berylsettings.SubGroupNotFoundException.__init__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_value); Py_DECREF(__pyx_v_owner); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_Backends(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_13berylsettings_Backends(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { struct __pyx_t_13berylsettings_GSList (*__pyx_v_l); struct __pyx_t_13berylsettings_BerylSettingsBackend (*__pyx_v_b); PyObject *__pyx_v_ret; PyObject *__pyx_r; PyObject *__pyx_1 = 0; int __pyx_2; PyObject *__pyx_3 = 0; static char *__pyx_argnames[] = {0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0; __pyx_v_ret = Py_None; Py_INCREF(Py_None); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":407 */ __pyx_v_l = beryl_settings_get_backends(); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":408 */ __pyx_1 = PyList_New(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 408; goto __pyx_L1;} Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_1; __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":409 */ __pyx_2 = (__pyx_v_l == 0); if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":410 */ Py_INCREF(__pyx_v_ret); __pyx_r = __pyx_v_ret; goto __pyx_L0; goto __pyx_L2; } __pyx_L2:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":411 */ while (1) { __pyx_L3:; __pyx_2 = (__pyx_v_l != 0); if (!__pyx_2) break; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":412 */ __pyx_v_b = ((struct __pyx_t_13berylsettings_BerylSettingsBackend (*))__pyx_v_l->data); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":413 */ __pyx_1 = PyString_FromString(beryl_settings_backend_get_name(__pyx_v_b)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 413; goto __pyx_L1;} __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 413; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_3, 0, __pyx_1); __pyx_1 = 0; __pyx_1 = PyObject_CallObject(((PyObject*)__pyx_ptype_13berylsettings_Backend), __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 413; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_3 = PyList_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 413; goto __pyx_L1;} PyList_SET_ITEM(__pyx_3, 0, __pyx_1); __pyx_1 = 0; __pyx_1 = PyNumber_Add(__pyx_v_ret, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 413; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_1; __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":414 */ __pyx_v_l = __pyx_v_l->next; } __pyx_L4:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":415 */ Py_INCREF(__pyx_v_ret); __pyx_r = __pyx_v_ret; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("berylsettings.Backends"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_ret); return __pyx_r; } static int __pyx_f_13berylsettings_7Backend___new__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_f_13berylsettings_7Backend___new__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_nam = 0; struct __pyx_t_13berylsettings_GSList (*__pyx_v_l); struct __pyx_t_13berylsettings_BerylSettingsBackend (*__pyx_v_b); int __pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; static char *__pyx_argnames[] = {"nam",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_nam)) return -1; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_nam); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":423 */ __pyx_v_l = beryl_settings_get_backends(); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":424 */ while (1) { __pyx_L2:; __pyx_1 = (__pyx_v_l != 0); if (!__pyx_1) break; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":425 */ __pyx_v_b = ((struct __pyx_t_13berylsettings_BerylSettingsBackend (*))__pyx_v_l->data); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":426 */ __pyx_2 = PyString_FromString(beryl_settings_backend_get_name(__pyx_v_b)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 426; goto __pyx_L1;} if (PyObject_Cmp(__pyx_2, __pyx_v_nam, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 426; goto __pyx_L1;} __pyx_1 = __pyx_1 == 0; Py_DECREF(__pyx_2); __pyx_2 = 0; if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":427 */ ((struct __pyx_obj_13berylsettings_Backend *)__pyx_v_self)->myBackend = __pyx_v_b; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":428 */ goto __pyx_L3; goto __pyx_L4; } __pyx_L4:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":429 */ __pyx_v_l = __pyx_v_l->next; } __pyx_L3:; __pyx_r = 0; goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); __Pyx_AddTraceback("berylsettings.Backend.__new__"); __pyx_r = -1; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_nam); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_7Backend_4Name___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Backend_4Name___get__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":433 */ __pyx_1 = PyString_FromString(beryl_settings_backend_get_name(((struct __pyx_obj_13berylsettings_Backend *)__pyx_v_self)->myBackend)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 433; goto __pyx_L1;} __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); __Pyx_AddTraceback("berylsettings.Backend.Name.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_7Backend_9ShortDesc___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Backend_9ShortDesc___get__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":437 */ __pyx_1 = PyString_FromString(beryl_settings_backend_get_short_desc(((struct __pyx_obj_13berylsettings_Backend *)__pyx_v_self)->myBackend)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 437; goto __pyx_L1;} __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); __Pyx_AddTraceback("berylsettings.Backend.ShortDesc.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_n_True; static PyObject *__pyx_f_13berylsettings_7Backend_18IntegrationSupport___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Backend_18IntegrationSupport___get__(PyObject *__pyx_v_self) { PyObject *__pyx_v_val; PyObject *__pyx_r; PyObject *__pyx_1 = 0; int __pyx_2; Py_INCREF(__pyx_v_self); __pyx_v_val = Py_None; Py_INCREF(Py_None); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":441 */ __pyx_1 = PyInt_FromLong(beryl_settings_backend_get_supports_integration(((struct __pyx_obj_13berylsettings_Backend *)__pyx_v_self)->myBackend)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 441; goto __pyx_L1;} Py_DECREF(__pyx_v_val); __pyx_v_val = __pyx_1; __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":442 */ __pyx_2 = PyObject_IsTrue(__pyx_v_val); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 442; goto __pyx_L1;} if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":443 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 443; goto __pyx_L1;} __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; goto __pyx_L2; } __pyx_L2:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":444 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 444; goto __pyx_L1;} __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); __Pyx_AddTraceback("berylsettings.Backend.IntegrationSupport.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_val); Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_n_Name; static PyObject *__pyx_k41p; static char (__pyx_k41[]) = "%s backend"; static PyObject *__pyx_f_13berylsettings_7Backend___str__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Backend___str__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":447 */ __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_Name); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 447; goto __pyx_L1;} __pyx_2 = PyNumber_Remainder(__pyx_k41p, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 447; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); __Pyx_AddTraceback("berylsettings.Backend.__str__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static int __pyx_f_13berylsettings_7Context___new__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_f_13berylsettings_7Context___new__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_r; static char *__pyx_argnames[] = {0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return -1; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":454 */ ((struct __pyx_obj_13berylsettings_Context *)__pyx_v_self)->myContext = beryl_settings_context_new(); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":455 */ ((struct __pyx_obj_13berylsettings_Context *)__pyx_v_self)->backend = beryl_settings_context_get_backend(((struct __pyx_obj_13berylsettings_Context *)__pyx_v_self)->myContext); __pyx_r = 0; goto __pyx_L0; __pyx_L1:; __Pyx_AddTraceback("berylsettings.Context.__new__"); __pyx_r = -1; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static void __pyx_f_13berylsettings_7Context___dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_f_13berylsettings_7Context___dealloc__(PyObject *__pyx_v_self) { Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":458 */ beryl_settings_context_destroy(((struct __pyx_obj_13berylsettings_Context *)__pyx_v_self)->myContext); goto __pyx_L0; __pyx_L1:; __Pyx_AddTraceback("berylsettings.Context.__dealloc__"); __pyx_L0:; Py_DECREF(__pyx_v_self); } static PyObject *__pyx_f_13berylsettings_7Context_7Backend___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Context_7Backend___get__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":462 */ __pyx_1 = PyString_FromString(beryl_settings_context_get_backend(((struct __pyx_obj_13berylsettings_Context *)__pyx_v_self)->myContext)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 462; goto __pyx_L1;} __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); __Pyx_AddTraceback("berylsettings.Context.Backend.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static int __pyx_f_13berylsettings_7Context_7Backend___set__(PyObject *__pyx_v_self, PyObject *__pyx_v_backend); /*proto*/ static int __pyx_f_13berylsettings_7Context_7Backend___set__(PyObject *__pyx_v_self, PyObject *__pyx_v_backend) { int __pyx_r; char (*__pyx_1); Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_backend); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":465 */ __pyx_1 = PyString_AsString(__pyx_v_backend); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 465; goto __pyx_L1;} beryl_settings_context_set_backend(((struct __pyx_obj_13berylsettings_Context *)__pyx_v_self)->myContext,__pyx_1); __pyx_r = 0; goto __pyx_L0; __pyx_L1:; __Pyx_AddTraceback("berylsettings.Context.Backend.__set__"); __pyx_r = -1; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_backend); return __pyx_r; } static PyObject *__pyx_n_range; static PyObject *__pyx_f_13berylsettings_7Context_10Categories___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Context_10Categories___get__(PyObject *__pyx_v_self) { int __pyx_v_i; char (*__pyx_v_n); struct __pyx_t_13berylsettings_BerylSettingsPluginCategory (*__pyx_v_pc); PyObject *__pyx_v_ret; PyObject *__pyx_v_p; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; PyObject *__pyx_4 = 0; Py_INCREF(__pyx_v_self); __pyx_v_ret = Py_None; Py_INCREF(Py_None); __pyx_v_p = Py_None; Py_INCREF(Py_None); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":472 */ __pyx_v_i = beryl_settings_get_plugin_category_count(); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":473 */ __pyx_1 = PyList_New(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 473; goto __pyx_L1;} Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_1; __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":474 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_range); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; goto __pyx_L1;} __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; goto __pyx_L1;} __pyx_3 = PyInt_FromLong(__pyx_v_i); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; goto __pyx_L1;} __pyx_4 = PyTuple_New(2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_4, 0, __pyx_2); PyTuple_SET_ITEM(__pyx_4, 1, __pyx_3); __pyx_2 = 0; __pyx_3 = 0; __pyx_2 = PyObject_CallObject(__pyx_1, __pyx_4); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_4); __pyx_4 = 0; __pyx_3 = PyObject_GetIter(__pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; for (;;) { __pyx_L2:; __pyx_1 = PyIter_Next(__pyx_3); if (!__pyx_1) { if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; goto __pyx_L1;} break; } Py_DECREF(__pyx_v_p); __pyx_v_p = __pyx_1; __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":475 */ __pyx_4 = PyTuple_New(2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 475; goto __pyx_L1;} Py_INCREF(__pyx_v_self); PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_self); Py_INCREF(__pyx_v_p); PyTuple_SET_ITEM(__pyx_4, 1, __pyx_v_p); __pyx_2 = PyObject_CallObject(((PyObject*)__pyx_ptype_13berylsettings_Category), __pyx_4); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 475; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; __pyx_1 = PyList_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 475; goto __pyx_L1;} PyList_SET_ITEM(__pyx_1, 0, __pyx_2); __pyx_2 = 0; __pyx_4 = PyNumber_Add(__pyx_v_ret, __pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 475; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_4; __pyx_4 = 0; } __pyx_L3:; Py_DECREF(__pyx_3); __pyx_3 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":476 */ Py_INCREF(__pyx_v_ret); __pyx_r = __pyx_v_ret; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); __Pyx_AddTraceback("berylsettings.Context.Categories.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_ret); Py_DECREF(__pyx_v_p); Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_7Context_7Plugins___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Context_7Plugins___get__(PyObject *__pyx_v_self) { struct __pyx_t_13berylsettings_GSList (*__pyx_v_l); PyObject *__pyx_v_ret; PyObject *__pyx_v_snam; PyObject *__pyx_r; PyObject *__pyx_1 = 0; int __pyx_2; PyObject *__pyx_3 = 0; Py_INCREF(__pyx_v_self); __pyx_v_ret = Py_None; Py_INCREF(Py_None); __pyx_v_snam = Py_None; Py_INCREF(Py_None); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":481 */ __pyx_v_l = beryl_settings_context_get_plugins(((struct __pyx_obj_13berylsettings_Context *)__pyx_v_self)->myContext); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":482 */ __pyx_1 = PyList_New(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 482; goto __pyx_L1;} Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_1; __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":483 */ while (1) { __pyx_L2:; __pyx_2 = (__pyx_v_l != 0); if (!__pyx_2) break; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":484 */ __pyx_1 = __pyx_f_13berylsettings_plugin_get_name(((struct __pyx_t_13berylsettings_BerylSettingsPlugin (*))__pyx_v_l->data)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 484; goto __pyx_L1;} Py_DECREF(__pyx_v_snam); __pyx_v_snam = __pyx_1; __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":485 */ __pyx_1 = PyTuple_New(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 485; goto __pyx_L1;} Py_INCREF(__pyx_v_self); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_self); Py_INCREF(__pyx_v_snam); PyTuple_SET_ITEM(__pyx_1, 1, __pyx_v_snam); __pyx_3 = PyObject_CallObject(((PyObject*)__pyx_ptype_13berylsettings_Plugin), __pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 485; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_1 = PyList_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 485; goto __pyx_L1;} PyList_SET_ITEM(__pyx_1, 0, __pyx_3); __pyx_3 = 0; __pyx_3 = PyNumber_Add(__pyx_v_ret, __pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 485; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_3; __pyx_3 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":486 */ __pyx_v_l = __pyx_v_l->next; } __pyx_L3:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":487 */ Py_INCREF(__pyx_v_ret); __pyx_r = __pyx_v_ret; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("berylsettings.Context.Plugins.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_ret); Py_DECREF(__pyx_v_snam); Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_7Context_7Profile___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Context_7Profile___get__(PyObject *__pyx_v_self) { char (*__pyx_v_s); PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":492 */ __pyx_v_s = beryl_settings_context_get_profile(((struct __pyx_obj_13berylsettings_Context *)__pyx_v_self)->myContext); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":493 */ __pyx_1 = (__pyx_v_s == 0); if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":494 */ Py_INCREF(Py_None); __pyx_r = Py_None; goto __pyx_L0; goto __pyx_L2; } /*else*/ { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":496 */ __pyx_2 = PyString_FromString(__pyx_v_s); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 496; goto __pyx_L1;} __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; } __pyx_L2:; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); __Pyx_AddTraceback("berylsettings.Context.Profile.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static int __pyx_f_13berylsettings_7Context_7Profile___set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val); /*proto*/ static int __pyx_f_13berylsettings_7Context_7Profile___set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val) { char (*__pyx_v_s); int __pyx_r; int __pyx_1; char (*__pyx_2); Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_val); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":499 */ if (PyObject_Cmp(__pyx_v_val, Py_None, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 499; goto __pyx_L1;} __pyx_1 = __pyx_1 == 0; if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":500 */ __pyx_v_s = 0; goto __pyx_L2; } /*else*/ { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":502 */ __pyx_2 = PyString_AsString(__pyx_v_val); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 502; goto __pyx_L1;} __pyx_v_s = __pyx_2; } __pyx_L2:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":503 */ beryl_settings_context_set_profile(((struct __pyx_obj_13berylsettings_Context *)__pyx_v_self)->myContext,__pyx_v_s); __pyx_r = 0; goto __pyx_L0; __pyx_L1:; __Pyx_AddTraceback("berylsettings.Context.Profile.__set__"); __pyx_r = -1; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_val); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_7Context_8Profiles___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Context_8Profiles___get__(PyObject *__pyx_v_self) { struct __pyx_t_13berylsettings_GSList (*__pyx_v_l); char (*__pyx_v_s); PyObject *__pyx_v_ret; PyObject *__pyx_r; PyObject *__pyx_1 = 0; int __pyx_2; PyObject *__pyx_3 = 0; Py_INCREF(__pyx_v_self); __pyx_v_ret = Py_None; Py_INCREF(Py_None); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":509 */ __pyx_v_l = beryl_settings_context_get_existing_profiles(((struct __pyx_obj_13berylsettings_Context *)__pyx_v_self)->myContext); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":510 */ __pyx_1 = PyList_New(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 510; goto __pyx_L1;} Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_1; __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":511 */ while (1) { __pyx_L2:; __pyx_2 = (__pyx_v_l != 0); if (!__pyx_2) break; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":512 */ __pyx_v_s = ((char (*))__pyx_v_l->data); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":513 */ __pyx_1 = PyString_FromString(__pyx_v_s); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 513; goto __pyx_L1;} __pyx_3 = PyList_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 513; goto __pyx_L1;} PyList_SET_ITEM(__pyx_3, 0, __pyx_1); __pyx_1 = 0; __pyx_1 = PyNumber_Add(__pyx_v_ret, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 513; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_1; __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":514 */ __pyx_v_l = __pyx_v_l->next; } __pyx_L3:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":515 */ beryl_settings_free_profile_list(__pyx_v_l); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":516 */ Py_INCREF(__pyx_v_ret); __pyx_r = __pyx_v_ret; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("berylsettings.Context.Profiles.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_ret); Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_7Context_10Integrated___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Context_10Integrated___get__(PyObject *__pyx_v_self) { PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":520 */ __pyx_1 = beryl_settings_context_get_de_integration_enabled(((struct __pyx_obj_13berylsettings_Context *)__pyx_v_self)->myContext); if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":521 */ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 521; goto __pyx_L1;} __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; goto __pyx_L2; } /*else*/ { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":523 */ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 523; goto __pyx_L1;} __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; } __pyx_L2:; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); __Pyx_AddTraceback("berylsettings.Context.Integrated.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static int __pyx_f_13berylsettings_7Context_10Integrated___set__(PyObject *__pyx_v_self, PyObject *__pyx_v_isIntegrated); /*proto*/ static int __pyx_f_13berylsettings_7Context_10Integrated___set__(PyObject *__pyx_v_self, PyObject *__pyx_v_isIntegrated) { int __pyx_v_b; int __pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_isIntegrated); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":527 */ __pyx_1 = PyObject_IsTrue(__pyx_v_isIntegrated); if (__pyx_1 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 527; goto __pyx_L1;} if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":528 */ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 528; goto __pyx_L1;} __pyx_1 = PyInt_AsLong(__pyx_2); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 528; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_v_b = __pyx_1; goto __pyx_L2; } /*else*/ { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":530 */ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 530; goto __pyx_L1;} __pyx_1 = PyInt_AsLong(__pyx_2); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 530; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_v_b = __pyx_1; } __pyx_L2:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":531 */ beryl_settings_context_set_de_integration_enabled(((struct __pyx_obj_13berylsettings_Context *)__pyx_v_self)->myContext,__pyx_v_b); __pyx_r = 0; goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); __Pyx_AddTraceback("berylsettings.Context.Integrated.__set__"); __pyx_r = -1; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_isIntegrated); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_7Context_13ActivePlugins___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Context_13ActivePlugins___get__(PyObject *__pyx_v_self) { struct __pyx_t_13berylsettings_GSList (*__pyx_v_l); struct __pyx_t_13berylsettings_GSList (*__pyx_v_m); PyObject *__pyx_v_ret; PyObject *__pyx_v_s; PyObject *__pyx_r; PyObject *__pyx_1 = 0; int __pyx_2; PyObject *__pyx_3 = 0; Py_INCREF(__pyx_v_self); __pyx_v_ret = Py_None; Py_INCREF(Py_None); __pyx_v_s = Py_None; Py_INCREF(Py_None); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":537 */ __pyx_1 = PyList_New(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 537; goto __pyx_L1;} Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_1; __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":538 */ __pyx_v_l = beryl_settings_context_get_active_plugins(((struct __pyx_obj_13berylsettings_Context *)__pyx_v_self)->myContext); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":539 */ __pyx_v_m = __pyx_v_l; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":540 */ while (1) { __pyx_L2:; __pyx_2 = (__pyx_v_m != 0); if (!__pyx_2) break; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":541 */ __pyx_1 = __pyx_f_13berylsettings_plugin_get_name(((struct __pyx_t_13berylsettings_BerylSettingsPlugin (*))__pyx_v_m->data)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; goto __pyx_L1;} Py_DECREF(__pyx_v_s); __pyx_v_s = __pyx_1; __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":542 */ __pyx_1 = PyList_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 542; goto __pyx_L1;} Py_INCREF(__pyx_v_s); PyList_SET_ITEM(__pyx_1, 0, __pyx_v_s); __pyx_3 = PyNumber_Add(__pyx_v_ret, __pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 542; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_3; __pyx_3 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":543 */ __pyx_v_m = __pyx_v_m->next; } __pyx_L3:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":544 */ g_slist_free(__pyx_v_l); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":545 */ Py_INCREF(__pyx_v_ret); __pyx_r = __pyx_v_ret; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("berylsettings.Context.ActivePlugins.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_ret); Py_DECREF(__pyx_v_s); Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_n_Plugin; static PyObject *__pyx_f_13berylsettings_7Context_EdgeOwner(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Context_EdgeOwner(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_edge = 0; struct __pyx_t_13berylsettings_BerylSettingsPlugin (*__pyx_v_p); struct __pyx_t_13berylsettings_BerylSetting (*__pyx_v_s); int __pyx_v_edm; PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; PyObject *__pyx_4 = 0; static char *__pyx_argnames[] = {"edge",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_edge)) return 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_edge); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":551 */ __pyx_1 = PyInt_AsLong(__pyx_v_edge); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 551; goto __pyx_L1;} __pyx_v_edm = __pyx_1; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":552 */ __pyx_v_s = beryl_settings_context_find_first_edge_owner(((struct __pyx_obj_13berylsettings_Context *)__pyx_v_self)->myContext,__pyx_v_edm); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":553 */ __pyx_1 = (__pyx_v_s != 0); if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":554 */ __pyx_v_p = beryl_setting_get_plugin(__pyx_v_s); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":555 */ __pyx_2 = PyObject_GetAttr(__pyx_v_self, __pyx_n_Plugin); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 555; goto __pyx_L1;} __pyx_3 = __pyx_f_13berylsettings_plugin_get_name(__pyx_v_p); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 555; goto __pyx_L1;} __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 555; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_4, 0, __pyx_3); __pyx_3 = 0; __pyx_3 = PyObject_CallObject(__pyx_2, __pyx_4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 555; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_4); __pyx_4 = 0; __pyx_2 = PyString_FromString(beryl_setting_get_name(__pyx_v_s)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 555; goto __pyx_L1;} __pyx_4 = PyTuple_New(2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 555; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_4, 0, __pyx_3); PyTuple_SET_ITEM(__pyx_4, 1, __pyx_2); __pyx_3 = 0; __pyx_2 = 0; __pyx_3 = PyObject_CallObject(((PyObject*)__pyx_ptype_13berylsettings_Setting), __pyx_4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 555; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; __pyx_r = __pyx_3; __pyx_3 = 0; goto __pyx_L0; goto __pyx_L2; } /*else*/ { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":557 */ Py_INCREF(Py_None); __pyx_r = Py_None; goto __pyx_L0; } __pyx_L2:; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); __Pyx_AddTraceback("berylsettings.Context.EdgeOwner"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_edge); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_7Context_Conflicts(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Context_Conflicts(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_t = 0; struct __pyx_t_13berylsettings_GSList (*__pyx_v_l); struct __pyx_t_13berylsettings_GSList (*__pyx_v_m); struct __pyx_t_13berylsettings_GSList (*__pyx_v_n); enum __pyx_t_13berylsettings_BerylSettingConflictType __pyx_v_type; struct __pyx_t_13berylsettings_BerylSettingConflict (*__pyx_v_c); struct __pyx_t_13berylsettings_BerylSetting (*__pyx_v_s); struct __pyx_t_13berylsettings_BerylSettingsPlugin (*__pyx_v_p); PyObject *__pyx_v_ret; PyObject *__pyx_v_oret; PyObject *__pyx_v_rtype; PyObject *__pyx_r; enum __pyx_t_13berylsettings_BerylSettingConflictType __pyx_1; PyObject *__pyx_2 = 0; int __pyx_3; PyObject *__pyx_4 = 0; PyObject *__pyx_5 = 0; static char *__pyx_argnames[] = {"t",0}; __pyx_v_t = __pyx_k9; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "|O", __pyx_argnames, &__pyx_v_t)) return 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_t); __pyx_v_ret = Py_None; Py_INCREF(Py_None); __pyx_v_oret = Py_None; Py_INCREF(Py_None); __pyx_v_rtype = Py_None; Py_INCREF(Py_None); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":564 */ __pyx_1 = PyInt_AsLong(__pyx_v_t); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 564; goto __pyx_L1;} __pyx_v_type = __pyx_1; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":568 */ __pyx_v_l = beryl_settings_context_find_conflicts(((struct __pyx_obj_13berylsettings_Context *)__pyx_v_self)->myContext,__pyx_v_type); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":569 */ __pyx_v_m = __pyx_v_l; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":570 */ __pyx_2 = PyList_New(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 570; goto __pyx_L1;} Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_2; __pyx_2 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":571 */ while (1) { __pyx_L2:; __pyx_3 = (__pyx_v_m != 0); if (!__pyx_3) break; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":572 */ __pyx_2 = PyList_New(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; goto __pyx_L1;} Py_DECREF(__pyx_v_oret); __pyx_v_oret = __pyx_2; __pyx_2 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":573 */ __pyx_v_c = ((struct __pyx_t_13berylsettings_BerylSettingConflict (*))__pyx_v_m->data); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":574 */ __pyx_2 = PyInt_FromLong(beryl_setting_conflict_get_type(__pyx_v_c)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 574; goto __pyx_L1;} Py_DECREF(__pyx_v_rtype); __pyx_v_rtype = __pyx_2; __pyx_2 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":575 */ __pyx_v_n = beryl_setting_conflict_get_settings(__pyx_v_c); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":576 */ while (1) { __pyx_L4:; __pyx_3 = (__pyx_v_n != 0); if (!__pyx_3) break; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":577 */ __pyx_v_s = ((struct __pyx_t_13berylsettings_BerylSetting (*))__pyx_v_n->data); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":578 */ __pyx_v_p = beryl_setting_get_plugin(__pyx_v_s); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":579 */ __pyx_2 = PyObject_GetAttr(__pyx_v_self, __pyx_n_Plugin); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; goto __pyx_L1;} __pyx_4 = __pyx_f_13berylsettings_plugin_get_name(__pyx_v_p); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; goto __pyx_L1;} __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_5, 0, __pyx_4); __pyx_4 = 0; __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_5); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_5); __pyx_5 = 0; __pyx_2 = PyString_FromString(beryl_setting_get_name(__pyx_v_s)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; goto __pyx_L1;} __pyx_5 = PyTuple_New(2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_5, 0, __pyx_4); PyTuple_SET_ITEM(__pyx_5, 1, __pyx_2); __pyx_4 = 0; __pyx_2 = 0; __pyx_4 = PyObject_CallObject(((PyObject*)__pyx_ptype_13berylsettings_Setting), __pyx_5); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; goto __pyx_L1;} Py_DECREF(__pyx_5); __pyx_5 = 0; __pyx_2 = PyList_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; goto __pyx_L1;} PyList_SET_ITEM(__pyx_2, 0, __pyx_4); __pyx_4 = 0; __pyx_5 = PyNumber_Add(__pyx_v_oret, __pyx_2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_v_oret); __pyx_v_oret = __pyx_5; __pyx_5 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":580 */ __pyx_v_n = __pyx_v_n->next; } __pyx_L5:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":581 */ __pyx_4 = PyTuple_New(2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 581; goto __pyx_L1;} Py_INCREF(__pyx_v_rtype); PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_rtype); Py_INCREF(__pyx_v_oret); PyTuple_SET_ITEM(__pyx_4, 1, __pyx_v_oret); __pyx_2 = PyList_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 581; goto __pyx_L1;} PyList_SET_ITEM(__pyx_2, 0, __pyx_4); __pyx_4 = 0; __pyx_5 = PyNumber_Add(__pyx_v_ret, __pyx_2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 581; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_5; __pyx_5 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":582 */ __pyx_v_m = __pyx_v_m->next; } __pyx_L3:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":583 */ beryl_settings_free_conflict_list(__pyx_v_l); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":584 */ Py_INCREF(__pyx_v_ret); __pyx_r = __pyx_v_ret; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_4); Py_XDECREF(__pyx_5); __Pyx_AddTraceback("berylsettings.Context.Conflicts"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_ret); Py_DECREF(__pyx_v_oret); Py_DECREF(__pyx_v_rtype); Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_t); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_7Context_Read(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Context_Read(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_r; static char *__pyx_argnames[] = {0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":587 */ beryl_settings_context_read(((struct __pyx_obj_13berylsettings_Context *)__pyx_v_self)->myContext); __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; __Pyx_AddTraceback("berylsettings.Context.Read"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_7Context_Write(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Context_Write(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_r; static char *__pyx_argnames[] = {0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":590 */ beryl_settings_context_write(((struct __pyx_obj_13berylsettings_Context *)__pyx_v_self)->myContext); __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; __Pyx_AddTraceback("berylsettings.Context.Write"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_7Context_Import(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Context_Import(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_filename = 0; PyObject *__pyx_v_overwrite = 0; int __pyx_v_ow; char (*__pyx_v_s); PyObject *__pyx_r; char (*__pyx_1); int __pyx_2; PyObject *__pyx_3 = 0; static char *__pyx_argnames[] = {"filename","overwrite",0}; __pyx_v_overwrite = __pyx_k10; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O|O", __pyx_argnames, &__pyx_v_filename, &__pyx_v_overwrite)) return 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_filename); Py_INCREF(__pyx_v_overwrite); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":595 */ __pyx_1 = PyString_AsString(__pyx_v_filename); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 595; goto __pyx_L1;} __pyx_v_s = __pyx_1; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":596 */ __pyx_2 = PyObject_IsTrue(__pyx_v_overwrite); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 596; goto __pyx_L1;} if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":597 */ __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 597; goto __pyx_L1;} __pyx_2 = PyInt_AsLong(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 597; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_v_ow = __pyx_2; goto __pyx_L2; } /*else*/ { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":599 */ __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 599; goto __pyx_L1;} __pyx_2 = PyInt_AsLong(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 599; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_v_ow = __pyx_2; } __pyx_L2:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":600 */ __pyx_3 = PyInt_FromLong(beryl_settings_context_import_from_file(((struct __pyx_obj_13berylsettings_Context *)__pyx_v_self)->myContext,__pyx_v_s,__pyx_v_ow)); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; goto __pyx_L1;} __pyx_r = __pyx_3; __pyx_3 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_3); __Pyx_AddTraceback("berylsettings.Context.Import"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_filename); Py_DECREF(__pyx_v_overwrite); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_7Context_Export(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Context_Export(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_filename = 0; char (*__pyx_v_s); PyObject *__pyx_r; char (*__pyx_1); static char *__pyx_argnames[] = {"filename",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_filename)) return 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_filename); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":604 */ __pyx_1 = PyString_AsString(__pyx_v_filename); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 604; goto __pyx_L1;} __pyx_v_s = __pyx_1; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":605 */ beryl_settings_context_export_to_file(((struct __pyx_obj_13berylsettings_Context *)__pyx_v_self)->myContext,__pyx_v_s); __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; __Pyx_AddTraceback("berylsettings.Context.Export"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_filename); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_7Context_DeleteProfile(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Context_DeleteProfile(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_profile = 0; char (*__pyx_v_p); PyObject *__pyx_r; int __pyx_1; char (*__pyx_2); static char *__pyx_argnames[] = {"profile",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_profile)) return 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_profile); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":609 */ if (PyObject_Cmp(__pyx_v_profile, Py_None, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 609; goto __pyx_L1;} __pyx_1 = __pyx_1 != 0; if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":610 */ __pyx_2 = PyString_AsString(__pyx_v_profile); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 610; goto __pyx_L1;} __pyx_v_p = __pyx_2; goto __pyx_L2; } /*else*/ { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":612 */ __pyx_v_p = 0; } __pyx_L2:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":613 */ beryl_settings_delete_profile(((struct __pyx_obj_13berylsettings_Context *)__pyx_v_self)->myContext,__pyx_v_p); __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; __Pyx_AddTraceback("berylsettings.Context.DeleteProfile"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_profile); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_7Context_Plugin(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Context_Plugin(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_name = 0; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; static char *__pyx_argnames[] = {"name",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_name)) return 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_name); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":616 */ __pyx_1 = PyTuple_New(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; goto __pyx_L1;} Py_INCREF(__pyx_v_self); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_self); Py_INCREF(__pyx_v_name); PyTuple_SET_ITEM(__pyx_1, 1, __pyx_v_name); __pyx_2 = PyObject_CallObject(((PyObject*)__pyx_ptype_13berylsettings_Plugin), __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); __Pyx_AddTraceback("berylsettings.Context.Plugin"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_name); return __pyx_r; } static PyObject *__pyx_k42p; static char (__pyx_k42[]) = " context"; static PyObject *__pyx_f_13berylsettings_7Context___str__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Context___str__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":619 */ __pyx_1 = PyString_FromString(((struct __pyx_obj_13berylsettings_Context *)__pyx_v_self)->backend); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 619; goto __pyx_L1;} __pyx_2 = PyNumber_Add(__pyx_1, __pyx_k42p); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 619; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); __Pyx_AddTraceback("berylsettings.Context.__str__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static int __pyx_f_13berylsettings_8Category___new__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_f_13berylsettings_8Category___new__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { struct __pyx_obj_13berylsettings_Context *__pyx_v_context = 0; PyObject *__pyx_v_index = 0; int __pyx_r; int __pyx_1; static char *__pyx_argnames[] = {"context","index",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OO", __pyx_argnames, &__pyx_v_context, &__pyx_v_index)) return -1; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_context); Py_INCREF(__pyx_v_index); if (!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_context), __pyx_ptype_13berylsettings_Context, 1, "context")) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 625; goto __pyx_L1;} /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":626 */ __pyx_1 = PyInt_AsLong(__pyx_v_index); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 626; goto __pyx_L1;} ((struct __pyx_obj_13berylsettings_Category *)__pyx_v_self)->myCategory = beryl_settings_context_get_nth_plugin_category(__pyx_v_context->myContext,__pyx_1); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":627 */ Py_INCREF(((PyObject *)__pyx_v_context)); Py_DECREF(((PyObject *)((struct __pyx_obj_13berylsettings_Category *)__pyx_v_self)->pContext)); ((struct __pyx_obj_13berylsettings_Category *)__pyx_v_self)->pContext = __pyx_v_context; __pyx_r = 0; goto __pyx_L0; __pyx_L1:; __Pyx_AddTraceback("berylsettings.Category.__new__"); __pyx_r = -1; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_context); Py_DECREF(__pyx_v_index); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_8Category_4Name___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_8Category_4Name___get__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":631 */ __pyx_1 = PyString_FromString(beryl_settings_plugin_category_get_name(((struct __pyx_obj_13berylsettings_Category *)__pyx_v_self)->myCategory)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 631; goto __pyx_L1;} __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); __Pyx_AddTraceback("berylsettings.Category.Name.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_8Category_9ShortDesc___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_8Category_9ShortDesc___get__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":635 */ __pyx_1 = PyString_FromString(beryl_settings_plugin_category_get_short_desc(((struct __pyx_obj_13berylsettings_Category *)__pyx_v_self)->myCategory)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 635; goto __pyx_L1;} __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); __Pyx_AddTraceback("berylsettings.Category.ShortDesc.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_8Category_8LongDesc___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_8Category_8LongDesc___get__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":639 */ __pyx_1 = PyString_FromString(beryl_settings_plugin_category_get_long_desc(((struct __pyx_obj_13berylsettings_Category *)__pyx_v_self)->myCategory)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 639; goto __pyx_L1;} __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); __Pyx_AddTraceback("berylsettings.Category.LongDesc.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_8Category_7Plugins___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_8Category_7Plugins___get__(PyObject *__pyx_v_self) { struct __pyx_t_13berylsettings_GSList (*__pyx_v_l); PyObject *__pyx_v_ret; PyObject *__pyx_v_snam; PyObject *__pyx_r; PyObject *__pyx_1 = 0; int __pyx_2; PyObject *__pyx_3 = 0; Py_INCREF(__pyx_v_self); __pyx_v_ret = Py_None; Py_INCREF(Py_None); __pyx_v_snam = Py_None; Py_INCREF(Py_None); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":644 */ __pyx_v_l = beryl_settings_plugin_category_get_plugins(((struct __pyx_obj_13berylsettings_Category *)__pyx_v_self)->myCategory); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":645 */ __pyx_1 = PyList_New(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; goto __pyx_L1;} Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_1; __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":646 */ while (1) { __pyx_L2:; __pyx_2 = (__pyx_v_l != 0); if (!__pyx_2) break; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":647 */ __pyx_1 = __pyx_f_13berylsettings_plugin_get_name(((struct __pyx_t_13berylsettings_BerylSettingsPlugin (*))__pyx_v_l->data)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 647; goto __pyx_L1;} Py_DECREF(__pyx_v_snam); __pyx_v_snam = __pyx_1; __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":648 */ __pyx_1 = PyTuple_New(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 648; goto __pyx_L1;} Py_INCREF(((PyObject *)((struct __pyx_obj_13berylsettings_Category *)__pyx_v_self)->pContext)); PyTuple_SET_ITEM(__pyx_1, 0, ((PyObject *)((struct __pyx_obj_13berylsettings_Category *)__pyx_v_self)->pContext)); Py_INCREF(__pyx_v_snam); PyTuple_SET_ITEM(__pyx_1, 1, __pyx_v_snam); __pyx_3 = PyObject_CallObject(((PyObject*)__pyx_ptype_13berylsettings_Plugin), __pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 648; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_1 = PyList_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 648; goto __pyx_L1;} PyList_SET_ITEM(__pyx_1, 0, __pyx_3); __pyx_3 = 0; __pyx_3 = PyNumber_Add(__pyx_v_ret, __pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 648; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_3; __pyx_3 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":649 */ __pyx_v_l = __pyx_v_l->next; } __pyx_L3:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":650 */ Py_INCREF(__pyx_v_ret); __pyx_r = __pyx_v_ret; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("berylsettings.Category.Plugins.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_ret); Py_DECREF(__pyx_v_snam); Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_k43p; static char (__pyx_k43[]) = " category"; static PyObject *__pyx_f_13berylsettings_8Category___str__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_8Category___str__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":653 */ __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_Name); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 653; goto __pyx_L1;} __pyx_2 = PyNumber_Add(__pyx_1, __pyx_k43p); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 653; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); __Pyx_AddTraceback("berylsettings.Category.__str__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static int __pyx_f_13berylsettings_6Plugin___new__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_f_13berylsettings_6Plugin___new__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { struct __pyx_obj_13berylsettings_Context *__pyx_v_context = 0; PyObject *__pyx_v_plugin = 0; int __pyx_r; int __pyx_1; char (*__pyx_2); PyObject *__pyx_3 = 0; PyObject *__pyx_4 = 0; static char *__pyx_argnames[] = {"context","plugin",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OO", __pyx_argnames, &__pyx_v_context, &__pyx_v_plugin)) return -1; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_context); Py_INCREF(__pyx_v_plugin); if (!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_context), __pyx_ptype_13berylsettings_Context, 1, "context")) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 661; goto __pyx_L1;} /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":662 */ Py_INCREF(((PyObject *)__pyx_v_context)); Py_DECREF(((PyObject *)((struct __pyx_obj_13berylsettings_Plugin *)__pyx_v_self)->pContext)); ((struct __pyx_obj_13berylsettings_Plugin *)__pyx_v_self)->pContext = __pyx_v_context; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":663 */ if (PyObject_Cmp(__pyx_v_plugin, __pyx_n__, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 663; goto __pyx_L1;} __pyx_1 = __pyx_1 == 0; if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":664 */ ((struct __pyx_obj_13berylsettings_Plugin *)__pyx_v_self)->myPlugin = beryl_settings_context_find_plugin(__pyx_v_context->myContext,0); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":665 */ ((struct __pyx_obj_13berylsettings_Plugin *)__pyx_v_self)->is_general = 1; goto __pyx_L2; } /*else*/ { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":667 */ __pyx_2 = PyString_AsString(__pyx_v_plugin); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 667; goto __pyx_L1;} ((struct __pyx_obj_13berylsettings_Plugin *)__pyx_v_self)->myPlugin = beryl_settings_context_find_plugin(__pyx_v_context->myContext,__pyx_2); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":668 */ ((struct __pyx_obj_13berylsettings_Plugin *)__pyx_v_self)->is_general = 0; } __pyx_L2:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":669 */ __pyx_1 = (((struct __pyx_obj_13berylsettings_Plugin *)__pyx_v_self)->myPlugin == 0); if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":670 */ __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n_PluginNotFoundException); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 670; goto __pyx_L1;} __pyx_4 = PyTuple_New(2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 670; goto __pyx_L1;} Py_INCREF(__pyx_v_plugin); PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_plugin); Py_INCREF(((PyObject *)__pyx_v_context)); PyTuple_SET_ITEM(__pyx_4, 1, ((PyObject *)__pyx_v_context)); __Pyx_Raise(__pyx_3, __pyx_4, 0); Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_4); __pyx_4 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 670; goto __pyx_L1;} goto __pyx_L3; } __pyx_L3:; __pyx_r = 0; goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); __Pyx_AddTraceback("berylsettings.Plugin.__new__"); __pyx_r = -1; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_context); Py_DECREF(__pyx_v_plugin); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_6Plugin_7Enabled___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_6Plugin_7Enabled___get__(PyObject *__pyx_v_self) { PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":674 */ __pyx_1 = ((struct __pyx_obj_13berylsettings_Plugin *)__pyx_v_self)->is_general; if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":675 */ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 675; goto __pyx_L1;} __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; goto __pyx_L2; } /*else*/ { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":677 */ __pyx_1 = beryl_settings_plugin_get_is_enabled(((struct __pyx_obj_13berylsettings_Plugin *)__pyx_v_self)->myPlugin); if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":678 */ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 678; goto __pyx_L1;} __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; goto __pyx_L3; } /*else*/ { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":680 */ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 680; goto __pyx_L1;} __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; } __pyx_L3:; } __pyx_L2:; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); __Pyx_AddTraceback("berylsettings.Plugin.Enabled.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static int __pyx_f_13berylsettings_6Plugin_7Enabled___set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val); /*proto*/ static int __pyx_f_13berylsettings_6Plugin_7Enabled___set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val) { int __pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_val); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":682 */ __pyx_1 = ((struct __pyx_obj_13berylsettings_Plugin *)__pyx_v_self)->is_general; if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":683 */ __pyx_r = 0; goto __pyx_L0; goto __pyx_L2; } /*else*/ { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":685 */ __pyx_1 = PyObject_IsTrue(__pyx_v_val); if (__pyx_1 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 685; goto __pyx_L1;} if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":686 */ __pyx_1 = (!beryl_settings_plugin_enable(((struct __pyx_obj_13berylsettings_Plugin *)__pyx_v_self)->myPlugin)); if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":687 */ beryl_settings_plugin_disable(((struct __pyx_obj_13berylsettings_Plugin *)__pyx_v_self)->myPlugin); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":688 */ __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_PluginEnableException); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 688; goto __pyx_L1;} __Pyx_Raise(__pyx_2, __pyx_v_self, 0); Py_DECREF(__pyx_2); __pyx_2 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 688; goto __pyx_L1;} goto __pyx_L4; } __pyx_L4:; goto __pyx_L3; } /*else*/ { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":690 */ __pyx_1 = (!beryl_settings_plugin_disable(((struct __pyx_obj_13berylsettings_Plugin *)__pyx_v_self)->myPlugin)); if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":691 */ beryl_settings_plugin_enable(((struct __pyx_obj_13berylsettings_Plugin *)__pyx_v_self)->myPlugin); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":692 */ __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_PluginDisableException); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 692; goto __pyx_L1;} __Pyx_Raise(__pyx_2, __pyx_v_self, 0); Py_DECREF(__pyx_2); __pyx_2 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 692; goto __pyx_L1;} goto __pyx_L5; } __pyx_L5:; } __pyx_L3:; } __pyx_L2:; __pyx_r = 0; goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); __Pyx_AddTraceback("berylsettings.Plugin.Enabled.__set__"); __pyx_r = -1; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_val); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_6Plugin_4Name___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_6Plugin_4Name___get__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":696 */ __pyx_1 = __pyx_f_13berylsettings_plugin_get_name(((struct __pyx_obj_13berylsettings_Plugin *)__pyx_v_self)->myPlugin); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 696; goto __pyx_L1;} __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); __Pyx_AddTraceback("berylsettings.Plugin.Name.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_k45p; static char (__pyx_k45[]) = "General Options"; static PyObject *__pyx_f_13berylsettings_6Plugin_9ShortDesc___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_6Plugin_9ShortDesc___get__(PyObject *__pyx_v_self) { PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":700 */ __pyx_1 = (((struct __pyx_obj_13berylsettings_Plugin *)__pyx_v_self)->is_general == 0); if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":701 */ __pyx_2 = PyString_FromString(beryl_settings_plugin_get_short_desc(((struct __pyx_obj_13berylsettings_Plugin *)__pyx_v_self)->myPlugin)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 701; goto __pyx_L1;} __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; goto __pyx_L2; } /*else*/ { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":703 */ Py_INCREF(__pyx_k45p); __pyx_r = __pyx_k45p; goto __pyx_L0; } __pyx_L2:; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); __Pyx_AddTraceback("berylsettings.Plugin.ShortDesc.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_k46p; static char (__pyx_k46[]) = "Lots of General Options"; static PyObject *__pyx_f_13berylsettings_6Plugin_8LongDesc___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_6Plugin_8LongDesc___get__(PyObject *__pyx_v_self) { PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":707 */ __pyx_1 = (((struct __pyx_obj_13berylsettings_Plugin *)__pyx_v_self)->is_general == 0); if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":708 */ __pyx_2 = PyString_FromString(beryl_settings_plugin_get_long_desc(((struct __pyx_obj_13berylsettings_Plugin *)__pyx_v_self)->myPlugin)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 708; goto __pyx_L1;} __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; goto __pyx_L2; } /*else*/ { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":710 */ Py_INCREF(__pyx_k46p); __pyx_r = __pyx_k46p; goto __pyx_L0; } __pyx_L2:; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); __Pyx_AddTraceback("berylsettings.Plugin.LongDesc.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_n_____plugin_enabled; static PyObject *__pyx_f_13berylsettings_6Plugin_8Settings___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_6Plugin_8Settings___get__(PyObject *__pyx_v_self) { struct __pyx_t_13berylsettings_GSList (*__pyx_v_l); PyObject *__pyx_v_ret; PyObject *__pyx_r; PyObject *__pyx_1 = 0; int __pyx_2; PyObject *__pyx_3 = 0; PyObject *__pyx_4 = 0; int __pyx_5; Py_INCREF(__pyx_v_self); __pyx_v_ret = Py_None; Py_INCREF(Py_None); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":715 */ __pyx_v_l = beryl_settings_plugin_get_settings(((struct __pyx_obj_13berylsettings_Plugin *)__pyx_v_self)->myPlugin); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":716 */ __pyx_1 = PyList_New(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 716; goto __pyx_L1;} Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_1; __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":717 */ while (1) { __pyx_L2:; __pyx_2 = (__pyx_v_l != 0); if (!__pyx_2) break; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":718 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_str); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 718; goto __pyx_L1;} __pyx_3 = PyString_FromString(beryl_setting_get_name(((struct __pyx_t_13berylsettings_BerylSetting (*))__pyx_v_l->data))); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 718; goto __pyx_L1;} __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 718; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_4, 0, __pyx_3); __pyx_3 = 0; __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 718; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_4); __pyx_4 = 0; if (PyObject_Cmp(__pyx_3, __pyx_n_____plugin_enabled, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 718; goto __pyx_L1;} __pyx_2 = __pyx_2 == 0; Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_5 = (!__pyx_2); if (__pyx_5) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":719 */ __pyx_1 = PyString_FromString(beryl_setting_get_name(((struct __pyx_t_13berylsettings_BerylSetting (*))__pyx_v_l->data))); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 719; goto __pyx_L1;} __pyx_4 = PyTuple_New(2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 719; goto __pyx_L1;} Py_INCREF(__pyx_v_self); PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_self); PyTuple_SET_ITEM(__pyx_4, 1, __pyx_1); __pyx_1 = 0; __pyx_3 = PyObject_CallObject(((PyObject*)__pyx_ptype_13berylsettings_Setting), __pyx_4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 719; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; __pyx_1 = PyList_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 719; goto __pyx_L1;} PyList_SET_ITEM(__pyx_1, 0, __pyx_3); __pyx_3 = 0; __pyx_4 = PyNumber_Add(__pyx_v_ret, __pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 719; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_4; __pyx_4 = 0; goto __pyx_L4; } __pyx_L4:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":720 */ __pyx_v_l = __pyx_v_l->next; } __pyx_L3:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":721 */ Py_INCREF(__pyx_v_ret); __pyx_r = __pyx_v_ret; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); __Pyx_AddTraceback("berylsettings.Plugin.Settings.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_ret); Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_6Plugin_6Groups___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_6Plugin_6Groups___get__(PyObject *__pyx_v_self) { struct __pyx_t_13berylsettings_GSList (*__pyx_v_l); PyObject *__pyx_v_ret; PyObject *__pyx_r; PyObject *__pyx_1 = 0; int __pyx_2; PyObject *__pyx_3 = 0; Py_INCREF(__pyx_v_self); __pyx_v_ret = Py_None; Py_INCREF(Py_None); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":726 */ __pyx_v_l = beryl_settings_plugin_get_groups(((struct __pyx_obj_13berylsettings_Plugin *)__pyx_v_self)->myPlugin); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":727 */ __pyx_1 = PyList_New(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 727; goto __pyx_L1;} Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_1; __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":728 */ while (1) { __pyx_L2:; __pyx_2 = (__pyx_v_l != 0); if (!__pyx_2) break; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":729 */ __pyx_1 = PyString_FromString(beryl_settings_group_get_name(((struct __pyx_t_13berylsettings_BerylSettingsGroup (*))__pyx_v_l->data))); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 729; goto __pyx_L1;} __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 729; goto __pyx_L1;} Py_INCREF(__pyx_v_self); PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_self); PyTuple_SET_ITEM(__pyx_3, 1, __pyx_1); __pyx_1 = 0; __pyx_1 = PyObject_CallObject(((PyObject*)__pyx_ptype_13berylsettings_Group), __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 729; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_3 = PyList_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 729; goto __pyx_L1;} PyList_SET_ITEM(__pyx_3, 0, __pyx_1); __pyx_1 = 0; __pyx_1 = PyNumber_Add(__pyx_v_ret, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 729; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_1; __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":730 */ __pyx_v_l = __pyx_v_l->next; } __pyx_L3:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":731 */ Py_INCREF(__pyx_v_ret); __pyx_r = __pyx_v_ret; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("berylsettings.Plugin.Groups.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_ret); Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_6Plugin_8Provides___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_6Plugin_8Provides___get__(PyObject *__pyx_v_self) { struct __pyx_t_13berylsettings_GSList (*__pyx_v_l); PyObject *__pyx_v_ret; PyObject *__pyx_v_st; PyObject *__pyx_r; PyObject *__pyx_1 = 0; int __pyx_2; PyObject *__pyx_3 = 0; Py_INCREF(__pyx_v_self); __pyx_v_ret = Py_None; Py_INCREF(Py_None); __pyx_v_st = Py_None; Py_INCREF(Py_None); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":736 */ __pyx_v_l = beryl_settings_plugin_get_provides(((struct __pyx_obj_13berylsettings_Plugin *)__pyx_v_self)->myPlugin); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":737 */ __pyx_1 = PyList_New(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 737; goto __pyx_L1;} Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_1; __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":738 */ while (1) { __pyx_L2:; __pyx_2 = (__pyx_v_l != 0); if (!__pyx_2) break; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":739 */ __pyx_1 = PyString_FromString(((char (*))__pyx_v_l->data)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 739; goto __pyx_L1;} Py_DECREF(__pyx_v_st); __pyx_v_st = __pyx_1; __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":740 */ __pyx_1 = PyList_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 740; goto __pyx_L1;} Py_INCREF(__pyx_v_st); PyList_SET_ITEM(__pyx_1, 0, __pyx_v_st); __pyx_3 = PyNumber_Add(__pyx_v_ret, __pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 740; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_3; __pyx_3 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":741 */ __pyx_v_l = __pyx_v_l->next; } __pyx_L3:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":742 */ Py_INCREF(__pyx_v_ret); __pyx_r = __pyx_v_ret; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("berylsettings.Plugin.Provides.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_ret); Py_DECREF(__pyx_v_st); Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_6Plugin_8Requires___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_6Plugin_8Requires___get__(PyObject *__pyx_v_self) { struct __pyx_t_13berylsettings_GSList (*__pyx_v_l); PyObject *__pyx_v_ret; PyObject *__pyx_v_st; PyObject *__pyx_r; PyObject *__pyx_1 = 0; int __pyx_2; PyObject *__pyx_3 = 0; Py_INCREF(__pyx_v_self); __pyx_v_ret = Py_None; Py_INCREF(Py_None); __pyx_v_st = Py_None; Py_INCREF(Py_None); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":747 */ __pyx_v_l = beryl_settings_plugin_get_requires(((struct __pyx_obj_13berylsettings_Plugin *)__pyx_v_self)->myPlugin); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":748 */ __pyx_1 = PyList_New(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 748; goto __pyx_L1;} Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_1; __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":749 */ while (1) { __pyx_L2:; __pyx_2 = (__pyx_v_l != 0); if (!__pyx_2) break; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":750 */ __pyx_1 = PyString_FromString(((char (*))__pyx_v_l->data)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 750; goto __pyx_L1;} Py_DECREF(__pyx_v_st); __pyx_v_st = __pyx_1; __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":751 */ __pyx_1 = PyList_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 751; goto __pyx_L1;} Py_INCREF(__pyx_v_st); PyList_SET_ITEM(__pyx_1, 0, __pyx_v_st); __pyx_3 = PyNumber_Add(__pyx_v_ret, __pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 751; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_3; __pyx_3 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":752 */ __pyx_v_l = __pyx_v_l->next; } __pyx_L3:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":753 */ Py_INCREF(__pyx_v_ret); __pyx_r = __pyx_v_ret; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("berylsettings.Plugin.Requires.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_ret); Py_DECREF(__pyx_v_st); Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_6Plugin_Group(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_13berylsettings_6Plugin_Group(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_group = 0; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; static char *__pyx_argnames[] = {"group",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_group)) return 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_group); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":756 */ __pyx_1 = PyTuple_New(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 756; goto __pyx_L1;} Py_INCREF(__pyx_v_self); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_self); Py_INCREF(__pyx_v_group); PyTuple_SET_ITEM(__pyx_1, 1, __pyx_v_group); __pyx_2 = PyObject_CallObject(((PyObject*)__pyx_ptype_13berylsettings_Group), __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 756; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); __Pyx_AddTraceback("berylsettings.Plugin.Group"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_group); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_6Plugin_Setting(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_13berylsettings_6Plugin_Setting(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_setting = 0; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; static char *__pyx_argnames[] = {"setting",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_setting)) return 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_setting); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":759 */ __pyx_1 = PyTuple_New(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 759; goto __pyx_L1;} Py_INCREF(__pyx_v_self); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_self); Py_INCREF(__pyx_v_setting); PyTuple_SET_ITEM(__pyx_1, 1, __pyx_v_setting); __pyx_2 = PyObject_CallObject(((PyObject*)__pyx_ptype_13berylsettings_Setting), __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 759; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); __Pyx_AddTraceback("berylsettings.Plugin.Setting"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_setting); return __pyx_r; } static PyObject *__pyx_k48p; static char (__pyx_k48[]) = " plugin"; static PyObject *__pyx_f_13berylsettings_6Plugin___str__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_6Plugin___str__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":762 */ __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_Name); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; goto __pyx_L1;} __pyx_2 = PyNumber_Add(__pyx_1, __pyx_k48p); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); __Pyx_AddTraceback("berylsettings.Plugin.__str__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static int __pyx_f_13berylsettings_5Group___new__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_f_13berylsettings_5Group___new__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { struct __pyx_obj_13berylsettings_Plugin *__pyx_v_plugin = 0; PyObject *__pyx_v_group = 0; int __pyx_r; char (*__pyx_1); int __pyx_2; PyObject *__pyx_3 = 0; PyObject *__pyx_4 = 0; static char *__pyx_argnames[] = {"plugin","group",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OO", __pyx_argnames, &__pyx_v_plugin, &__pyx_v_group)) return -1; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_plugin); Py_INCREF(__pyx_v_group); if (!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_plugin), __pyx_ptype_13berylsettings_Plugin, 1, "plugin")) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 769; goto __pyx_L1;} /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":770 */ __pyx_1 = PyString_AsString(__pyx_v_group); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 770; goto __pyx_L1;} ((struct __pyx_obj_13berylsettings_Group *)__pyx_v_self)->myGroup = beryl_settings_plugin_find_group(__pyx_v_plugin->myPlugin,__pyx_1); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":771 */ __pyx_2 = (((struct __pyx_obj_13berylsettings_Group *)__pyx_v_self)->myGroup == 0); if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":772 */ __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n_GroupNotFoundException); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 772; goto __pyx_L1;} __pyx_4 = PyTuple_New(2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 772; goto __pyx_L1;} Py_INCREF(__pyx_v_group); PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_group); Py_INCREF(((PyObject *)__pyx_v_plugin)); PyTuple_SET_ITEM(__pyx_4, 1, ((PyObject *)__pyx_v_plugin)); __Pyx_Raise(__pyx_3, __pyx_4, 0); Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_4); __pyx_4 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 772; goto __pyx_L1;} goto __pyx_L2; } __pyx_L2:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":773 */ Py_INCREF(((PyObject *)__pyx_v_plugin)); Py_DECREF(((PyObject *)((struct __pyx_obj_13berylsettings_Group *)__pyx_v_self)->pPlugin)); ((struct __pyx_obj_13berylsettings_Group *)__pyx_v_self)->pPlugin = __pyx_v_plugin; __pyx_r = 0; goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); __Pyx_AddTraceback("berylsettings.Group.__new__"); __pyx_r = -1; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_plugin); Py_DECREF(__pyx_v_group); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_5Group_6Plugin___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_5Group_6Plugin___get__(PyObject *__pyx_v_self) { PyObject *__pyx_r; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":777 */ Py_INCREF(((PyObject *)((struct __pyx_obj_13berylsettings_Group *)__pyx_v_self)->pPlugin)); __pyx_r = ((PyObject *)((struct __pyx_obj_13berylsettings_Group *)__pyx_v_self)->pPlugin); goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; __Pyx_AddTraceback("berylsettings.Group.Plugin.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_5Group_4Name___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_5Group_4Name___get__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":781 */ __pyx_1 = PyString_FromString(beryl_settings_group_get_name(((struct __pyx_obj_13berylsettings_Group *)__pyx_v_self)->myGroup)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 781; goto __pyx_L1;} __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); __Pyx_AddTraceback("berylsettings.Group.Name.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_5Group_4Desc___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_5Group_4Desc___get__(PyObject *__pyx_v_self) { char (*__pyx_v_c); PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":786 */ __pyx_v_c = beryl_settings_group_get_desc(((struct __pyx_obj_13berylsettings_Group *)__pyx_v_self)->myGroup); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":787 */ __pyx_1 = (__pyx_v_c == 0); if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":788 */ Py_INCREF(Py_None); __pyx_r = Py_None; goto __pyx_L0; goto __pyx_L2; } /*else*/ { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":790 */ __pyx_2 = PyString_FromString(__pyx_v_c); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 790; goto __pyx_L1;} __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; } __pyx_L2:; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); __Pyx_AddTraceback("berylsettings.Group.Desc.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_5Group_9SubGroups___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_5Group_9SubGroups___get__(PyObject *__pyx_v_self) { struct __pyx_t_13berylsettings_GSList (*__pyx_v_l); PyObject *__pyx_v_ret; PyObject *__pyx_r; PyObject *__pyx_1 = 0; int __pyx_2; PyObject *__pyx_3 = 0; Py_INCREF(__pyx_v_self); __pyx_v_ret = Py_None; Py_INCREF(Py_None); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":795 */ __pyx_v_l = beryl_settings_group_get_subgroups(((struct __pyx_obj_13berylsettings_Group *)__pyx_v_self)->myGroup); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":796 */ __pyx_1 = PyList_New(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 796; goto __pyx_L1;} Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_1; __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":797 */ while (1) { __pyx_L2:; __pyx_2 = (__pyx_v_l != 0); if (!__pyx_2) break; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":798 */ __pyx_1 = PyString_FromString(beryl_settings_subgroup_get_name(((struct __pyx_t_13berylsettings_BerylSettingsSubGroup (*))__pyx_v_l->data))); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 798; goto __pyx_L1;} __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 798; goto __pyx_L1;} Py_INCREF(__pyx_v_self); PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_self); PyTuple_SET_ITEM(__pyx_3, 1, __pyx_1); __pyx_1 = 0; __pyx_1 = PyObject_CallObject(((PyObject*)__pyx_ptype_13berylsettings_SubGroup), __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 798; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_3 = PyList_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 798; goto __pyx_L1;} PyList_SET_ITEM(__pyx_3, 0, __pyx_1); __pyx_1 = 0; __pyx_1 = PyNumber_Add(__pyx_v_ret, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 798; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_1; __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":799 */ __pyx_v_l = __pyx_v_l->next; } __pyx_L3:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":800 */ Py_INCREF(__pyx_v_ret); __pyx_r = __pyx_v_ret; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("berylsettings.Group.SubGroups.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_ret); Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_5Group_SubGroup(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_13berylsettings_5Group_SubGroup(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_subgroup = 0; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; static char *__pyx_argnames[] = {"subgroup",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_subgroup)) return 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_subgroup); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":803 */ __pyx_1 = PyTuple_New(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 803; goto __pyx_L1;} Py_INCREF(__pyx_v_self); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_self); Py_INCREF(__pyx_v_subgroup); PyTuple_SET_ITEM(__pyx_1, 1, __pyx_v_subgroup); __pyx_2 = PyObject_CallObject(((PyObject*)__pyx_ptype_13berylsettings_SubGroup), __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 803; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); __Pyx_AddTraceback("berylsettings.Group.SubGroup"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_subgroup); return __pyx_r; } static PyObject *__pyx_k49p; static char (__pyx_k49[]) = " group"; static PyObject *__pyx_f_13berylsettings_5Group___str__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_5Group___str__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":806 */ __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_Name); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 806; goto __pyx_L1;} __pyx_2 = PyNumber_Add(__pyx_1, __pyx_k49p); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 806; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); __Pyx_AddTraceback("berylsettings.Group.__str__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static int __pyx_f_13berylsettings_8SubGroup___new__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_f_13berylsettings_8SubGroup___new__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { struct __pyx_obj_13berylsettings_Group *__pyx_v_group = 0; PyObject *__pyx_v_subgroup = 0; int __pyx_r; char (*__pyx_1); int __pyx_2; PyObject *__pyx_3 = 0; PyObject *__pyx_4 = 0; static char *__pyx_argnames[] = {"group","subgroup",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OO", __pyx_argnames, &__pyx_v_group, &__pyx_v_subgroup)) return -1; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_group); Py_INCREF(__pyx_v_subgroup); if (!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_group), __pyx_ptype_13berylsettings_Group, 1, "group")) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 814; goto __pyx_L1;} /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":815 */ __pyx_1 = PyString_AsString(__pyx_v_subgroup); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 815; goto __pyx_L1;} ((struct __pyx_obj_13berylsettings_SubGroup *)__pyx_v_self)->mySubGroup = beryl_settings_group_find_subgroup(__pyx_v_group->myGroup,__pyx_1); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":816 */ __pyx_2 = (((struct __pyx_obj_13berylsettings_SubGroup *)__pyx_v_self)->mySubGroup == 0); if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":817 */ __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n_SubGroupNotFoundException); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 817; goto __pyx_L1;} __pyx_4 = PyTuple_New(2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 817; goto __pyx_L1;} Py_INCREF(__pyx_v_subgroup); PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_subgroup); Py_INCREF(((PyObject *)__pyx_v_group)); PyTuple_SET_ITEM(__pyx_4, 1, ((PyObject *)__pyx_v_group)); __Pyx_Raise(__pyx_3, __pyx_4, 0); Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_4); __pyx_4 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 817; goto __pyx_L1;} goto __pyx_L2; } __pyx_L2:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":818 */ Py_INCREF(((PyObject *)__pyx_v_group->pPlugin)); Py_DECREF(((PyObject *)((struct __pyx_obj_13berylsettings_SubGroup *)__pyx_v_self)->pPlugin)); ((struct __pyx_obj_13berylsettings_SubGroup *)__pyx_v_self)->pPlugin = __pyx_v_group->pPlugin; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":819 */ Py_INCREF(((PyObject *)__pyx_v_group)); Py_DECREF(((PyObject *)((struct __pyx_obj_13berylsettings_SubGroup *)__pyx_v_self)->pGroup)); ((struct __pyx_obj_13berylsettings_SubGroup *)__pyx_v_self)->pGroup = __pyx_v_group; __pyx_r = 0; goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); __Pyx_AddTraceback("berylsettings.SubGroup.__new__"); __pyx_r = -1; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_group); Py_DECREF(__pyx_v_subgroup); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_8SubGroup_4Name___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_8SubGroup_4Name___get__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":823 */ __pyx_1 = PyString_FromString(beryl_settings_subgroup_get_name(((struct __pyx_obj_13berylsettings_SubGroup *)__pyx_v_self)->mySubGroup)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 823; goto __pyx_L1;} __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); __Pyx_AddTraceback("berylsettings.SubGroup.Name.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_8SubGroup_4Desc___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_8SubGroup_4Desc___get__(PyObject *__pyx_v_self) { char (*__pyx_v_c); PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":828 */ __pyx_v_c = beryl_settings_subgroup_get_desc(((struct __pyx_obj_13berylsettings_SubGroup *)__pyx_v_self)->mySubGroup); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":829 */ __pyx_1 = (__pyx_v_c == 0); if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":830 */ Py_INCREF(Py_None); __pyx_r = Py_None; goto __pyx_L0; goto __pyx_L2; } /*else*/ { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":832 */ __pyx_2 = PyString_FromString(__pyx_v_c); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 832; goto __pyx_L1;} __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; } __pyx_L2:; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); __Pyx_AddTraceback("berylsettings.SubGroup.Desc.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_8SubGroup_8Settings___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_8SubGroup_8Settings___get__(PyObject *__pyx_v_self) { struct __pyx_t_13berylsettings_GSList (*__pyx_v_l); PyObject *__pyx_v_ret; PyObject *__pyx_r; PyObject *__pyx_1 = 0; int __pyx_2; PyObject *__pyx_3 = 0; PyObject *__pyx_4 = 0; int __pyx_5; Py_INCREF(__pyx_v_self); __pyx_v_ret = Py_None; Py_INCREF(Py_None); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":837 */ __pyx_v_l = beryl_settings_subgroup_get_settings(((struct __pyx_obj_13berylsettings_SubGroup *)__pyx_v_self)->mySubGroup); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":838 */ __pyx_1 = PyList_New(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 838; goto __pyx_L1;} Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_1; __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":839 */ while (1) { __pyx_L2:; __pyx_2 = (__pyx_v_l != 0); if (!__pyx_2) break; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":840 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_str); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 840; goto __pyx_L1;} __pyx_3 = PyString_FromString(beryl_setting_get_name(((struct __pyx_t_13berylsettings_BerylSetting (*))__pyx_v_l->data))); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 840; goto __pyx_L1;} __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 840; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_4, 0, __pyx_3); __pyx_3 = 0; __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 840; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_4); __pyx_4 = 0; if (PyObject_Cmp(__pyx_3, __pyx_n_____plugin_enabled, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 840; goto __pyx_L1;} __pyx_2 = __pyx_2 == 0; Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_5 = (!__pyx_2); if (__pyx_5) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":841 */ __pyx_1 = PyString_FromString(beryl_setting_get_name(((struct __pyx_t_13berylsettings_BerylSetting (*))__pyx_v_l->data))); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 841; goto __pyx_L1;} __pyx_4 = PyTuple_New(2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 841; goto __pyx_L1;} Py_INCREF(((PyObject *)((struct __pyx_obj_13berylsettings_SubGroup *)__pyx_v_self)->pPlugin)); PyTuple_SET_ITEM(__pyx_4, 0, ((PyObject *)((struct __pyx_obj_13berylsettings_SubGroup *)__pyx_v_self)->pPlugin)); PyTuple_SET_ITEM(__pyx_4, 1, __pyx_1); __pyx_1 = 0; __pyx_3 = PyObject_CallObject(((PyObject*)__pyx_ptype_13berylsettings_Setting), __pyx_4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 841; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; __pyx_1 = PyList_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 841; goto __pyx_L1;} PyList_SET_ITEM(__pyx_1, 0, __pyx_3); __pyx_3 = 0; __pyx_4 = PyNumber_Add(__pyx_v_ret, __pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 841; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_4; __pyx_4 = 0; goto __pyx_L4; } __pyx_L4:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":842 */ __pyx_v_l = __pyx_v_l->next; } __pyx_L3:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":843 */ Py_INCREF(__pyx_v_ret); __pyx_r = __pyx_v_ret; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); __Pyx_AddTraceback("berylsettings.SubGroup.Settings.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_ret); Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_8SubGroup_Setting(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_13berylsettings_8SubGroup_Setting(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_setting = 0; struct __pyx_t_13berylsettings_BerylSetting (*__pyx_v_s); PyObject *__pyx_r; char (*__pyx_1); int __pyx_2; PyObject *__pyx_3 = 0; PyObject *__pyx_4 = 0; static char *__pyx_argnames[] = {"setting",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_setting)) return 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_setting); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":847 */ __pyx_1 = PyString_AsString(__pyx_v_setting); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 847; goto __pyx_L1;} __pyx_v_s = beryl_settings_subgroup_find_setting(((struct __pyx_obj_13berylsettings_SubGroup *)__pyx_v_self)->mySubGroup,__pyx_1); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":848 */ __pyx_2 = (__pyx_v_s == 0); if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":849 */ __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n_SettingNotFoundException); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 849; goto __pyx_L1;} __pyx_4 = PyTuple_New(2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 849; goto __pyx_L1;} Py_INCREF(__pyx_v_setting); PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_setting); Py_INCREF(__pyx_v_self); PyTuple_SET_ITEM(__pyx_4, 1, __pyx_v_self); __Pyx_Raise(__pyx_3, __pyx_4, 0); Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_4); __pyx_4 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 849; goto __pyx_L1;} goto __pyx_L2; } __pyx_L2:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":850 */ __pyx_3 = PyString_FromString(beryl_setting_get_name(__pyx_v_s)); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 850; goto __pyx_L1;} __pyx_4 = PyTuple_New(2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 850; goto __pyx_L1;} Py_INCREF(((PyObject *)((struct __pyx_obj_13berylsettings_SubGroup *)__pyx_v_self)->pPlugin)); PyTuple_SET_ITEM(__pyx_4, 0, ((PyObject *)((struct __pyx_obj_13berylsettings_SubGroup *)__pyx_v_self)->pPlugin)); PyTuple_SET_ITEM(__pyx_4, 1, __pyx_3); __pyx_3 = 0; __pyx_3 = PyObject_CallObject(((PyObject*)__pyx_ptype_13berylsettings_Setting), __pyx_4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 850; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; __pyx_r = __pyx_3; __pyx_3 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); __Pyx_AddTraceback("berylsettings.SubGroup.Setting"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_setting); return __pyx_r; } static PyObject *__pyx_k51p; static char (__pyx_k51[]) = " subgroup"; static PyObject *__pyx_f_13berylsettings_8SubGroup___str__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_8SubGroup___str__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":853 */ __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_Name); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 853; goto __pyx_L1;} __pyx_2 = PyNumber_Add(__pyx_1, __pyx_k51p); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 853; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); __Pyx_AddTraceback("berylsettings.SubGroup.__str__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static int __pyx_f_13berylsettings_7Setting___new__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_f_13berylsettings_7Setting___new__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { struct __pyx_obj_13berylsettings_Plugin *__pyx_v_plugin = 0; PyObject *__pyx_v_setting = 0; int __pyx_r; char (*__pyx_1); int __pyx_2; PyObject *__pyx_3 = 0; PyObject *__pyx_4 = 0; static char *__pyx_argnames[] = {"plugin","setting",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OO", __pyx_argnames, &__pyx_v_plugin, &__pyx_v_setting)) return -1; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_plugin); Py_INCREF(__pyx_v_setting); if (!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_plugin), __pyx_ptype_13berylsettings_Plugin, 1, "plugin")) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 860; goto __pyx_L1;} /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":861 */ __pyx_1 = PyString_AsString(__pyx_v_setting); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 861; goto __pyx_L1;} ((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting = beryl_settings_plugin_find_setting(__pyx_v_plugin->myPlugin,__pyx_1,0); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":862 */ __pyx_2 = (((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting == 0); if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":863 */ __pyx_1 = PyString_AsString(__pyx_v_setting); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 863; goto __pyx_L1;} ((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting = beryl_settings_plugin_find_setting(__pyx_v_plugin->myPlugin,__pyx_1,1); goto __pyx_L2; } __pyx_L2:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":864 */ __pyx_2 = (((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting == 0); if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":865 */ __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n_SettingNotFoundException); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 865; goto __pyx_L1;} __pyx_4 = PyTuple_New(2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 865; goto __pyx_L1;} Py_INCREF(__pyx_v_setting); PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_setting); Py_INCREF(((PyObject *)__pyx_v_plugin)); PyTuple_SET_ITEM(__pyx_4, 1, ((PyObject *)__pyx_v_plugin)); __Pyx_Raise(__pyx_3, __pyx_4, 0); Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_4); __pyx_4 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 865; goto __pyx_L1;} goto __pyx_L3; } __pyx_L3:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":866 */ Py_INCREF(((PyObject *)__pyx_v_plugin)); Py_DECREF(((PyObject *)((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->pPlugin)); ((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->pPlugin = __pyx_v_plugin; __pyx_r = 0; goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); __Pyx_AddTraceback("berylsettings.Setting.__new__"); __pyx_r = -1; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_plugin); Py_DECREF(__pyx_v_setting); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_7Setting_6Plugin___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Setting_6Plugin___get__(PyObject *__pyx_v_self) { PyObject *__pyx_r; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":870 */ Py_INCREF(((PyObject *)((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->pPlugin)); __pyx_r = ((PyObject *)((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->pPlugin); goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; __Pyx_AddTraceback("berylsettings.Setting.Plugin.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_7Setting_4Name___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Setting_4Name___get__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":874 */ __pyx_1 = PyString_FromString(beryl_setting_get_name(((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 874; goto __pyx_L1;} __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); __Pyx_AddTraceback("berylsettings.Setting.Name.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_7Setting_9ShortDesc___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Setting_9ShortDesc___get__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":878 */ __pyx_1 = PyString_FromString(beryl_setting_get_short_desc(((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 878; goto __pyx_L1;} __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); __Pyx_AddTraceback("berylsettings.Setting.ShortDesc.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_7Setting_8LongDesc___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Setting_8LongDesc___get__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":882 */ __pyx_1 = PyString_FromString(beryl_setting_get_long_desc(((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 882; goto __pyx_L1;} __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); __Pyx_AddTraceback("berylsettings.Setting.LongDesc.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_7Setting_5Group___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Setting_5Group___get__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":886 */ __pyx_1 = PyString_FromString(beryl_setting_get_group(((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 886; goto __pyx_L1;} __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); __Pyx_AddTraceback("berylsettings.Setting.Group.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_7Setting_8SubGroup___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Setting_8SubGroup___get__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":890 */ __pyx_1 = PyString_FromString(beryl_setting_get_subgroup(((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 890; goto __pyx_L1;} __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); __Pyx_AddTraceback("berylsettings.Setting.SubGroup.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_7Setting_8Advanced___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Setting_8Advanced___get__(PyObject *__pyx_v_self) { PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":894 */ __pyx_1 = beryl_setting_get_is_advanced(((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting); if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":895 */ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 895; goto __pyx_L1;} __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; goto __pyx_L2; } /*else*/ { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":897 */ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 897; goto __pyx_L1;} __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; } __pyx_L2:; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); __Pyx_AddTraceback("berylsettings.Setting.Advanced.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_7Setting_10Integrated___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Setting_10Integrated___get__(PyObject *__pyx_v_self) { PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":901 */ __pyx_1 = beryl_settings_context_get_setting_is_de_integrated(((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->pPlugin->pContext->myContext,((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting); if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":903 */ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 903; goto __pyx_L1;} __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; goto __pyx_L2; } /*else*/ { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":905 */ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 905; goto __pyx_L1;} __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; } __pyx_L2:; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); __Pyx_AddTraceback("berylsettings.Setting.Integrated.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_7Setting_8ReadOnly___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Setting_8ReadOnly___get__(PyObject *__pyx_v_self) { PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":909 */ __pyx_1 = beryl_settings_context_get_setting_is_read_only(((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->pPlugin->pContext->myContext,((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting); if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":911 */ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 911; goto __pyx_L1;} __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; goto __pyx_L2; } /*else*/ { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":913 */ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 913; goto __pyx_L1;} __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; } __pyx_L2:; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); __Pyx_AddTraceback("berylsettings.Setting.ReadOnly.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_n_Value; static PyObject *__pyx_f_13berylsettings_7Setting_ResetToDefault(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Setting_ResetToDefault(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; static char *__pyx_argnames[] = {0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":916 */ beryl_setting_reset_to_default(((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":917 */ __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_Value); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 917; goto __pyx_L1;} __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); __Pyx_AddTraceback("berylsettings.Setting.ResetToDefault"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_7Setting_HasHint(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Setting_HasHint(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_hint = 0; PyObject *__pyx_r; char (*__pyx_1); PyObject *__pyx_2 = 0; static char *__pyx_argnames[] = {"hint",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_hint)) return 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_hint); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":920 */ __pyx_1 = PyString_AsString(__pyx_v_hint); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 920; goto __pyx_L1;} __pyx_2 = PyInt_FromLong(beryl_setting_has_hint(((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting,__pyx_1)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 920; goto __pyx_L1;} __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); __Pyx_AddTraceback("berylsettings.Setting.HasHint"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_hint); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_7Setting_Conflicts(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Setting_Conflicts(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_t = 0; struct __pyx_t_13berylsettings_GSList (*__pyx_v_l); struct __pyx_t_13berylsettings_GSList (*__pyx_v_m); struct __pyx_t_13berylsettings_GSList (*__pyx_v_n); char (*__pyx_v_pnam); enum __pyx_t_13berylsettings_BerylSettingConflictType __pyx_v_type; struct __pyx_t_13berylsettings_BerylSettingConflict (*__pyx_v_c); struct __pyx_t_13berylsettings_BerylSetting (*__pyx_v_s); struct __pyx_t_13berylsettings_BerylSettingsPlugin (*__pyx_v_p); PyObject *__pyx_v_ret; PyObject *__pyx_v_oret; PyObject *__pyx_v_rtype; PyObject *__pyx_r; enum __pyx_t_13berylsettings_BerylSettingConflictType __pyx_1; PyObject *__pyx_2 = 0; int __pyx_3; PyObject *__pyx_4 = 0; PyObject *__pyx_5 = 0; static char *__pyx_argnames[] = {"t",0}; __pyx_v_t = __pyx_k11; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "|O", __pyx_argnames, &__pyx_v_t)) return 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_t); __pyx_v_ret = Py_None; Py_INCREF(Py_None); __pyx_v_oret = Py_None; Py_INCREF(Py_None); __pyx_v_rtype = Py_None; Py_INCREF(Py_None); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":928 */ __pyx_1 = PyInt_AsLong(__pyx_v_t); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 928; goto __pyx_L1;} __pyx_v_type = __pyx_1; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":932 */ __pyx_v_l = beryl_settings_context_find_conflicts_for_setting(((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->pPlugin->pContext->myContext,((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting,__pyx_v_type); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":933 */ __pyx_v_m = __pyx_v_l; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":934 */ __pyx_2 = PyList_New(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 934; goto __pyx_L1;} Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_2; __pyx_2 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":935 */ while (1) { __pyx_L2:; __pyx_3 = (__pyx_v_m != 0); if (!__pyx_3) break; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":936 */ __pyx_2 = PyList_New(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 936; goto __pyx_L1;} Py_DECREF(__pyx_v_oret); __pyx_v_oret = __pyx_2; __pyx_2 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":937 */ __pyx_v_c = ((struct __pyx_t_13berylsettings_BerylSettingConflict (*))__pyx_v_m->data); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":938 */ __pyx_2 = PyInt_FromLong(beryl_setting_conflict_get_type(__pyx_v_c)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 938; goto __pyx_L1;} Py_DECREF(__pyx_v_rtype); __pyx_v_rtype = __pyx_2; __pyx_2 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":939 */ __pyx_v_n = beryl_setting_conflict_get_settings(__pyx_v_c); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":940 */ while (1) { __pyx_L4:; __pyx_3 = (__pyx_v_n != 0); if (!__pyx_3) break; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":941 */ __pyx_v_s = ((struct __pyx_t_13berylsettings_BerylSetting (*))__pyx_v_n->data); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":942 */ __pyx_v_p = beryl_setting_get_plugin(__pyx_v_s); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":943 */ __pyx_2 = PyObject_GetAttr(((PyObject *)((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->pPlugin->pContext), __pyx_n_Plugin); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 943; goto __pyx_L1;} __pyx_4 = __pyx_f_13berylsettings_plugin_get_name(__pyx_v_p); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 943; goto __pyx_L1;} __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 943; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_5, 0, __pyx_4); __pyx_4 = 0; __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_5); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 943; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_5); __pyx_5 = 0; __pyx_2 = PyString_FromString(beryl_setting_get_name(__pyx_v_s)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 943; goto __pyx_L1;} __pyx_5 = PyTuple_New(2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 943; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_5, 0, __pyx_4); PyTuple_SET_ITEM(__pyx_5, 1, __pyx_2); __pyx_4 = 0; __pyx_2 = 0; __pyx_4 = PyObject_CallObject(((PyObject*)__pyx_ptype_13berylsettings_Setting), __pyx_5); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 943; goto __pyx_L1;} Py_DECREF(__pyx_5); __pyx_5 = 0; __pyx_2 = PyList_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 943; goto __pyx_L1;} PyList_SET_ITEM(__pyx_2, 0, __pyx_4); __pyx_4 = 0; __pyx_5 = PyNumber_Add(__pyx_v_oret, __pyx_2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 943; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_v_oret); __pyx_v_oret = __pyx_5; __pyx_5 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":944 */ __pyx_v_n = __pyx_v_n->next; } __pyx_L5:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":945 */ __pyx_4 = PyTuple_New(2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 945; goto __pyx_L1;} Py_INCREF(__pyx_v_rtype); PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_rtype); Py_INCREF(__pyx_v_oret); PyTuple_SET_ITEM(__pyx_4, 1, __pyx_v_oret); __pyx_2 = PyList_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 945; goto __pyx_L1;} PyList_SET_ITEM(__pyx_2, 0, __pyx_4); __pyx_4 = 0; __pyx_5 = PyNumber_Add(__pyx_v_ret, __pyx_2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 945; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_5; __pyx_5 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":946 */ __pyx_v_m = __pyx_v_m->next; } __pyx_L3:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":947 */ beryl_settings_free_conflict_list(__pyx_v_l); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":948 */ Py_INCREF(__pyx_v_ret); __pyx_r = __pyx_v_ret; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_4); Py_XDECREF(__pyx_5); __Pyx_AddTraceback("berylsettings.Setting.Conflicts"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_ret); Py_DECREF(__pyx_v_oret); Py_DECREF(__pyx_v_rtype); Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_t); return __pyx_r; } static PyObject *__pyx_k52p; static char (__pyx_k52[]) = " setting"; static PyObject *__pyx_f_13berylsettings_7Setting___str__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Setting___str__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; Py_INCREF(__pyx_v_self); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":951 */ __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_Name); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 951; goto __pyx_L1;} __pyx_2 = PyNumber_Add(__pyx_1, __pyx_k52p); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 951; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); __Pyx_AddTraceback("berylsettings.Setting.__str__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_13berylsettings_7Setting_12Restrictions___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Setting_12Restrictions___get__(PyObject *__pyx_v_self) { enum __pyx_t_13berylsettings_BerylSettingType __pyx_v_t; struct __pyx_t_13berylsettings_GSList (*__pyx_v_l); int __pyx_v_i; double __pyx_v_d; int __pyx_v_b; PyObject *__pyx_v_ret; PyObject *__pyx_v_st; PyObject *__pyx_v_imin; PyObject *__pyx_v_imax; PyObject *__pyx_v_fmin; PyObject *__pyx_v_fmax; PyObject *__pyx_v_fprec; PyObject *__pyx_v_csk; PyObject *__pyx_v_csm; PyObject *__pyx_v_cse; PyObject *__pyx_v_csb; PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; Py_INCREF(__pyx_v_self); __pyx_v_ret = Py_None; Py_INCREF(Py_None); __pyx_v_st = Py_None; Py_INCREF(Py_None); __pyx_v_imin = Py_None; Py_INCREF(Py_None); __pyx_v_imax = Py_None; Py_INCREF(Py_None); __pyx_v_fmin = Py_None; Py_INCREF(Py_None); __pyx_v_fmax = Py_None; Py_INCREF(Py_None); __pyx_v_fprec = Py_None; Py_INCREF(Py_None); __pyx_v_csk = Py_None; Py_INCREF(Py_None); __pyx_v_csm = Py_None; Py_INCREF(Py_None); __pyx_v_cse = Py_None; Py_INCREF(Py_None); __pyx_v_csb = Py_None; Py_INCREF(Py_None); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":960 */ __pyx_v_t = beryl_setting_get_type(((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":961 */ __pyx_1 = (__pyx_v_t == __pyx_e_13berylsettings_BERYL_SETTING_TYPE_LIST); if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":962 */ beryl_setting_get_list_type(((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting,(&__pyx_v_t)); goto __pyx_L2; } __pyx_L2:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":963 */ __pyx_1 = (__pyx_v_t == __pyx_e_13berylsettings_BERYL_SETTING_TYPE_STRING); if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":964 */ beryl_setting_get_allowed_strings(((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting,(&__pyx_v_l)); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":965 */ __pyx_2 = PyList_New(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 965; goto __pyx_L1;} Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_2; __pyx_2 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":966 */ while (1) { __pyx_L4:; __pyx_1 = (__pyx_v_l != 0); if (!__pyx_1) break; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":967 */ __pyx_2 = PyString_FromString(((char (*))__pyx_v_l->data)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 967; goto __pyx_L1;} Py_DECREF(__pyx_v_st); __pyx_v_st = __pyx_2; __pyx_2 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":968 */ __pyx_2 = PyList_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 968; goto __pyx_L1;} Py_INCREF(__pyx_v_st); PyList_SET_ITEM(__pyx_2, 0, __pyx_v_st); __pyx_3 = PyNumber_Add(__pyx_v_ret, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 968; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_3; __pyx_3 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":969 */ __pyx_v_l = __pyx_v_l->next; } __pyx_L5:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":970 */ Py_INCREF(__pyx_v_ret); __pyx_r = __pyx_v_ret; goto __pyx_L0; goto __pyx_L3; } __pyx_L3:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":971 */ __pyx_1 = (__pyx_v_t == __pyx_e_13berylsettings_BERYL_SETTING_TYPE_INT); if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":972 */ beryl_setting_get_int_min(((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting,(&__pyx_v_i)); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":973 */ __pyx_2 = PyInt_FromLong(__pyx_v_i); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 973; goto __pyx_L1;} Py_DECREF(__pyx_v_imin); __pyx_v_imin = __pyx_2; __pyx_2 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":974 */ beryl_setting_get_int_max(((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting,(&__pyx_v_i)); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":975 */ __pyx_3 = PyInt_FromLong(__pyx_v_i); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 975; goto __pyx_L1;} Py_DECREF(__pyx_v_imax); __pyx_v_imax = __pyx_3; __pyx_3 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":976 */ __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 976; goto __pyx_L1;} Py_INCREF(__pyx_v_imin); PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_imin); Py_INCREF(__pyx_v_imax); PyTuple_SET_ITEM(__pyx_2, 1, __pyx_v_imax); __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; goto __pyx_L6; } __pyx_L6:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":977 */ __pyx_1 = (__pyx_v_t == __pyx_e_13berylsettings_BERYL_SETTING_TYPE_FLOAT); if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":978 */ beryl_setting_get_float_min(((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting,(&__pyx_v_d)); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":979 */ __pyx_3 = PyFloat_FromDouble(__pyx_v_d); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 979; goto __pyx_L1;} Py_DECREF(__pyx_v_fmin); __pyx_v_fmin = __pyx_3; __pyx_3 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":980 */ beryl_setting_get_float_max(((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting,(&__pyx_v_d)); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":981 */ __pyx_2 = PyFloat_FromDouble(__pyx_v_d); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 981; goto __pyx_L1;} Py_DECREF(__pyx_v_fmax); __pyx_v_fmax = __pyx_2; __pyx_2 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":982 */ beryl_setting_get_float_precision(((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting,(&__pyx_v_d)); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":983 */ __pyx_3 = PyFloat_FromDouble(__pyx_v_d); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 983; goto __pyx_L1;} Py_DECREF(__pyx_v_fprec); __pyx_v_fprec = __pyx_3; __pyx_3 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":984 */ __pyx_2 = PyTuple_New(3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 984; goto __pyx_L1;} Py_INCREF(__pyx_v_fmin); PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_fmin); Py_INCREF(__pyx_v_fmax); PyTuple_SET_ITEM(__pyx_2, 1, __pyx_v_fmax); Py_INCREF(__pyx_v_fprec); PyTuple_SET_ITEM(__pyx_2, 2, __pyx_v_fprec); __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; goto __pyx_L7; } __pyx_L7:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":985 */ __pyx_1 = (__pyx_v_t == __pyx_e_13berylsettings_BERYL_SETTING_TYPE_BINDING); if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":986 */ beryl_setting_get_can_set_key(((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting,(&__pyx_v_b)); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":987 */ __pyx_3 = PyInt_FromLong(__pyx_v_b); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 987; goto __pyx_L1;} Py_DECREF(__pyx_v_csk); __pyx_v_csk = __pyx_3; __pyx_3 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":988 */ beryl_setting_get_can_set_button(((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting,(&__pyx_v_b)); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":989 */ __pyx_2 = PyInt_FromLong(__pyx_v_b); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 989; goto __pyx_L1;} Py_DECREF(__pyx_v_csm); __pyx_v_csm = __pyx_2; __pyx_2 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":990 */ beryl_setting_get_can_set_edgemask(((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting,(&__pyx_v_b)); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":991 */ __pyx_3 = PyInt_FromLong(__pyx_v_b); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 991; goto __pyx_L1;} Py_DECREF(__pyx_v_cse); __pyx_v_cse = __pyx_3; __pyx_3 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":992 */ beryl_setting_get_can_set_bell(((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting,(&__pyx_v_b)); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":993 */ __pyx_2 = PyInt_FromLong(__pyx_v_b); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 993; goto __pyx_L1;} Py_DECREF(__pyx_v_csb); __pyx_v_csb = __pyx_2; __pyx_2 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":994 */ __pyx_3 = PyTuple_New(4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 994; goto __pyx_L1;} Py_INCREF(__pyx_v_csk); PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_csk); Py_INCREF(__pyx_v_csm); PyTuple_SET_ITEM(__pyx_3, 1, __pyx_v_csm); Py_INCREF(__pyx_v_csb); PyTuple_SET_ITEM(__pyx_3, 2, __pyx_v_csb); Py_INCREF(__pyx_v_cse); PyTuple_SET_ITEM(__pyx_3, 3, __pyx_v_cse); __pyx_r = __pyx_3; __pyx_3 = 0; goto __pyx_L0; goto __pyx_L8; } __pyx_L8:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":995 */ Py_INCREF(Py_None); __pyx_r = Py_None; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("berylsettings.Setting.Restrictions.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_ret); Py_DECREF(__pyx_v_st); Py_DECREF(__pyx_v_imin); Py_DECREF(__pyx_v_imax); Py_DECREF(__pyx_v_fmin); Py_DECREF(__pyx_v_fmax); Py_DECREF(__pyx_v_fprec); Py_DECREF(__pyx_v_csk); Py_DECREF(__pyx_v_csm); Py_DECREF(__pyx_v_cse); Py_DECREF(__pyx_v_csb); Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_n_List; static PyObject *__pyx_n_String; static PyObject *__pyx_n_Binding; static PyObject *__pyx_n_Color; static PyObject *__pyx_n_Int; static PyObject *__pyx_n_Float; static PyObject *__pyx_n_Bool; static PyObject *__pyx_n_Unknown; static PyObject *__pyx_k53p; static PyObject *__pyx_k54p; static PyObject *__pyx_k62p; static PyObject *__pyx_k64p; static PyObject *__pyx_k65p; static char (__pyx_k53[]) = ""; static char (__pyx_k54[]) = ""; static char (__pyx_k62[]) = ""; static char (__pyx_k64[]) = ""; static char (__pyx_k65[]) = "List of %s"; static PyObject *__pyx_f_13berylsettings_7Setting_4Type___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Setting_4Type___get__(PyObject *__pyx_v_self) { enum __pyx_t_13berylsettings_BerylSettingType __pyx_v_t; PyObject *__pyx_v_lret; PyObject *__pyx_v_ret; PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; Py_INCREF(__pyx_v_self); __pyx_v_lret = Py_None; Py_INCREF(Py_None); __pyx_v_ret = Py_None; Py_INCREF(Py_None); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1000 */ __pyx_v_t = beryl_setting_get_type(((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1001 */ Py_INCREF(__pyx_k53p); Py_DECREF(__pyx_v_lret); __pyx_v_lret = __pyx_k53p; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1002 */ Py_INCREF(__pyx_k54p); Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_k54p; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1003 */ __pyx_1 = (__pyx_v_t == __pyx_e_13berylsettings_BERYL_SETTING_TYPE_LIST); if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1004 */ beryl_setting_get_list_type(((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting,(&__pyx_v_t)); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1005 */ Py_INCREF(__pyx_n_List); Py_DECREF(__pyx_v_lret); __pyx_v_lret = __pyx_n_List; goto __pyx_L2; } __pyx_L2:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1006 */ __pyx_1 = (__pyx_v_t == __pyx_e_13berylsettings_BERYL_SETTING_TYPE_STRING); if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1007 */ Py_INCREF(__pyx_n_String); Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_n_String; goto __pyx_L3; } __pyx_L3:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1008 */ __pyx_1 = (__pyx_v_t == __pyx_e_13berylsettings_BERYL_SETTING_TYPE_BINDING); if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1009 */ Py_INCREF(__pyx_n_Binding); Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_n_Binding; goto __pyx_L4; } __pyx_L4:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1010 */ __pyx_1 = (__pyx_v_t == __pyx_e_13berylsettings_BERYL_SETTING_TYPE_COLOR); if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1011 */ Py_INCREF(__pyx_n_Color); Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_n_Color; goto __pyx_L5; } __pyx_L5:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1012 */ __pyx_1 = (__pyx_v_t == __pyx_e_13berylsettings_BERYL_SETTING_TYPE_INT); if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1013 */ Py_INCREF(__pyx_n_Int); Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_n_Int; goto __pyx_L6; } __pyx_L6:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1014 */ __pyx_1 = (__pyx_v_t == __pyx_e_13berylsettings_BERYL_SETTING_TYPE_FLOAT); if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1015 */ Py_INCREF(__pyx_n_Float); Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_n_Float; goto __pyx_L7; } __pyx_L7:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1016 */ __pyx_1 = (__pyx_v_t == __pyx_e_13berylsettings_BERYL_SETTING_TYPE_BOOL); if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1017 */ Py_INCREF(__pyx_n_Bool); Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_n_Bool; goto __pyx_L8; } __pyx_L8:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1018 */ if (PyObject_Cmp(__pyx_v_ret, __pyx_k62p, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1018; goto __pyx_L1;} __pyx_1 = __pyx_1 == 0; if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1019 */ Py_INCREF(__pyx_n_Unknown); __pyx_r = __pyx_n_Unknown; goto __pyx_L0; goto __pyx_L9; } __pyx_L9:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1020 */ if (PyObject_Cmp(__pyx_v_lret, __pyx_k64p, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1020; goto __pyx_L1;} __pyx_1 = __pyx_1 == 0; if (__pyx_1) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1021 */ Py_INCREF(__pyx_v_ret); __pyx_r = __pyx_v_ret; goto __pyx_L0; goto __pyx_L10; } /*else*/ { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1023 */ __pyx_2 = PyNumber_Remainder(__pyx_k65p, __pyx_v_ret); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1023; goto __pyx_L1;} __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; } __pyx_L10:; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); __Pyx_AddTraceback("berylsettings.Setting.Type.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_lret); Py_DECREF(__pyx_v_ret); Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_n_Restrictions; static PyObject *__pyx_n_disabled; static PyObject *__pyx_n_int; static PyObject *__pyx_k67p; static PyObject *__pyx_k69p; static char (__pyx_k67[]) = ""; static char (__pyx_k69[]) = ""; static int __pyx_f_13berylsettings_7Setting_5Value___set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ static int __pyx_f_13berylsettings_7Setting_5Value___set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { enum __pyx_t_13berylsettings_BerylSettingType __pyx_v_t; struct __pyx_t_13berylsettings_BerylSettingValue (*__pyx_v_v); char (*__pyx_v_s); int __pyx_v_i; double __pyx_v_d; int __pyx_v_b; union __pyx_t_13berylsettings_BerylSettingColorValue __pyx_v_c; struct __pyx_t_13berylsettings_GSList (*__pyx_v_l); PyObject *__pyx_v_is_list; PyObject *__pyx_v_val; PyObject *__pyx_v_keystr; PyObject *__pyx_v_ke; PyObject *__pyx_v_keysym; PyObject *__pyx_v_mods; PyObject *__pyx_v_buttonstr; PyObject *__pyx_v_bu; PyObject *__pyx_v_button; PyObject *__pyx_v_bel; PyObject *__pyx_v_edg; int __pyx_r; PyObject *__pyx_1 = 0; int __pyx_2; PyObject *__pyx_3 = 0; char (*__pyx_4); double __pyx_5; PyObject *__pyx_6 = 0; PyObject *__pyx_7 = 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_value); __pyx_v_is_list = Py_None; Py_INCREF(Py_None); __pyx_v_val = Py_None; Py_INCREF(Py_None); __pyx_v_keystr = Py_None; Py_INCREF(Py_None); __pyx_v_ke = Py_None; Py_INCREF(Py_None); __pyx_v_keysym = Py_None; Py_INCREF(Py_None); __pyx_v_mods = Py_None; Py_INCREF(Py_None); __pyx_v_buttonstr = Py_None; Py_INCREF(Py_None); __pyx_v_bu = Py_None; Py_INCREF(Py_None); __pyx_v_button = Py_None; Py_INCREF(Py_None); __pyx_v_bel = Py_None; Py_INCREF(Py_None); __pyx_v_edg = Py_None; Py_INCREF(Py_None); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1035 */ __pyx_v_t = beryl_setting_get_type(((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1036 */ __pyx_v_v = beryl_setting_get_primary_value(((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1037 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1037; goto __pyx_L1;} Py_DECREF(__pyx_v_is_list); __pyx_v_is_list = __pyx_1; __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1038 */ __pyx_2 = (__pyx_v_t == __pyx_e_13berylsettings_BERYL_SETTING_TYPE_LIST); if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1039 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1039; goto __pyx_L1;} Py_DECREF(__pyx_v_is_list); __pyx_v_is_list = __pyx_1; __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1040 */ beryl_setting_get_list_type(((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting,(&__pyx_v_t)); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1041 */ beryl_setting_list_clear(((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1042 */ Py_INCREF(__pyx_v_value); Py_DECREF(__pyx_v_val); __pyx_v_val = __pyx_v_value; goto __pyx_L2; } /*else*/ { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1044 */ __pyx_1 = PyList_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1044; goto __pyx_L1;} Py_INCREF(__pyx_v_value); PyList_SET_ITEM(__pyx_1, 0, __pyx_v_value); Py_DECREF(__pyx_v_val); __pyx_v_val = __pyx_1; __pyx_1 = 0; } __pyx_L2:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1045 */ __pyx_1 = PyObject_GetIter(__pyx_v_val); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1045; goto __pyx_L1;} for (;;) { __pyx_L3:; __pyx_3 = PyIter_Next(__pyx_1); if (!__pyx_3) { if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1045; goto __pyx_L1;} break; } Py_DECREF(__pyx_v_value); __pyx_v_value = __pyx_3; __pyx_3 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1046 */ __pyx_2 = PyObject_IsTrue(__pyx_v_is_list); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1046; goto __pyx_L1;} if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1047 */ __pyx_v_v = beryl_setting_list_append(((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting); goto __pyx_L5; } __pyx_L5:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1048 */ __pyx_2 = (__pyx_v_t == __pyx_e_13berylsettings_BERYL_SETTING_TYPE_STRING); if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1049 */ __pyx_4 = PyString_AsString(__pyx_v_value); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1049; goto __pyx_L1;} __pyx_v_s = __pyx_4; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1050 */ beryl_setting_value_set_string(__pyx_v_v,(&__pyx_v_s)); goto __pyx_L6; } __pyx_L6:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1051 */ __pyx_2 = (__pyx_v_t == __pyx_e_13berylsettings_BERYL_SETTING_TYPE_INT); if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1052 */ __pyx_2 = PyInt_AsLong(__pyx_v_value); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1052; goto __pyx_L1;} __pyx_v_i = __pyx_2; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1053 */ beryl_setting_value_set_int(__pyx_v_v,(&__pyx_v_i)); goto __pyx_L7; } __pyx_L7:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1054 */ __pyx_2 = (__pyx_v_t == __pyx_e_13berylsettings_BERYL_SETTING_TYPE_FLOAT); if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1055 */ __pyx_5 = PyFloat_AsDouble(__pyx_v_value); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1055; goto __pyx_L1;} __pyx_v_d = __pyx_5; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1056 */ beryl_setting_value_set_float(__pyx_v_v,(&__pyx_v_d)); goto __pyx_L8; } __pyx_L8:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1057 */ __pyx_2 = (__pyx_v_t == __pyx_e_13berylsettings_BERYL_SETTING_TYPE_BOOL); if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1058 */ __pyx_2 = PyObject_IsTrue(__pyx_v_value); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1058; goto __pyx_L1;} if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1059 */ __pyx_v_b = 1; goto __pyx_L10; } /*else*/ { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1061 */ __pyx_v_b = 0; } __pyx_L10:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1062 */ beryl_setting_value_set_bool(__pyx_v_v,(&__pyx_v_b)); goto __pyx_L9; } __pyx_L9:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1063 */ __pyx_2 = (__pyx_v_t == __pyx_e_13berylsettings_BERYL_SETTING_TYPE_COLOR); if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1064 */ __pyx_3 = PyInt_FromLong(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1064; goto __pyx_L1;} __pyx_6 = PyObject_GetItem(__pyx_v_value, __pyx_3); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1064; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_2 = PyInt_AsLong(__pyx_6); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1064; goto __pyx_L1;} Py_DECREF(__pyx_6); __pyx_6 = 0; __pyx_v_c.color.red = __pyx_2; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1065 */ __pyx_3 = PyInt_FromLong(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1065; goto __pyx_L1;} __pyx_6 = PyObject_GetItem(__pyx_v_value, __pyx_3); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1065; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_2 = PyInt_AsLong(__pyx_6); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1065; goto __pyx_L1;} Py_DECREF(__pyx_6); __pyx_6 = 0; __pyx_v_c.color.green = __pyx_2; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1066 */ __pyx_3 = PyInt_FromLong(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1066; goto __pyx_L1;} __pyx_6 = PyObject_GetItem(__pyx_v_value, __pyx_3); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1066; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_2 = PyInt_AsLong(__pyx_6); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1066; goto __pyx_L1;} Py_DECREF(__pyx_6); __pyx_6 = 0; __pyx_v_c.color.blue = __pyx_2; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1067 */ __pyx_3 = PyInt_FromLong(3); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1067; goto __pyx_L1;} __pyx_6 = PyObject_GetItem(__pyx_v_value, __pyx_3); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1067; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_2 = PyInt_AsLong(__pyx_6); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1067; goto __pyx_L1;} Py_DECREF(__pyx_6); __pyx_6 = 0; __pyx_v_c.color.alpha = __pyx_2; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1068 */ beryl_setting_value_set_color(__pyx_v_v,(&__pyx_v_c)); goto __pyx_L11; } __pyx_L11:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1069 */ __pyx_2 = (__pyx_v_t == __pyx_e_13berylsettings_BERYL_SETTING_TYPE_BINDING); if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1071 */ __pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_Restrictions); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1071; goto __pyx_L1;} __pyx_6 = PyInt_FromLong(0); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1071; goto __pyx_L1;} __pyx_7 = PyObject_GetItem(__pyx_3, __pyx_6); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1071; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_6); __pyx_6 = 0; __pyx_2 = PyObject_IsTrue(__pyx_7); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1071; goto __pyx_L1;} Py_DECREF(__pyx_7); __pyx_7 = 0; if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1072 */ __pyx_3 = PyInt_FromLong(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1072; goto __pyx_L1;} __pyx_6 = PyObject_GetItem(__pyx_v_value, __pyx_3); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1072; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_v_keystr); __pyx_v_keystr = __pyx_6; __pyx_6 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1073 */ __pyx_7 = PyInt_FromLong(0); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1073; goto __pyx_L1;} Py_DECREF(__pyx_v_ke); __pyx_v_ke = __pyx_7; __pyx_7 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1074 */ __pyx_3 = PyInt_FromLong(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1074; goto __pyx_L1;} Py_DECREF(__pyx_v_keysym); __pyx_v_keysym = __pyx_3; __pyx_3 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1075 */ __pyx_6 = PyInt_FromLong(0); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1075; goto __pyx_L1;} Py_DECREF(__pyx_v_mods); __pyx_v_mods = __pyx_6; __pyx_6 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1076 */ __pyx_7 = __Pyx_GetName(__pyx_b, __pyx_n_str); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1076; goto __pyx_L1;} __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1076; goto __pyx_L1;} Py_INCREF(__pyx_v_keystr); PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_keystr); __pyx_6 = PyObject_CallObject(__pyx_7, __pyx_3); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1076; goto __pyx_L1;} Py_DECREF(__pyx_7); __pyx_7 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_7 = PyObject_GetAttr(__pyx_6, __pyx_n_lower); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1076; goto __pyx_L1;} Py_DECREF(__pyx_6); __pyx_6 = 0; __pyx_3 = PyTuple_New(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1076; goto __pyx_L1;} __pyx_6 = PyObject_CallObject(__pyx_7, __pyx_3); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1076; goto __pyx_L1;} Py_DECREF(__pyx_7); __pyx_7 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; if (PyObject_Cmp(__pyx_6, __pyx_n_disabled, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1076; goto __pyx_L1;} __pyx_2 = __pyx_2 != 0; Py_DECREF(__pyx_6); __pyx_6 = 0; if (__pyx_2) { if (PyObject_Cmp(__pyx_v_keystr, __pyx_k67p, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1076; goto __pyx_L1;} __pyx_2 = __pyx_2 != 0; } if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1077 */ __pyx_4 = PyString_AsString(__pyx_v_keystr); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1077; goto __pyx_L1;} __pyx_7 = PyLong_FromUnsignedLong(beryl_settings_get_mods_and_endptr(__pyx_4,(&__pyx_v_s))); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1077; goto __pyx_L1;} Py_DECREF(__pyx_v_mods); __pyx_v_mods = __pyx_7; __pyx_7 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1078 */ __pyx_3 = PyInt_FromLong(XStringToKeysym(__pyx_v_s)); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1078; goto __pyx_L1;} Py_DECREF(__pyx_v_keysym); __pyx_v_keysym = __pyx_3; __pyx_3 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1079 */ __pyx_6 = PyInt_FromLong(1); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1079; goto __pyx_L1;} Py_DECREF(__pyx_v_ke); __pyx_v_ke = __pyx_6; __pyx_6 = 0; goto __pyx_L14; } __pyx_L14:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1080 */ __pyx_2 = PyInt_AsLong(__pyx_v_keysym); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1080; goto __pyx_L1;} __pyx_v_i = __pyx_2; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1081 */ beryl_setting_value_set_keysym(__pyx_v_v,(&__pyx_v_i)); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1082 */ __pyx_2 = PyInt_AsLong(__pyx_v_mods); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1082; goto __pyx_L1;} __pyx_v_i = __pyx_2; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1083 */ beryl_setting_value_set_keymods(__pyx_v_v,(&__pyx_v_i)); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1084 */ __pyx_2 = PyInt_AsLong(__pyx_v_ke); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1084; goto __pyx_L1;} __pyx_v_b = __pyx_2; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1085 */ beryl_setting_value_set_key_enabled(__pyx_v_v,(&__pyx_v_b)); goto __pyx_L13; } __pyx_L13:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1086 */ __pyx_7 = PyObject_GetAttr(__pyx_v_self, __pyx_n_Restrictions); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1086; goto __pyx_L1;} __pyx_3 = PyInt_FromLong(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1086; goto __pyx_L1;} __pyx_6 = PyObject_GetItem(__pyx_7, __pyx_3); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1086; goto __pyx_L1;} Py_DECREF(__pyx_7); __pyx_7 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_2 = PyObject_IsTrue(__pyx_6); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1086; goto __pyx_L1;} Py_DECREF(__pyx_6); __pyx_6 = 0; if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1087 */ __pyx_7 = PyInt_FromLong(1); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1087; goto __pyx_L1;} __pyx_3 = PyObject_GetItem(__pyx_v_value, __pyx_7); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1087; goto __pyx_L1;} Py_DECREF(__pyx_7); __pyx_7 = 0; Py_DECREF(__pyx_v_buttonstr); __pyx_v_buttonstr = __pyx_3; __pyx_3 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1088 */ __pyx_6 = PyInt_FromLong(0); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1088; goto __pyx_L1;} Py_DECREF(__pyx_v_bu); __pyx_v_bu = __pyx_6; __pyx_6 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1089 */ __pyx_7 = PyInt_FromLong(0); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1089; goto __pyx_L1;} Py_DECREF(__pyx_v_button); __pyx_v_button = __pyx_7; __pyx_7 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1090 */ __pyx_3 = PyInt_FromLong(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1090; goto __pyx_L1;} Py_DECREF(__pyx_v_mods); __pyx_v_mods = __pyx_3; __pyx_3 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1091 */ __pyx_6 = __Pyx_GetName(__pyx_b, __pyx_n_str); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1091; goto __pyx_L1;} __pyx_7 = PyTuple_New(1); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1091; goto __pyx_L1;} Py_INCREF(__pyx_v_buttonstr); PyTuple_SET_ITEM(__pyx_7, 0, __pyx_v_buttonstr); __pyx_3 = PyObject_CallObject(__pyx_6, __pyx_7); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1091; goto __pyx_L1;} Py_DECREF(__pyx_6); __pyx_6 = 0; Py_DECREF(__pyx_7); __pyx_7 = 0; __pyx_6 = PyObject_GetAttr(__pyx_3, __pyx_n_lower); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1091; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_7 = PyTuple_New(0); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1091; goto __pyx_L1;} __pyx_3 = PyObject_CallObject(__pyx_6, __pyx_7); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1091; goto __pyx_L1;} Py_DECREF(__pyx_6); __pyx_6 = 0; Py_DECREF(__pyx_7); __pyx_7 = 0; if (PyObject_Cmp(__pyx_3, __pyx_n_disabled, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1091; goto __pyx_L1;} __pyx_2 = __pyx_2 != 0; Py_DECREF(__pyx_3); __pyx_3 = 0; if (__pyx_2) { if (PyObject_Cmp(__pyx_v_buttonstr, __pyx_k69p, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1091; goto __pyx_L1;} __pyx_2 = __pyx_2 != 0; } if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1092 */ __pyx_4 = PyString_AsString(__pyx_v_buttonstr); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1092; goto __pyx_L1;} __pyx_6 = PyLong_FromUnsignedLong(beryl_settings_get_mods_and_endptr(__pyx_4,(&__pyx_v_s))); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1092; goto __pyx_L1;} Py_DECREF(__pyx_v_mods); __pyx_v_mods = __pyx_6; __pyx_6 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1093 */ /*try:*/ { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1094 */ __pyx_7 = __Pyx_GetName(__pyx_b, __pyx_n_int); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1094; goto __pyx_L17;} __pyx_3 = PyString_FromString(__pyx_v_s); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1094; goto __pyx_L17;} __pyx_6 = PySequence_GetSlice(__pyx_3, 6, PY_SSIZE_T_MAX); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1094; goto __pyx_L17;} Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1094; goto __pyx_L17;} PyTuple_SET_ITEM(__pyx_3, 0, __pyx_6); __pyx_6 = 0; __pyx_6 = PyObject_CallObject(__pyx_7, __pyx_3); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1094; goto __pyx_L17;} Py_DECREF(__pyx_7); __pyx_7 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_v_button); __pyx_v_button = __pyx_6; __pyx_6 = 0; } goto __pyx_L18; __pyx_L17:; Py_XDECREF(__pyx_7); __pyx_7 = 0; Py_XDECREF(__pyx_3); __pyx_3 = 0; Py_XDECREF(__pyx_6); __pyx_6 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1095 */ /*except:*/ { __Pyx_AddTraceback("berylsettings.__set__"); __pyx_7 = __Pyx_GetExcValue(); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1095; goto __pyx_L1;} Py_DECREF(__pyx_7); __pyx_7 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1096 */ __pyx_3 = PyInt_FromLong(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1096; goto __pyx_L1;} Py_DECREF(__pyx_v_button); __pyx_v_button = __pyx_3; __pyx_3 = 0; goto __pyx_L18; } __pyx_L18:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1097 */ __pyx_6 = PyInt_FromLong(1); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1097; goto __pyx_L1;} Py_DECREF(__pyx_v_bu); __pyx_v_bu = __pyx_6; __pyx_6 = 0; goto __pyx_L16; } __pyx_L16:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1098 */ __pyx_2 = PyInt_AsLong(__pyx_v_button); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1098; goto __pyx_L1;} __pyx_v_i = __pyx_2; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1099 */ beryl_setting_value_set_button(__pyx_v_v,(&__pyx_v_i)); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1100 */ __pyx_2 = PyInt_AsLong(__pyx_v_mods); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1100; goto __pyx_L1;} __pyx_v_i = __pyx_2; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1101 */ beryl_setting_value_set_buttonmods(__pyx_v_v,(&__pyx_v_i)); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1102 */ __pyx_2 = PyInt_AsLong(__pyx_v_bu); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1102; goto __pyx_L1;} __pyx_v_b = __pyx_2; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1103 */ beryl_setting_value_set_button_enabled(__pyx_v_v,(&__pyx_v_b)); goto __pyx_L15; } __pyx_L15:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1104 */ __pyx_7 = PyObject_GetAttr(__pyx_v_self, __pyx_n_Restrictions); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1104; goto __pyx_L1;} __pyx_3 = PyInt_FromLong(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1104; goto __pyx_L1;} __pyx_6 = PyObject_GetItem(__pyx_7, __pyx_3); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1104; goto __pyx_L1;} Py_DECREF(__pyx_7); __pyx_7 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_2 = PyObject_IsTrue(__pyx_6); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1104; goto __pyx_L1;} Py_DECREF(__pyx_6); __pyx_6 = 0; if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1105 */ __pyx_7 = PyInt_FromLong(2); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1105; goto __pyx_L1;} __pyx_3 = PyObject_GetItem(__pyx_v_value, __pyx_7); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1105; goto __pyx_L1;} Py_DECREF(__pyx_7); __pyx_7 = 0; __pyx_2 = PyObject_IsTrue(__pyx_3); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1105; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1106 */ __pyx_6 = PyInt_FromLong(1); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1106; goto __pyx_L1;} Py_DECREF(__pyx_v_bel); __pyx_v_bel = __pyx_6; __pyx_6 = 0; goto __pyx_L20; } /*else*/ { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1108 */ __pyx_7 = PyInt_FromLong(0); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1108; goto __pyx_L1;} Py_DECREF(__pyx_v_bel); __pyx_v_bel = __pyx_7; __pyx_7 = 0; } __pyx_L20:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1109 */ __pyx_2 = PyInt_AsLong(__pyx_v_bel); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1109; goto __pyx_L1;} __pyx_v_b = __pyx_2; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1110 */ beryl_setting_value_set_bell(__pyx_v_v,(&__pyx_v_b)); goto __pyx_L19; } __pyx_L19:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1111 */ __pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_Restrictions); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1111; goto __pyx_L1;} __pyx_6 = PyInt_FromLong(3); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1111; goto __pyx_L1;} __pyx_7 = PyObject_GetItem(__pyx_3, __pyx_6); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1111; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_6); __pyx_6 = 0; __pyx_2 = PyObject_IsTrue(__pyx_7); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1111; goto __pyx_L1;} Py_DECREF(__pyx_7); __pyx_7 = 0; if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1112 */ __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n_edgelisttomask); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1112; goto __pyx_L1;} __pyx_6 = PyInt_FromLong(3); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1112; goto __pyx_L1;} __pyx_7 = PyObject_GetItem(__pyx_v_value, __pyx_6); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1112; goto __pyx_L1;} Py_DECREF(__pyx_6); __pyx_6 = 0; __pyx_6 = PyTuple_New(1); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1112; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_6, 0, __pyx_7); __pyx_7 = 0; __pyx_7 = PyObject_CallObject(__pyx_3, __pyx_6); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1112; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_6); __pyx_6 = 0; Py_DECREF(__pyx_v_edg); __pyx_v_edg = __pyx_7; __pyx_7 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1113 */ __pyx_2 = PyInt_AsLong(__pyx_v_edg); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1113; goto __pyx_L1;} __pyx_v_i = __pyx_2; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1114 */ beryl_setting_value_set_edgemask(__pyx_v_v,(&__pyx_v_i)); goto __pyx_L21; } __pyx_L21:; goto __pyx_L12; } __pyx_L12:; } __pyx_L4:; Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_r = 0; goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_6); Py_XDECREF(__pyx_7); __Pyx_AddTraceback("berylsettings.Setting.Value.__set__"); __pyx_r = -1; __pyx_L0:; Py_DECREF(__pyx_v_is_list); Py_DECREF(__pyx_v_val); Py_DECREF(__pyx_v_keystr); Py_DECREF(__pyx_v_ke); Py_DECREF(__pyx_v_keysym); Py_DECREF(__pyx_v_mods); Py_DECREF(__pyx_v_buttonstr); Py_DECREF(__pyx_v_bu); Py_DECREF(__pyx_v_button); Py_DECREF(__pyx_v_bel); Py_DECREF(__pyx_v_edg); Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_value); return __pyx_r; } static PyObject *__pyx_n_len; static PyObject *__pyx_n_Disabled; static PyObject *__pyx_k70p; static char (__pyx_k70[]) = ""; static PyObject *__pyx_f_13berylsettings_7Setting_5Value___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_13berylsettings_7Setting_5Value___get__(PyObject *__pyx_v_self) { enum __pyx_t_13berylsettings_BerylSettingType __pyx_v_t; struct __pyx_t_13berylsettings_BerylSettingValue (*__pyx_v_v); char (*__pyx_v_s); int __pyx_v_i; double __pyx_v_d; int __pyx_v_b; union __pyx_t_13berylsettings_BerylSettingColorValue __pyx_v_c; struct __pyx_t_13berylsettings_GSList (*__pyx_v_l); PyObject *__pyx_v_is_list; PyObject *__pyx_v_rem; PyObject *__pyx_v_ret; PyObject *__pyx_v_kys; PyObject *__pyx_v_kym; PyObject *__pyx_v_bus; PyObject *__pyx_v_bum; PyObject *__pyx_v_bes; PyObject *__pyx_v_eds; PyObject *__pyx_v_kss; PyObject *__pyx_v_bss; PyObject *__pyx_r; PyObject *__pyx_1 = 0; int __pyx_2; PyObject *__pyx_3 = 0; PyObject *__pyx_4 = 0; PyObject *__pyx_5 = 0; PyObject *__pyx_6 = 0; Py_INCREF(__pyx_v_self); __pyx_v_is_list = Py_None; Py_INCREF(Py_None); __pyx_v_rem = Py_None; Py_INCREF(Py_None); __pyx_v_ret = Py_None; Py_INCREF(Py_None); __pyx_v_kys = Py_None; Py_INCREF(Py_None); __pyx_v_kym = Py_None; Py_INCREF(Py_None); __pyx_v_bus = Py_None; Py_INCREF(Py_None); __pyx_v_bum = Py_None; Py_INCREF(Py_None); __pyx_v_bes = Py_None; Py_INCREF(Py_None); __pyx_v_eds = Py_None; Py_INCREF(Py_None); __pyx_v_kss = Py_None; Py_INCREF(Py_None); __pyx_v_bss = Py_None; Py_INCREF(Py_None); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1125 */ __pyx_v_t = beryl_setting_get_type(((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1126 */ __pyx_v_v = beryl_setting_get_primary_value(((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1127 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1127; goto __pyx_L1;} Py_DECREF(__pyx_v_is_list); __pyx_v_is_list = __pyx_1; __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1128 */ __pyx_1 = PyInt_FromLong(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1128; goto __pyx_L1;} Py_DECREF(__pyx_v_rem); __pyx_v_rem = __pyx_1; __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1129 */ __pyx_2 = (__pyx_v_t == __pyx_e_13berylsettings_BERYL_SETTING_TYPE_LIST); if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1130 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1130; goto __pyx_L1;} Py_DECREF(__pyx_v_is_list); __pyx_v_is_list = __pyx_1; __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1131 */ beryl_setting_get_list_type(((struct __pyx_obj_13berylsettings_Setting *)__pyx_v_self)->mySetting,(&__pyx_v_t)); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1132 */ beryl_setting_value_get_value_list(__pyx_v_v,(&__pyx_v_l)); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1133 */ __pyx_1 = PyInt_FromLong(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1133; goto __pyx_L1;} Py_DECREF(__pyx_v_rem); __pyx_v_rem = __pyx_1; __pyx_1 = 0; goto __pyx_L2; } __pyx_L2:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1134 */ __pyx_1 = PyList_New(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1134; goto __pyx_L1;} Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_1; __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1135 */ while (1) { __pyx_L3:; __pyx_3 = PyInt_FromLong(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1135; goto __pyx_L1;} if (PyObject_Cmp(__pyx_v_rem, __pyx_3, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1135; goto __pyx_L1;} __pyx_2 = __pyx_2 != 0; Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_1 = PyInt_FromLong(__pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1135; goto __pyx_L1;} __pyx_2 = PyObject_IsTrue(__pyx_1); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1135; goto __pyx_L1;} if (!__pyx_2) { Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_1 = __pyx_v_is_list; Py_INCREF(__pyx_1); __pyx_2 = PyObject_IsTrue(__pyx_1); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1135; goto __pyx_L1;} if (__pyx_2) { Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_1 = PyInt_FromLong((__pyx_v_l != 0)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1135; goto __pyx_L1;} } } __pyx_2 = PyObject_IsTrue(__pyx_1); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1135; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; if (!__pyx_2) break; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1136 */ __pyx_2 = PyObject_IsTrue(__pyx_v_is_list); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1136; goto __pyx_L1;} if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1137 */ __pyx_v_v = ((struct __pyx_t_13berylsettings_BerylSettingValue (*))__pyx_v_l->data); goto __pyx_L5; } /*else*/ { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1139 */ __pyx_3 = PyInt_FromLong(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1139; goto __pyx_L1;} __pyx_1 = PyNumber_Subtract(__pyx_v_rem, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1139; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_v_rem); __pyx_v_rem = __pyx_1; __pyx_1 = 0; } __pyx_L5:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1140 */ __pyx_2 = (__pyx_v_t == __pyx_e_13berylsettings_BERYL_SETTING_TYPE_STRING); if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1141 */ __pyx_2 = beryl_setting_value_get_string(__pyx_v_v,(&__pyx_v_s)); if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1142 */ __pyx_3 = PyString_FromString(__pyx_v_s); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1142; goto __pyx_L1;} __pyx_1 = PyList_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1142; goto __pyx_L1;} PyList_SET_ITEM(__pyx_1, 0, __pyx_3); __pyx_3 = 0; __pyx_3 = PyNumber_Add(__pyx_v_ret, __pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1142; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_3; __pyx_3 = 0; goto __pyx_L7; } /*else*/ { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1144 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_len); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1144; goto __pyx_L1;} __pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_Restrictions); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1144; goto __pyx_L1;} __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1144; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_4, 0, __pyx_3); __pyx_3 = 0; __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1144; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_4); __pyx_4 = 0; __pyx_2 = PyObject_IsTrue(__pyx_3); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1144; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1145 */ __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_Restrictions); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1145; goto __pyx_L1;} __pyx_4 = PyInt_FromLong(0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1145; goto __pyx_L1;} __pyx_3 = PyObject_GetItem(__pyx_1, __pyx_4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1145; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_4); __pyx_4 = 0; __pyx_1 = PyList_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1145; goto __pyx_L1;} PyList_SET_ITEM(__pyx_1, 0, __pyx_3); __pyx_3 = 0; __pyx_4 = PyNumber_Add(__pyx_v_ret, __pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1145; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_4; __pyx_4 = 0; goto __pyx_L8; } /*else*/ { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1147 */ __pyx_3 = PyList_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1147; goto __pyx_L1;} Py_INCREF(__pyx_k70p); PyList_SET_ITEM(__pyx_3, 0, __pyx_k70p); __pyx_1 = PyNumber_Add(__pyx_v_ret, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1147; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_1; __pyx_1 = 0; } __pyx_L8:; } __pyx_L7:; goto __pyx_L6; } __pyx_L6:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1148 */ __pyx_2 = (__pyx_v_t == __pyx_e_13berylsettings_BERYL_SETTING_TYPE_INT); if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1149 */ __pyx_2 = beryl_setting_value_get_int(__pyx_v_v,(&__pyx_v_i)); if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1150 */ __pyx_4 = PyInt_FromLong(__pyx_v_i); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1150; goto __pyx_L1;} __pyx_3 = PyList_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1150; goto __pyx_L1;} PyList_SET_ITEM(__pyx_3, 0, __pyx_4); __pyx_4 = 0; __pyx_1 = PyNumber_Add(__pyx_v_ret, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1150; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_1; __pyx_1 = 0; goto __pyx_L10; } __pyx_L10:; goto __pyx_L9; } __pyx_L9:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1151 */ __pyx_2 = (__pyx_v_t == __pyx_e_13berylsettings_BERYL_SETTING_TYPE_FLOAT); if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1152 */ __pyx_2 = beryl_setting_value_get_float(__pyx_v_v,(&__pyx_v_d)); if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1153 */ __pyx_4 = PyFloat_FromDouble(__pyx_v_d); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1153; goto __pyx_L1;} __pyx_3 = PyList_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1153; goto __pyx_L1;} PyList_SET_ITEM(__pyx_3, 0, __pyx_4); __pyx_4 = 0; __pyx_1 = PyNumber_Add(__pyx_v_ret, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1153; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_1; __pyx_1 = 0; goto __pyx_L12; } __pyx_L12:; goto __pyx_L11; } __pyx_L11:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1154 */ __pyx_2 = (__pyx_v_t == __pyx_e_13berylsettings_BERYL_SETTING_TYPE_BOOL); if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1155 */ __pyx_2 = beryl_setting_value_get_bool(__pyx_v_v,(&__pyx_v_b)); if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1156 */ __pyx_2 = __pyx_v_b; if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1157 */ __pyx_4 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1157; goto __pyx_L1;} __pyx_3 = PyList_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1157; goto __pyx_L1;} PyList_SET_ITEM(__pyx_3, 0, __pyx_4); __pyx_4 = 0; __pyx_1 = PyNumber_Add(__pyx_v_ret, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1157; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_1; __pyx_1 = 0; goto __pyx_L15; } /*else*/ { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1159 */ __pyx_4 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1159; goto __pyx_L1;} __pyx_3 = PyList_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1159; goto __pyx_L1;} PyList_SET_ITEM(__pyx_3, 0, __pyx_4); __pyx_4 = 0; __pyx_1 = PyNumber_Add(__pyx_v_ret, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1159; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_1; __pyx_1 = 0; } __pyx_L15:; goto __pyx_L14; } __pyx_L14:; goto __pyx_L13; } __pyx_L13:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1160 */ __pyx_2 = (__pyx_v_t == __pyx_e_13berylsettings_BERYL_SETTING_TYPE_COLOR); if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1161 */ __pyx_2 = beryl_setting_value_get_color(__pyx_v_v,(&__pyx_v_c)); if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1162 */ __pyx_4 = PyInt_FromLong(__pyx_v_c.color.red); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1162; goto __pyx_L1;} __pyx_3 = PyInt_FromLong(__pyx_v_c.color.green); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1162; goto __pyx_L1;} __pyx_1 = PyInt_FromLong(__pyx_v_c.color.blue); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1162; goto __pyx_L1;} __pyx_5 = PyInt_FromLong(__pyx_v_c.color.alpha); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1162; goto __pyx_L1;} __pyx_6 = PyTuple_New(4); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1162; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_6, 0, __pyx_4); PyTuple_SET_ITEM(__pyx_6, 1, __pyx_3); PyTuple_SET_ITEM(__pyx_6, 2, __pyx_1); PyTuple_SET_ITEM(__pyx_6, 3, __pyx_5); __pyx_4 = 0; __pyx_3 = 0; __pyx_1 = 0; __pyx_5 = 0; __pyx_4 = PyList_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1162; goto __pyx_L1;} PyList_SET_ITEM(__pyx_4, 0, __pyx_6); __pyx_6 = 0; __pyx_3 = PyNumber_Add(__pyx_v_ret, __pyx_4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1162; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_3; __pyx_3 = 0; goto __pyx_L17; } __pyx_L17:; goto __pyx_L16; } __pyx_L16:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1163 */ __pyx_2 = (__pyx_v_t == __pyx_e_13berylsettings_BERYL_SETTING_TYPE_BINDING); if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1164 */ beryl_setting_value_get_keysym(__pyx_v_v,(&__pyx_v_i)); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1165 */ __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_keytostring); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1165; goto __pyx_L1;} __pyx_5 = PyInt_FromLong(__pyx_v_i); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1165; goto __pyx_L1;} __pyx_6 = PyTuple_New(1); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1165; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_6, 0, __pyx_5); __pyx_5 = 0; __pyx_4 = PyObject_CallObject(__pyx_1, __pyx_6); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1165; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_6); __pyx_6 = 0; Py_DECREF(__pyx_v_kys); __pyx_v_kys = __pyx_4; __pyx_4 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1166 */ beryl_setting_value_get_keymods(__pyx_v_v,(&__pyx_v_i)); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1167 */ __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n_modstostring); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1167; goto __pyx_L1;} __pyx_5 = PyInt_FromLong(__pyx_v_i); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1167; goto __pyx_L1;} __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1167; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_1, 0, __pyx_5); __pyx_5 = 0; __pyx_6 = PyObject_CallObject(__pyx_3, __pyx_1); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1167; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_v_kym); __pyx_v_kym = __pyx_6; __pyx_6 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1168 */ beryl_setting_value_get_button(__pyx_v_v,(&__pyx_v_i)); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1169 */ __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_buttontostring); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1169; goto __pyx_L1;} __pyx_5 = PyInt_FromLong(__pyx_v_i); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1169; goto __pyx_L1;} __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1169; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_3, 0, __pyx_5); __pyx_5 = 0; __pyx_1 = PyObject_CallObject(__pyx_4, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1169; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_v_bus); __pyx_v_bus = __pyx_1; __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1170 */ beryl_setting_value_get_buttonmods(__pyx_v_v,(&__pyx_v_i)); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1171 */ __pyx_6 = __Pyx_GetName(__pyx_m, __pyx_n_modstostring); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1171; goto __pyx_L1;} __pyx_5 = PyInt_FromLong(__pyx_v_i); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1171; goto __pyx_L1;} __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1171; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_4, 0, __pyx_5); __pyx_5 = 0; __pyx_3 = PyObject_CallObject(__pyx_6, __pyx_4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1171; goto __pyx_L1;} Py_DECREF(__pyx_6); __pyx_6 = 0; Py_DECREF(__pyx_4); __pyx_4 = 0; Py_DECREF(__pyx_v_bum); __pyx_v_bum = __pyx_3; __pyx_3 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1172 */ beryl_setting_value_get_bell(__pyx_v_v,(&__pyx_v_b)); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1173 */ __pyx_2 = __pyx_v_b; if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1174 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1174; goto __pyx_L1;} Py_DECREF(__pyx_v_bes); __pyx_v_bes = __pyx_1; __pyx_1 = 0; goto __pyx_L19; } /*else*/ { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1176 */ __pyx_5 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1176; goto __pyx_L1;} Py_DECREF(__pyx_v_bes); __pyx_v_bes = __pyx_5; __pyx_5 = 0; } __pyx_L19:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1177 */ beryl_setting_value_get_edgemask(__pyx_v_v,(&__pyx_v_i)); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1178 */ __pyx_6 = __Pyx_GetName(__pyx_m, __pyx_n_edgetolist); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1178; goto __pyx_L1;} __pyx_4 = PyInt_FromLong(__pyx_v_i); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1178; goto __pyx_L1;} __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1178; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_3, 0, __pyx_4); __pyx_4 = 0; __pyx_1 = PyObject_CallObject(__pyx_6, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1178; goto __pyx_L1;} Py_DECREF(__pyx_6); __pyx_6 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_v_eds); __pyx_v_eds = __pyx_1; __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1179 */ beryl_setting_value_get_key_enabled(__pyx_v_v,(&__pyx_v_b)); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1180 */ __pyx_2 = __pyx_v_b; if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1181 */ __pyx_5 = PyNumber_Add(__pyx_v_kym, __pyx_v_kys); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1181; goto __pyx_L1;} Py_DECREF(__pyx_v_kss); __pyx_v_kss = __pyx_5; __pyx_5 = 0; goto __pyx_L20; } /*else*/ { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1183 */ Py_INCREF(__pyx_n_Disabled); Py_DECREF(__pyx_v_kss); __pyx_v_kss = __pyx_n_Disabled; } __pyx_L20:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1184 */ beryl_setting_value_get_button_enabled(__pyx_v_v,(&__pyx_v_b)); /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1185 */ __pyx_2 = __pyx_v_b; if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1186 */ __pyx_4 = PyNumber_Add(__pyx_v_bum, __pyx_v_bus); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1186; goto __pyx_L1;} Py_DECREF(__pyx_v_bss); __pyx_v_bss = __pyx_4; __pyx_4 = 0; goto __pyx_L21; } /*else*/ { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1188 */ Py_INCREF(__pyx_n_Disabled); Py_DECREF(__pyx_v_bss); __pyx_v_bss = __pyx_n_Disabled; } __pyx_L21:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1189 */ __pyx_6 = PyTuple_New(4); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1189; goto __pyx_L1;} Py_INCREF(__pyx_v_kss); PyTuple_SET_ITEM(__pyx_6, 0, __pyx_v_kss); Py_INCREF(__pyx_v_bss); PyTuple_SET_ITEM(__pyx_6, 1, __pyx_v_bss); Py_INCREF(__pyx_v_bes); PyTuple_SET_ITEM(__pyx_6, 2, __pyx_v_bes); Py_INCREF(__pyx_v_eds); PyTuple_SET_ITEM(__pyx_6, 3, __pyx_v_eds); __pyx_3 = PyList_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1189; goto __pyx_L1;} PyList_SET_ITEM(__pyx_3, 0, __pyx_6); __pyx_6 = 0; __pyx_1 = PyNumber_Add(__pyx_v_ret, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1189; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_v_ret); __pyx_v_ret = __pyx_1; __pyx_1 = 0; goto __pyx_L18; } __pyx_L18:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1190 */ __pyx_2 = PyObject_IsTrue(__pyx_v_is_list); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1190; goto __pyx_L1;} if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1191 */ __pyx_v_l = __pyx_v_l->next; goto __pyx_L22; } __pyx_L22:; } __pyx_L4:; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1192 */ __pyx_2 = PyObject_IsTrue(__pyx_v_is_list); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1192; goto __pyx_L1;} if (__pyx_2) { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1193 */ Py_INCREF(__pyx_v_ret); __pyx_r = __pyx_v_ret; goto __pyx_L0; goto __pyx_L23; } /*else*/ { /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1195 */ __pyx_5 = PyInt_FromLong(0); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1195; goto __pyx_L1;} __pyx_4 = PyObject_GetItem(__pyx_v_ret, __pyx_5); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1195; goto __pyx_L1;} Py_DECREF(__pyx_5); __pyx_5 = 0; __pyx_r = __pyx_4; __pyx_4 = 0; goto __pyx_L0; } __pyx_L23:; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); Py_XDECREF(__pyx_5); Py_XDECREF(__pyx_6); __Pyx_AddTraceback("berylsettings.Setting.Value.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_is_list); Py_DECREF(__pyx_v_rem); Py_DECREF(__pyx_v_ret); Py_DECREF(__pyx_v_kys); Py_DECREF(__pyx_v_kym); Py_DECREF(__pyx_v_bus); Py_DECREF(__pyx_v_bum); Py_DECREF(__pyx_v_bes); Py_DECREF(__pyx_v_eds); Py_DECREF(__pyx_v_kss); Py_DECREF(__pyx_v_bss); Py_DECREF(__pyx_v_self); return __pyx_r; } static __Pyx_InternTabEntry __pyx_intern_tab[] = { {&__pyx_n_Backends, "Backends"}, {&__pyx_n_Binding, "Binding"}, {&__pyx_n_Bool, "Bool"}, {&__pyx_n_Bottom, "Bottom"}, {&__pyx_n_BottomLeft, "BottomLeft"}, {&__pyx_n_BottomRight, "BottomRight"}, {&__pyx_n_Color, "Color"}, {&__pyx_n_Disabled, "Disabled"}, {&__pyx_n_Exception, "Exception"}, {&__pyx_n_False, "False"}, {&__pyx_n_Float, "Float"}, {&__pyx_n_GroupNotFoundException, "GroupNotFoundException"}, {&__pyx_n_Int, "Int"}, {&__pyx_n_Left, "Left"}, {&__pyx_n_List, "List"}, {&__pyx_n_Name, "Name"}, {&__pyx_n_None, "None"}, {&__pyx_n_NotFoundException, "NotFoundException"}, {&__pyx_n_Plugin, "Plugin"}, {&__pyx_n_PluginDisableException, "PluginDisableException"}, {&__pyx_n_PluginEnableException, "PluginEnableException"}, {&__pyx_n_PluginNotFoundException, "PluginNotFoundException"}, {&__pyx_n_PluginSetEnabledException, "PluginSetEnabledException"}, {&__pyx_n_Restrictions, "Restrictions"}, {&__pyx_n_Right, "Right"}, {&__pyx_n_SettingNotFoundException, "SettingNotFoundException"}, {&__pyx_n_String, "String"}, {&__pyx_n_SubGroupNotFoundException, "SubGroupNotFoundException"}, {&__pyx_n_Top, "Top"}, {&__pyx_n_TopLeft, "TopLeft"}, {&__pyx_n_TopRight, "TopRight"}, {&__pyx_n_True, "True"}, {&__pyx_n_Unknown, "Unknown"}, {&__pyx_n_Value, "Value"}, {&__pyx_n__, "_"}, {&__pyx_n_____plugin_enabled, "____plugin_enabled"}, {&__pyx_n___init__, "__init__"}, {&__pyx_n___str__, "__str__"}, {&__pyx_n_buttontostring, "buttontostring"}, {&__pyx_n_disable, "disable"}, {&__pyx_n_disabled, "disabled"}, {&__pyx_n_edgelisttomask, "edgelisttomask"}, {&__pyx_n_edgetolist, "edgetolist"}, {&__pyx_n_enable, "enable"}, {&__pyx_n_group, "group"}, {&__pyx_n_int, "int"}, {&__pyx_n_keytostring, "keytostring"}, {&__pyx_n_len, "len"}, {&__pyx_n_lower, "lower"}, {&__pyx_n_modstostring, "modstostring"}, {&__pyx_n_owner, "owner"}, {&__pyx_n_plugin, "plugin"}, {&__pyx_n_range, "range"}, {&__pyx_n_repr, "repr"}, {&__pyx_n_send_reload, "send_reload"}, {&__pyx_n_setting, "setting"}, {&__pyx_n_str, "str"}, {&__pyx_n_subgroup, "subgroup"}, {&__pyx_n_type, "type"}, {&__pyx_n_value, "value"}, {0, 0} }; static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_k14p, __pyx_k14, sizeof(__pyx_k14)}, {&__pyx_k16p, __pyx_k16, sizeof(__pyx_k16)}, {&__pyx_k33p, __pyx_k33, sizeof(__pyx_k33)}, {&__pyx_k36p, __pyx_k36, sizeof(__pyx_k36)}, {&__pyx_k41p, __pyx_k41, sizeof(__pyx_k41)}, {&__pyx_k42p, __pyx_k42, sizeof(__pyx_k42)}, {&__pyx_k43p, __pyx_k43, sizeof(__pyx_k43)}, {&__pyx_k45p, __pyx_k45, sizeof(__pyx_k45)}, {&__pyx_k46p, __pyx_k46, sizeof(__pyx_k46)}, {&__pyx_k48p, __pyx_k48, sizeof(__pyx_k48)}, {&__pyx_k49p, __pyx_k49, sizeof(__pyx_k49)}, {&__pyx_k51p, __pyx_k51, sizeof(__pyx_k51)}, {&__pyx_k52p, __pyx_k52, sizeof(__pyx_k52)}, {&__pyx_k53p, __pyx_k53, sizeof(__pyx_k53)}, {&__pyx_k54p, __pyx_k54, sizeof(__pyx_k54)}, {&__pyx_k62p, __pyx_k62, sizeof(__pyx_k62)}, {&__pyx_k64p, __pyx_k64, sizeof(__pyx_k64)}, {&__pyx_k65p, __pyx_k65, sizeof(__pyx_k65)}, {&__pyx_k67p, __pyx_k67, sizeof(__pyx_k67)}, {&__pyx_k69p, __pyx_k69, sizeof(__pyx_k69)}, {&__pyx_k70p, __pyx_k70, sizeof(__pyx_k70)}, {0, 0, 0} }; static PyObject *__pyx_tp_new_13berylsettings_Backend(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o = (*t->tp_alloc)(t, 0); struct __pyx_obj_13berylsettings_Backend *p = (struct __pyx_obj_13berylsettings_Backend *)o; if (__pyx_f_13berylsettings_7Backend___new__(o, a, k) < 0) { Py_DECREF(o); o = 0; } return o; } static void __pyx_tp_dealloc_13berylsettings_Backend(PyObject *o) { struct __pyx_obj_13berylsettings_Backend *p = (struct __pyx_obj_13berylsettings_Backend *)o; (*o->ob_type->tp_free)(o); } static int __pyx_tp_traverse_13berylsettings_Backend(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_13berylsettings_Backend *p = (struct __pyx_obj_13berylsettings_Backend *)o; return 0; } static int __pyx_tp_clear_13berylsettings_Backend(PyObject *o) { struct __pyx_obj_13berylsettings_Backend *p = (struct __pyx_obj_13berylsettings_Backend *)o; return 0; } static PyObject *__pyx_getprop_13berylsettings_7Backend_Name(PyObject *o, void *x) { return __pyx_f_13berylsettings_7Backend_4Name___get__(o); } static PyObject *__pyx_getprop_13berylsettings_7Backend_ShortDesc(PyObject *o, void *x) { return __pyx_f_13berylsettings_7Backend_9ShortDesc___get__(o); } static PyObject *__pyx_getprop_13berylsettings_7Backend_IntegrationSupport(PyObject *o, void *x) { return __pyx_f_13berylsettings_7Backend_18IntegrationSupport___get__(o); } static struct PyMethodDef __pyx_methods_13berylsettings_Backend[] = { {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_13berylsettings_Backend[] = { {"Name", __pyx_getprop_13berylsettings_7Backend_Name, 0, 0, 0}, {"ShortDesc", __pyx_getprop_13berylsettings_7Backend_ShortDesc, 0, 0, 0}, {"IntegrationSupport", __pyx_getprop_13berylsettings_7Backend_IntegrationSupport, 0, 0, 0}, {0, 0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_Backend = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 0, /*nb_remainder*/ 0, /*nb_divmod*/ 0, /*nb_power*/ 0, /*nb_negative*/ 0, /*nb_positive*/ 0, /*nb_absolute*/ 0, /*nb_nonzero*/ 0, /*nb_invert*/ 0, /*nb_lshift*/ 0, /*nb_rshift*/ 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 0, /*nb_inplace_remainder*/ 0, /*nb_inplace_power*/ 0, /*nb_inplace_lshift*/ 0, /*nb_inplace_rshift*/ 0, /*nb_inplace_and*/ 0, /*nb_inplace_xor*/ 0, /*nb_inplace_or*/ 0, /*nb_floor_divide*/ 0, /*nb_true_divide*/ 0, /*nb_inplace_floor_divide*/ 0, /*nb_inplace_true_divide*/ }; static PySequenceMethods __pyx_tp_as_sequence_Backend = { 0, /*sq_length*/ 0, /*sq_concat*/ 0, /*sq_repeat*/ 0, /*sq_item*/ 0, /*sq_slice*/ 0, /*sq_ass_item*/ 0, /*sq_ass_slice*/ 0, /*sq_contains*/ 0, /*sq_inplace_concat*/ 0, /*sq_inplace_repeat*/ }; static PyMappingMethods __pyx_tp_as_mapping_Backend = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_Backend = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_13berylsettings_Backend = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "berylsettings.Backend", /*tp_name*/ sizeof(struct __pyx_obj_13berylsettings_Backend), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_13berylsettings_Backend, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ &__pyx_tp_as_number_Backend, /*tp_as_number*/ &__pyx_tp_as_sequence_Backend, /*tp_as_sequence*/ &__pyx_tp_as_mapping_Backend, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ __pyx_f_13berylsettings_7Backend___str__, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_Backend, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_13berylsettings_Backend, /*tp_traverse*/ __pyx_tp_clear_13berylsettings_Backend, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_13berylsettings_Backend, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_13berylsettings_Backend, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_13berylsettings_Backend, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ }; static PyObject *__pyx_tp_new_13berylsettings_Context(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o = (*t->tp_alloc)(t, 0); struct __pyx_obj_13berylsettings_Context *p = (struct __pyx_obj_13berylsettings_Context *)o; if (__pyx_f_13berylsettings_7Context___new__(o, a, k) < 0) { Py_DECREF(o); o = 0; } return o; } static void __pyx_tp_dealloc_13berylsettings_Context(PyObject *o) { struct __pyx_obj_13berylsettings_Context *p = (struct __pyx_obj_13berylsettings_Context *)o; { PyObject *etype, *eval, *etb; PyErr_Fetch(&etype, &eval, &etb); ++o->ob_refcnt; __pyx_f_13berylsettings_7Context___dealloc__(o); if (PyErr_Occurred()) PyErr_WriteUnraisable(o); --o->ob_refcnt; PyErr_Restore(etype, eval, etb); } (*o->ob_type->tp_free)(o); } static int __pyx_tp_traverse_13berylsettings_Context(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_13berylsettings_Context *p = (struct __pyx_obj_13berylsettings_Context *)o; return 0; } static int __pyx_tp_clear_13berylsettings_Context(PyObject *o) { struct __pyx_obj_13berylsettings_Context *p = (struct __pyx_obj_13berylsettings_Context *)o; return 0; } static PyObject *__pyx_getprop_13berylsettings_7Context_Backend(PyObject *o, void *x) { return __pyx_f_13berylsettings_7Context_7Backend___get__(o); } static int __pyx_setprop_13berylsettings_7Context_Backend(PyObject *o, PyObject *v, void *x) { if (v) { return __pyx_f_13berylsettings_7Context_7Backend___set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_13berylsettings_7Context_Categories(PyObject *o, void *x) { return __pyx_f_13berylsettings_7Context_10Categories___get__(o); } static PyObject *__pyx_getprop_13berylsettings_7Context_Plugins(PyObject *o, void *x) { return __pyx_f_13berylsettings_7Context_7Plugins___get__(o); } static PyObject *__pyx_getprop_13berylsettings_7Context_Profile(PyObject *o, void *x) { return __pyx_f_13berylsettings_7Context_7Profile___get__(o); } static int __pyx_setprop_13berylsettings_7Context_Profile(PyObject *o, PyObject *v, void *x) { if (v) { return __pyx_f_13berylsettings_7Context_7Profile___set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_13berylsettings_7Context_Profiles(PyObject *o, void *x) { return __pyx_f_13berylsettings_7Context_8Profiles___get__(o); } static PyObject *__pyx_getprop_13berylsettings_7Context_Integrated(PyObject *o, void *x) { return __pyx_f_13berylsettings_7Context_10Integrated___get__(o); } static int __pyx_setprop_13berylsettings_7Context_Integrated(PyObject *o, PyObject *v, void *x) { if (v) { return __pyx_f_13berylsettings_7Context_10Integrated___set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_13berylsettings_7Context_ActivePlugins(PyObject *o, void *x) { return __pyx_f_13berylsettings_7Context_13ActivePlugins___get__(o); } static struct PyMethodDef __pyx_methods_13berylsettings_Context[] = { {"EdgeOwner", (PyCFunction)__pyx_f_13berylsettings_7Context_EdgeOwner, METH_VARARGS|METH_KEYWORDS, 0}, {"Conflicts", (PyCFunction)__pyx_f_13berylsettings_7Context_Conflicts, METH_VARARGS|METH_KEYWORDS, 0}, {"Read", (PyCFunction)__pyx_f_13berylsettings_7Context_Read, METH_VARARGS|METH_KEYWORDS, 0}, {"Write", (PyCFunction)__pyx_f_13berylsettings_7Context_Write, METH_VARARGS|METH_KEYWORDS, 0}, {"Import", (PyCFunction)__pyx_f_13berylsettings_7Context_Import, METH_VARARGS|METH_KEYWORDS, 0}, {"Export", (PyCFunction)__pyx_f_13berylsettings_7Context_Export, METH_VARARGS|METH_KEYWORDS, 0}, {"DeleteProfile", (PyCFunction)__pyx_f_13berylsettings_7Context_DeleteProfile, METH_VARARGS|METH_KEYWORDS, 0}, {"Plugin", (PyCFunction)__pyx_f_13berylsettings_7Context_Plugin, METH_VARARGS|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_13berylsettings_Context[] = { {"Backend", __pyx_getprop_13berylsettings_7Context_Backend, __pyx_setprop_13berylsettings_7Context_Backend, 0, 0}, {"Categories", __pyx_getprop_13berylsettings_7Context_Categories, 0, 0, 0}, {"Plugins", __pyx_getprop_13berylsettings_7Context_Plugins, 0, 0, 0}, {"Profile", __pyx_getprop_13berylsettings_7Context_Profile, __pyx_setprop_13berylsettings_7Context_Profile, 0, 0}, {"Profiles", __pyx_getprop_13berylsettings_7Context_Profiles, 0, 0, 0}, {"Integrated", __pyx_getprop_13berylsettings_7Context_Integrated, __pyx_setprop_13berylsettings_7Context_Integrated, 0, 0}, {"ActivePlugins", __pyx_getprop_13berylsettings_7Context_ActivePlugins, 0, 0, 0}, {0, 0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_Context = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 0, /*nb_remainder*/ 0, /*nb_divmod*/ 0, /*nb_power*/ 0, /*nb_negative*/ 0, /*nb_positive*/ 0, /*nb_absolute*/ 0, /*nb_nonzero*/ 0, /*nb_invert*/ 0, /*nb_lshift*/ 0, /*nb_rshift*/ 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 0, /*nb_inplace_remainder*/ 0, /*nb_inplace_power*/ 0, /*nb_inplace_lshift*/ 0, /*nb_inplace_rshift*/ 0, /*nb_inplace_and*/ 0, /*nb_inplace_xor*/ 0, /*nb_inplace_or*/ 0, /*nb_floor_divide*/ 0, /*nb_true_divide*/ 0, /*nb_inplace_floor_divide*/ 0, /*nb_inplace_true_divide*/ }; static PySequenceMethods __pyx_tp_as_sequence_Context = { 0, /*sq_length*/ 0, /*sq_concat*/ 0, /*sq_repeat*/ 0, /*sq_item*/ 0, /*sq_slice*/ 0, /*sq_ass_item*/ 0, /*sq_ass_slice*/ 0, /*sq_contains*/ 0, /*sq_inplace_concat*/ 0, /*sq_inplace_repeat*/ }; static PyMappingMethods __pyx_tp_as_mapping_Context = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_Context = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_13berylsettings_Context = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "berylsettings.Context", /*tp_name*/ sizeof(struct __pyx_obj_13berylsettings_Context), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_13berylsettings_Context, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ &__pyx_tp_as_number_Context, /*tp_as_number*/ &__pyx_tp_as_sequence_Context, /*tp_as_sequence*/ &__pyx_tp_as_mapping_Context, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ __pyx_f_13berylsettings_7Context___str__, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_Context, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_13berylsettings_Context, /*tp_traverse*/ __pyx_tp_clear_13berylsettings_Context, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_13berylsettings_Context, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_13berylsettings_Context, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_13berylsettings_Context, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ }; static PyObject *__pyx_tp_new_13berylsettings_Category(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o = (*t->tp_alloc)(t, 0); struct __pyx_obj_13berylsettings_Category *p = (struct __pyx_obj_13berylsettings_Category *)o; p->pContext = ((struct __pyx_obj_13berylsettings_Context *)Py_None); Py_INCREF(Py_None); if (__pyx_f_13berylsettings_8Category___new__(o, a, k) < 0) { Py_DECREF(o); o = 0; } return o; } static void __pyx_tp_dealloc_13berylsettings_Category(PyObject *o) { struct __pyx_obj_13berylsettings_Category *p = (struct __pyx_obj_13berylsettings_Category *)o; Py_XDECREF(((PyObject *)p->pContext)); (*o->ob_type->tp_free)(o); } static int __pyx_tp_traverse_13berylsettings_Category(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_13berylsettings_Category *p = (struct __pyx_obj_13berylsettings_Category *)o; if (p->pContext) { e = (*v)(((PyObject*)p->pContext), a); if (e) return e; } return 0; } static int __pyx_tp_clear_13berylsettings_Category(PyObject *o) { struct __pyx_obj_13berylsettings_Category *p = (struct __pyx_obj_13berylsettings_Category *)o; Py_XDECREF(((PyObject *)p->pContext)); p->pContext = ((struct __pyx_obj_13berylsettings_Context *)Py_None); Py_INCREF(Py_None); return 0; } static PyObject *__pyx_getprop_13berylsettings_8Category_Name(PyObject *o, void *x) { return __pyx_f_13berylsettings_8Category_4Name___get__(o); } static PyObject *__pyx_getprop_13berylsettings_8Category_ShortDesc(PyObject *o, void *x) { return __pyx_f_13berylsettings_8Category_9ShortDesc___get__(o); } static PyObject *__pyx_getprop_13berylsettings_8Category_LongDesc(PyObject *o, void *x) { return __pyx_f_13berylsettings_8Category_8LongDesc___get__(o); } static PyObject *__pyx_getprop_13berylsettings_8Category_Plugins(PyObject *o, void *x) { return __pyx_f_13berylsettings_8Category_7Plugins___get__(o); } static struct PyMethodDef __pyx_methods_13berylsettings_Category[] = { {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_13berylsettings_Category[] = { {"Name", __pyx_getprop_13berylsettings_8Category_Name, 0, 0, 0}, {"ShortDesc", __pyx_getprop_13berylsettings_8Category_ShortDesc, 0, 0, 0}, {"LongDesc", __pyx_getprop_13berylsettings_8Category_LongDesc, 0, 0, 0}, {"Plugins", __pyx_getprop_13berylsettings_8Category_Plugins, 0, 0, 0}, {0, 0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_Category = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 0, /*nb_remainder*/ 0, /*nb_divmod*/ 0, /*nb_power*/ 0, /*nb_negative*/ 0, /*nb_positive*/ 0, /*nb_absolute*/ 0, /*nb_nonzero*/ 0, /*nb_invert*/ 0, /*nb_lshift*/ 0, /*nb_rshift*/ 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 0, /*nb_inplace_remainder*/ 0, /*nb_inplace_power*/ 0, /*nb_inplace_lshift*/ 0, /*nb_inplace_rshift*/ 0, /*nb_inplace_and*/ 0, /*nb_inplace_xor*/ 0, /*nb_inplace_or*/ 0, /*nb_floor_divide*/ 0, /*nb_true_divide*/ 0, /*nb_inplace_floor_divide*/ 0, /*nb_inplace_true_divide*/ }; static PySequenceMethods __pyx_tp_as_sequence_Category = { 0, /*sq_length*/ 0, /*sq_concat*/ 0, /*sq_repeat*/ 0, /*sq_item*/ 0, /*sq_slice*/ 0, /*sq_ass_item*/ 0, /*sq_ass_slice*/ 0, /*sq_contains*/ 0, /*sq_inplace_concat*/ 0, /*sq_inplace_repeat*/ }; static PyMappingMethods __pyx_tp_as_mapping_Category = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_Category = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_13berylsettings_Category = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "berylsettings.Category", /*tp_name*/ sizeof(struct __pyx_obj_13berylsettings_Category), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_13berylsettings_Category, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ &__pyx_tp_as_number_Category, /*tp_as_number*/ &__pyx_tp_as_sequence_Category, /*tp_as_sequence*/ &__pyx_tp_as_mapping_Category, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ __pyx_f_13berylsettings_8Category___str__, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_Category, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_13berylsettings_Category, /*tp_traverse*/ __pyx_tp_clear_13berylsettings_Category, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_13berylsettings_Category, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_13berylsettings_Category, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_13berylsettings_Category, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ }; static PyObject *__pyx_tp_new_13berylsettings_Plugin(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o = (*t->tp_alloc)(t, 0); struct __pyx_obj_13berylsettings_Plugin *p = (struct __pyx_obj_13berylsettings_Plugin *)o; p->pContext = ((struct __pyx_obj_13berylsettings_Context *)Py_None); Py_INCREF(Py_None); if (__pyx_f_13berylsettings_6Plugin___new__(o, a, k) < 0) { Py_DECREF(o); o = 0; } return o; } static void __pyx_tp_dealloc_13berylsettings_Plugin(PyObject *o) { struct __pyx_obj_13berylsettings_Plugin *p = (struct __pyx_obj_13berylsettings_Plugin *)o; Py_XDECREF(((PyObject *)p->pContext)); (*o->ob_type->tp_free)(o); } static int __pyx_tp_traverse_13berylsettings_Plugin(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_13berylsettings_Plugin *p = (struct __pyx_obj_13berylsettings_Plugin *)o; if (p->pContext) { e = (*v)(((PyObject*)p->pContext), a); if (e) return e; } return 0; } static int __pyx_tp_clear_13berylsettings_Plugin(PyObject *o) { struct __pyx_obj_13berylsettings_Plugin *p = (struct __pyx_obj_13berylsettings_Plugin *)o; Py_XDECREF(((PyObject *)p->pContext)); p->pContext = ((struct __pyx_obj_13berylsettings_Context *)Py_None); Py_INCREF(Py_None); return 0; } static PyObject *__pyx_getprop_13berylsettings_6Plugin_Enabled(PyObject *o, void *x) { return __pyx_f_13berylsettings_6Plugin_7Enabled___get__(o); } static int __pyx_setprop_13berylsettings_6Plugin_Enabled(PyObject *o, PyObject *v, void *x) { if (v) { return __pyx_f_13berylsettings_6Plugin_7Enabled___set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_13berylsettings_6Plugin_Name(PyObject *o, void *x) { return __pyx_f_13berylsettings_6Plugin_4Name___get__(o); } static PyObject *__pyx_getprop_13berylsettings_6Plugin_ShortDesc(PyObject *o, void *x) { return __pyx_f_13berylsettings_6Plugin_9ShortDesc___get__(o); } static PyObject *__pyx_getprop_13berylsettings_6Plugin_LongDesc(PyObject *o, void *x) { return __pyx_f_13berylsettings_6Plugin_8LongDesc___get__(o); } static PyObject *__pyx_getprop_13berylsettings_6Plugin_Settings(PyObject *o, void *x) { return __pyx_f_13berylsettings_6Plugin_8Settings___get__(o); } static PyObject *__pyx_getprop_13berylsettings_6Plugin_Groups(PyObject *o, void *x) { return __pyx_f_13berylsettings_6Plugin_6Groups___get__(o); } static PyObject *__pyx_getprop_13berylsettings_6Plugin_Provides(PyObject *o, void *x) { return __pyx_f_13berylsettings_6Plugin_8Provides___get__(o); } static PyObject *__pyx_getprop_13berylsettings_6Plugin_Requires(PyObject *o, void *x) { return __pyx_f_13berylsettings_6Plugin_8Requires___get__(o); } static struct PyMethodDef __pyx_methods_13berylsettings_Plugin[] = { {"Group", (PyCFunction)__pyx_f_13berylsettings_6Plugin_Group, METH_VARARGS|METH_KEYWORDS, 0}, {"Setting", (PyCFunction)__pyx_f_13berylsettings_6Plugin_Setting, METH_VARARGS|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_13berylsettings_Plugin[] = { {"Enabled", __pyx_getprop_13berylsettings_6Plugin_Enabled, __pyx_setprop_13berylsettings_6Plugin_Enabled, 0, 0}, {"Name", __pyx_getprop_13berylsettings_6Plugin_Name, 0, 0, 0}, {"ShortDesc", __pyx_getprop_13berylsettings_6Plugin_ShortDesc, 0, 0, 0}, {"LongDesc", __pyx_getprop_13berylsettings_6Plugin_LongDesc, 0, 0, 0}, {"Settings", __pyx_getprop_13berylsettings_6Plugin_Settings, 0, 0, 0}, {"Groups", __pyx_getprop_13berylsettings_6Plugin_Groups, 0, 0, 0}, {"Provides", __pyx_getprop_13berylsettings_6Plugin_Provides, 0, 0, 0}, {"Requires", __pyx_getprop_13berylsettings_6Plugin_Requires, 0, 0, 0}, {0, 0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_Plugin = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 0, /*nb_remainder*/ 0, /*nb_divmod*/ 0, /*nb_power*/ 0, /*nb_negative*/ 0, /*nb_positive*/ 0, /*nb_absolute*/ 0, /*nb_nonzero*/ 0, /*nb_invert*/ 0, /*nb_lshift*/ 0, /*nb_rshift*/ 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 0, /*nb_inplace_remainder*/ 0, /*nb_inplace_power*/ 0, /*nb_inplace_lshift*/ 0, /*nb_inplace_rshift*/ 0, /*nb_inplace_and*/ 0, /*nb_inplace_xor*/ 0, /*nb_inplace_or*/ 0, /*nb_floor_divide*/ 0, /*nb_true_divide*/ 0, /*nb_inplace_floor_divide*/ 0, /*nb_inplace_true_divide*/ }; static PySequenceMethods __pyx_tp_as_sequence_Plugin = { 0, /*sq_length*/ 0, /*sq_concat*/ 0, /*sq_repeat*/ 0, /*sq_item*/ 0, /*sq_slice*/ 0, /*sq_ass_item*/ 0, /*sq_ass_slice*/ 0, /*sq_contains*/ 0, /*sq_inplace_concat*/ 0, /*sq_inplace_repeat*/ }; static PyMappingMethods __pyx_tp_as_mapping_Plugin = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_Plugin = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_13berylsettings_Plugin = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "berylsettings.Plugin", /*tp_name*/ sizeof(struct __pyx_obj_13berylsettings_Plugin), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_13berylsettings_Plugin, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ &__pyx_tp_as_number_Plugin, /*tp_as_number*/ &__pyx_tp_as_sequence_Plugin, /*tp_as_sequence*/ &__pyx_tp_as_mapping_Plugin, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ __pyx_f_13berylsettings_6Plugin___str__, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_Plugin, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_13berylsettings_Plugin, /*tp_traverse*/ __pyx_tp_clear_13berylsettings_Plugin, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_13berylsettings_Plugin, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_13berylsettings_Plugin, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_13berylsettings_Plugin, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ }; static PyObject *__pyx_tp_new_13berylsettings_Group(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o = (*t->tp_alloc)(t, 0); struct __pyx_obj_13berylsettings_Group *p = (struct __pyx_obj_13berylsettings_Group *)o; p->pPlugin = ((struct __pyx_obj_13berylsettings_Plugin *)Py_None); Py_INCREF(Py_None); if (__pyx_f_13berylsettings_5Group___new__(o, a, k) < 0) { Py_DECREF(o); o = 0; } return o; } static void __pyx_tp_dealloc_13berylsettings_Group(PyObject *o) { struct __pyx_obj_13berylsettings_Group *p = (struct __pyx_obj_13berylsettings_Group *)o; Py_XDECREF(((PyObject *)p->pPlugin)); (*o->ob_type->tp_free)(o); } static int __pyx_tp_traverse_13berylsettings_Group(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_13berylsettings_Group *p = (struct __pyx_obj_13berylsettings_Group *)o; if (p->pPlugin) { e = (*v)(((PyObject*)p->pPlugin), a); if (e) return e; } return 0; } static int __pyx_tp_clear_13berylsettings_Group(PyObject *o) { struct __pyx_obj_13berylsettings_Group *p = (struct __pyx_obj_13berylsettings_Group *)o; Py_XDECREF(((PyObject *)p->pPlugin)); p->pPlugin = ((struct __pyx_obj_13berylsettings_Plugin *)Py_None); Py_INCREF(Py_None); return 0; } static PyObject *__pyx_getprop_13berylsettings_5Group_Plugin(PyObject *o, void *x) { return __pyx_f_13berylsettings_5Group_6Plugin___get__(o); } static PyObject *__pyx_getprop_13berylsettings_5Group_Name(PyObject *o, void *x) { return __pyx_f_13berylsettings_5Group_4Name___get__(o); } static PyObject *__pyx_getprop_13berylsettings_5Group_Desc(PyObject *o, void *x) { return __pyx_f_13berylsettings_5Group_4Desc___get__(o); } static PyObject *__pyx_getprop_13berylsettings_5Group_SubGroups(PyObject *o, void *x) { return __pyx_f_13berylsettings_5Group_9SubGroups___get__(o); } static struct PyMethodDef __pyx_methods_13berylsettings_Group[] = { {"SubGroup", (PyCFunction)__pyx_f_13berylsettings_5Group_SubGroup, METH_VARARGS|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_13berylsettings_Group[] = { {"Plugin", __pyx_getprop_13berylsettings_5Group_Plugin, 0, 0, 0}, {"Name", __pyx_getprop_13berylsettings_5Group_Name, 0, 0, 0}, {"Desc", __pyx_getprop_13berylsettings_5Group_Desc, 0, 0, 0}, {"SubGroups", __pyx_getprop_13berylsettings_5Group_SubGroups, 0, 0, 0}, {0, 0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_Group = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 0, /*nb_remainder*/ 0, /*nb_divmod*/ 0, /*nb_power*/ 0, /*nb_negative*/ 0, /*nb_positive*/ 0, /*nb_absolute*/ 0, /*nb_nonzero*/ 0, /*nb_invert*/ 0, /*nb_lshift*/ 0, /*nb_rshift*/ 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 0, /*nb_inplace_remainder*/ 0, /*nb_inplace_power*/ 0, /*nb_inplace_lshift*/ 0, /*nb_inplace_rshift*/ 0, /*nb_inplace_and*/ 0, /*nb_inplace_xor*/ 0, /*nb_inplace_or*/ 0, /*nb_floor_divide*/ 0, /*nb_true_divide*/ 0, /*nb_inplace_floor_divide*/ 0, /*nb_inplace_true_divide*/ }; static PySequenceMethods __pyx_tp_as_sequence_Group = { 0, /*sq_length*/ 0, /*sq_concat*/ 0, /*sq_repeat*/ 0, /*sq_item*/ 0, /*sq_slice*/ 0, /*sq_ass_item*/ 0, /*sq_ass_slice*/ 0, /*sq_contains*/ 0, /*sq_inplace_concat*/ 0, /*sq_inplace_repeat*/ }; static PyMappingMethods __pyx_tp_as_mapping_Group = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_Group = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_13berylsettings_Group = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "berylsettings.Group", /*tp_name*/ sizeof(struct __pyx_obj_13berylsettings_Group), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_13berylsettings_Group, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ &__pyx_tp_as_number_Group, /*tp_as_number*/ &__pyx_tp_as_sequence_Group, /*tp_as_sequence*/ &__pyx_tp_as_mapping_Group, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ __pyx_f_13berylsettings_5Group___str__, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_Group, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_13berylsettings_Group, /*tp_traverse*/ __pyx_tp_clear_13berylsettings_Group, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_13berylsettings_Group, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_13berylsettings_Group, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_13berylsettings_Group, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ }; static PyObject *__pyx_tp_new_13berylsettings_SubGroup(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o = (*t->tp_alloc)(t, 0); struct __pyx_obj_13berylsettings_SubGroup *p = (struct __pyx_obj_13berylsettings_SubGroup *)o; p->pGroup = ((struct __pyx_obj_13berylsettings_Group *)Py_None); Py_INCREF(Py_None); p->pPlugin = ((struct __pyx_obj_13berylsettings_Plugin *)Py_None); Py_INCREF(Py_None); if (__pyx_f_13berylsettings_8SubGroup___new__(o, a, k) < 0) { Py_DECREF(o); o = 0; } return o; } static void __pyx_tp_dealloc_13berylsettings_SubGroup(PyObject *o) { struct __pyx_obj_13berylsettings_SubGroup *p = (struct __pyx_obj_13berylsettings_SubGroup *)o; Py_XDECREF(((PyObject *)p->pGroup)); Py_XDECREF(((PyObject *)p->pPlugin)); (*o->ob_type->tp_free)(o); } static int __pyx_tp_traverse_13berylsettings_SubGroup(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_13berylsettings_SubGroup *p = (struct __pyx_obj_13berylsettings_SubGroup *)o; if (p->pGroup) { e = (*v)(((PyObject*)p->pGroup), a); if (e) return e; } if (p->pPlugin) { e = (*v)(((PyObject*)p->pPlugin), a); if (e) return e; } return 0; } static int __pyx_tp_clear_13berylsettings_SubGroup(PyObject *o) { struct __pyx_obj_13berylsettings_SubGroup *p = (struct __pyx_obj_13berylsettings_SubGroup *)o; Py_XDECREF(((PyObject *)p->pGroup)); p->pGroup = ((struct __pyx_obj_13berylsettings_Group *)Py_None); Py_INCREF(Py_None); Py_XDECREF(((PyObject *)p->pPlugin)); p->pPlugin = ((struct __pyx_obj_13berylsettings_Plugin *)Py_None); Py_INCREF(Py_None); return 0; } static PyObject *__pyx_getprop_13berylsettings_8SubGroup_Name(PyObject *o, void *x) { return __pyx_f_13berylsettings_8SubGroup_4Name___get__(o); } static PyObject *__pyx_getprop_13berylsettings_8SubGroup_Desc(PyObject *o, void *x) { return __pyx_f_13berylsettings_8SubGroup_4Desc___get__(o); } static PyObject *__pyx_getprop_13berylsettings_8SubGroup_Settings(PyObject *o, void *x) { return __pyx_f_13berylsettings_8SubGroup_8Settings___get__(o); } static struct PyMethodDef __pyx_methods_13berylsettings_SubGroup[] = { {"Setting", (PyCFunction)__pyx_f_13berylsettings_8SubGroup_Setting, METH_VARARGS|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_13berylsettings_SubGroup[] = { {"Name", __pyx_getprop_13berylsettings_8SubGroup_Name, 0, 0, 0}, {"Desc", __pyx_getprop_13berylsettings_8SubGroup_Desc, 0, 0, 0}, {"Settings", __pyx_getprop_13berylsettings_8SubGroup_Settings, 0, 0, 0}, {0, 0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_SubGroup = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 0, /*nb_remainder*/ 0, /*nb_divmod*/ 0, /*nb_power*/ 0, /*nb_negative*/ 0, /*nb_positive*/ 0, /*nb_absolute*/ 0, /*nb_nonzero*/ 0, /*nb_invert*/ 0, /*nb_lshift*/ 0, /*nb_rshift*/ 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 0, /*nb_inplace_remainder*/ 0, /*nb_inplace_power*/ 0, /*nb_inplace_lshift*/ 0, /*nb_inplace_rshift*/ 0, /*nb_inplace_and*/ 0, /*nb_inplace_xor*/ 0, /*nb_inplace_or*/ 0, /*nb_floor_divide*/ 0, /*nb_true_divide*/ 0, /*nb_inplace_floor_divide*/ 0, /*nb_inplace_true_divide*/ }; static PySequenceMethods __pyx_tp_as_sequence_SubGroup = { 0, /*sq_length*/ 0, /*sq_concat*/ 0, /*sq_repeat*/ 0, /*sq_item*/ 0, /*sq_slice*/ 0, /*sq_ass_item*/ 0, /*sq_ass_slice*/ 0, /*sq_contains*/ 0, /*sq_inplace_concat*/ 0, /*sq_inplace_repeat*/ }; static PyMappingMethods __pyx_tp_as_mapping_SubGroup = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_SubGroup = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_13berylsettings_SubGroup = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "berylsettings.SubGroup", /*tp_name*/ sizeof(struct __pyx_obj_13berylsettings_SubGroup), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_13berylsettings_SubGroup, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ &__pyx_tp_as_number_SubGroup, /*tp_as_number*/ &__pyx_tp_as_sequence_SubGroup, /*tp_as_sequence*/ &__pyx_tp_as_mapping_SubGroup, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ __pyx_f_13berylsettings_8SubGroup___str__, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_SubGroup, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_13berylsettings_SubGroup, /*tp_traverse*/ __pyx_tp_clear_13berylsettings_SubGroup, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_13berylsettings_SubGroup, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_13berylsettings_SubGroup, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_13berylsettings_SubGroup, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ }; static PyObject *__pyx_tp_new_13berylsettings_Setting(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o = (*t->tp_alloc)(t, 0); struct __pyx_obj_13berylsettings_Setting *p = (struct __pyx_obj_13berylsettings_Setting *)o; p->pPlugin = ((struct __pyx_obj_13berylsettings_Plugin *)Py_None); Py_INCREF(Py_None); if (__pyx_f_13berylsettings_7Setting___new__(o, a, k) < 0) { Py_DECREF(o); o = 0; } return o; } static void __pyx_tp_dealloc_13berylsettings_Setting(PyObject *o) { struct __pyx_obj_13berylsettings_Setting *p = (struct __pyx_obj_13berylsettings_Setting *)o; Py_XDECREF(((PyObject *)p->pPlugin)); (*o->ob_type->tp_free)(o); } static int __pyx_tp_traverse_13berylsettings_Setting(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_13berylsettings_Setting *p = (struct __pyx_obj_13berylsettings_Setting *)o; if (p->pPlugin) { e = (*v)(((PyObject*)p->pPlugin), a); if (e) return e; } return 0; } static int __pyx_tp_clear_13berylsettings_Setting(PyObject *o) { struct __pyx_obj_13berylsettings_Setting *p = (struct __pyx_obj_13berylsettings_Setting *)o; Py_XDECREF(((PyObject *)p->pPlugin)); p->pPlugin = ((struct __pyx_obj_13berylsettings_Plugin *)Py_None); Py_INCREF(Py_None); return 0; } static PyObject *__pyx_getprop_13berylsettings_7Setting_Plugin(PyObject *o, void *x) { return __pyx_f_13berylsettings_7Setting_6Plugin___get__(o); } static PyObject *__pyx_getprop_13berylsettings_7Setting_Name(PyObject *o, void *x) { return __pyx_f_13berylsettings_7Setting_4Name___get__(o); } static PyObject *__pyx_getprop_13berylsettings_7Setting_ShortDesc(PyObject *o, void *x) { return __pyx_f_13berylsettings_7Setting_9ShortDesc___get__(o); } static PyObject *__pyx_getprop_13berylsettings_7Setting_LongDesc(PyObject *o, void *x) { return __pyx_f_13berylsettings_7Setting_8LongDesc___get__(o); } static PyObject *__pyx_getprop_13berylsettings_7Setting_Group(PyObject *o, void *x) { return __pyx_f_13berylsettings_7Setting_5Group___get__(o); } static PyObject *__pyx_getprop_13berylsettings_7Setting_SubGroup(PyObject *o, void *x) { return __pyx_f_13berylsettings_7Setting_8SubGroup___get__(o); } static PyObject *__pyx_getprop_13berylsettings_7Setting_Advanced(PyObject *o, void *x) { return __pyx_f_13berylsettings_7Setting_8Advanced___get__(o); } static PyObject *__pyx_getprop_13berylsettings_7Setting_Integrated(PyObject *o, void *x) { return __pyx_f_13berylsettings_7Setting_10Integrated___get__(o); } static PyObject *__pyx_getprop_13berylsettings_7Setting_ReadOnly(PyObject *o, void *x) { return __pyx_f_13berylsettings_7Setting_8ReadOnly___get__(o); } static PyObject *__pyx_getprop_13berylsettings_7Setting_Restrictions(PyObject *o, void *x) { return __pyx_f_13berylsettings_7Setting_12Restrictions___get__(o); } static PyObject *__pyx_getprop_13berylsettings_7Setting_Type(PyObject *o, void *x) { return __pyx_f_13berylsettings_7Setting_4Type___get__(o); } static PyObject *__pyx_getprop_13berylsettings_7Setting_Value(PyObject *o, void *x) { return __pyx_f_13berylsettings_7Setting_5Value___get__(o); } static int __pyx_setprop_13berylsettings_7Setting_Value(PyObject *o, PyObject *v, void *x) { if (v) { return __pyx_f_13berylsettings_7Setting_5Value___set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static struct PyMethodDef __pyx_methods_13berylsettings_Setting[] = { {"ResetToDefault", (PyCFunction)__pyx_f_13berylsettings_7Setting_ResetToDefault, METH_VARARGS|METH_KEYWORDS, 0}, {"HasHint", (PyCFunction)__pyx_f_13berylsettings_7Setting_HasHint, METH_VARARGS|METH_KEYWORDS, 0}, {"Conflicts", (PyCFunction)__pyx_f_13berylsettings_7Setting_Conflicts, METH_VARARGS|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_13berylsettings_Setting[] = { {"Plugin", __pyx_getprop_13berylsettings_7Setting_Plugin, 0, 0, 0}, {"Name", __pyx_getprop_13berylsettings_7Setting_Name, 0, 0, 0}, {"ShortDesc", __pyx_getprop_13berylsettings_7Setting_ShortDesc, 0, 0, 0}, {"LongDesc", __pyx_getprop_13berylsettings_7Setting_LongDesc, 0, 0, 0}, {"Group", __pyx_getprop_13berylsettings_7Setting_Group, 0, 0, 0}, {"SubGroup", __pyx_getprop_13berylsettings_7Setting_SubGroup, 0, 0, 0}, {"Advanced", __pyx_getprop_13berylsettings_7Setting_Advanced, 0, 0, 0}, {"Integrated", __pyx_getprop_13berylsettings_7Setting_Integrated, 0, 0, 0}, {"ReadOnly", __pyx_getprop_13berylsettings_7Setting_ReadOnly, 0, 0, 0}, {"Restrictions", __pyx_getprop_13berylsettings_7Setting_Restrictions, 0, 0, 0}, {"Type", __pyx_getprop_13berylsettings_7Setting_Type, 0, 0, 0}, {"Value", __pyx_getprop_13berylsettings_7Setting_Value, __pyx_setprop_13berylsettings_7Setting_Value, 0, 0}, {0, 0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_Setting = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 0, /*nb_remainder*/ 0, /*nb_divmod*/ 0, /*nb_power*/ 0, /*nb_negative*/ 0, /*nb_positive*/ 0, /*nb_absolute*/ 0, /*nb_nonzero*/ 0, /*nb_invert*/ 0, /*nb_lshift*/ 0, /*nb_rshift*/ 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 0, /*nb_inplace_remainder*/ 0, /*nb_inplace_power*/ 0, /*nb_inplace_lshift*/ 0, /*nb_inplace_rshift*/ 0, /*nb_inplace_and*/ 0, /*nb_inplace_xor*/ 0, /*nb_inplace_or*/ 0, /*nb_floor_divide*/ 0, /*nb_true_divide*/ 0, /*nb_inplace_floor_divide*/ 0, /*nb_inplace_true_divide*/ }; static PySequenceMethods __pyx_tp_as_sequence_Setting = { 0, /*sq_length*/ 0, /*sq_concat*/ 0, /*sq_repeat*/ 0, /*sq_item*/ 0, /*sq_slice*/ 0, /*sq_ass_item*/ 0, /*sq_ass_slice*/ 0, /*sq_contains*/ 0, /*sq_inplace_concat*/ 0, /*sq_inplace_repeat*/ }; static PyMappingMethods __pyx_tp_as_mapping_Setting = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_Setting = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_13berylsettings_Setting = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "berylsettings.Setting", /*tp_name*/ sizeof(struct __pyx_obj_13berylsettings_Setting), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_13berylsettings_Setting, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ &__pyx_tp_as_number_Setting, /*tp_as_number*/ &__pyx_tp_as_sequence_Setting, /*tp_as_sequence*/ &__pyx_tp_as_mapping_Setting, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ __pyx_f_13berylsettings_7Setting___str__, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_Setting, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_13berylsettings_Setting, /*tp_traverse*/ __pyx_tp_clear_13berylsettings_Setting, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_13berylsettings_Setting, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_13berylsettings_Setting, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_13berylsettings_Setting, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ }; static struct PyMethodDef __pyx_methods[] = { {"keytostring", (PyCFunction)__pyx_f_13berylsettings_keytostring, METH_VARARGS|METH_KEYWORDS, 0}, {"modstostring", (PyCFunction)__pyx_f_13berylsettings_modstostring, METH_VARARGS|METH_KEYWORDS, 0}, {"buttontostring", (PyCFunction)__pyx_f_13berylsettings_buttontostring, METH_VARARGS|METH_KEYWORDS, 0}, {"edgelisttomask", (PyCFunction)__pyx_f_13berylsettings_edgelisttomask, METH_VARARGS|METH_KEYWORDS, 0}, {"edgetolist", (PyCFunction)__pyx_f_13berylsettings_edgetolist, METH_VARARGS|METH_KEYWORDS, 0}, {"send_reload", (PyCFunction)__pyx_f_13berylsettings_send_reload, METH_VARARGS|METH_KEYWORDS, 0}, {"Backends", (PyCFunction)__pyx_f_13berylsettings_Backends, METH_VARARGS|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static void __pyx_init_filenames(void); /*proto*/ PyMODINIT_FUNC initberylsettings(void); /*proto*/ PyMODINIT_FUNC initberylsettings(void) { PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; PyObject *__pyx_4 = 0; __pyx_init_filenames(); __pyx_m = Py_InitModule4("berylsettings", __pyx_methods, 0, 0, PYTHON_API_VERSION); if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 42; goto __pyx_L1;}; __pyx_b = PyImport_AddModule("__builtin__"); if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 42; goto __pyx_L1;}; if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 42; goto __pyx_L1;}; if (__Pyx_InternStrings(__pyx_intern_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 42; goto __pyx_L1;}; if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 42; goto __pyx_L1;}; if (PyType_Ready(&__pyx_type_13berylsettings_Backend) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 417; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "Backend", (PyObject *)&__pyx_type_13berylsettings_Backend) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 417; goto __pyx_L1;} __pyx_ptype_13berylsettings_Backend = &__pyx_type_13berylsettings_Backend; if (PyType_Ready(&__pyx_type_13berylsettings_Context) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "Context", (PyObject *)&__pyx_type_13berylsettings_Context) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; goto __pyx_L1;} __pyx_ptype_13berylsettings_Context = &__pyx_type_13berylsettings_Context; __pyx_type_13berylsettings_Category.tp_free = _PyObject_GC_Del; if (PyType_Ready(&__pyx_type_13berylsettings_Category) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 621; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "Category", (PyObject *)&__pyx_type_13berylsettings_Category) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 621; goto __pyx_L1;} __pyx_ptype_13berylsettings_Category = &__pyx_type_13berylsettings_Category; __pyx_type_13berylsettings_Plugin.tp_free = _PyObject_GC_Del; if (PyType_Ready(&__pyx_type_13berylsettings_Plugin) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 655; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "Plugin", (PyObject *)&__pyx_type_13berylsettings_Plugin) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 655; goto __pyx_L1;} __pyx_ptype_13berylsettings_Plugin = &__pyx_type_13berylsettings_Plugin; __pyx_type_13berylsettings_Group.tp_free = _PyObject_GC_Del; if (PyType_Ready(&__pyx_type_13berylsettings_Group) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 764; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "Group", (PyObject *)&__pyx_type_13berylsettings_Group) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 764; goto __pyx_L1;} __pyx_ptype_13berylsettings_Group = &__pyx_type_13berylsettings_Group; __pyx_type_13berylsettings_SubGroup.tp_free = _PyObject_GC_Del; if (PyType_Ready(&__pyx_type_13berylsettings_SubGroup) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 808; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "SubGroup", (PyObject *)&__pyx_type_13berylsettings_SubGroup) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 808; goto __pyx_L1;} __pyx_ptype_13berylsettings_SubGroup = &__pyx_type_13berylsettings_SubGroup; __pyx_type_13berylsettings_Setting.tp_free = _PyObject_GC_Del; if (PyType_Ready(&__pyx_type_13berylsettings_Setting) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 855; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "Setting", (PyObject *)&__pyx_type_13berylsettings_Setting) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 855; goto __pyx_L1;} __pyx_ptype_13berylsettings_Setting = &__pyx_type_13berylsettings_Setting; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":365 */ __pyx_1 = PyDict_New(); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; goto __pyx_L1;} __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_Exception); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; goto __pyx_L1;} __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_3, 0, __pyx_2); __pyx_2 = 0; __pyx_2 = __Pyx_CreateClass(__pyx_3, __pyx_1, __pyx_n_PluginSetEnabledException, "berylsettings"); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":366 */ __pyx_3 = PyCFunction_New(&__pyx_mdef_13berylsettings_25PluginSetEnabledException___init__, 0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 366; goto __pyx_L1;} __pyx_4 = PyMethod_New(__pyx_3, 0, __pyx_2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 366; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; if (PyObject_SetAttr(__pyx_2, __pyx_n___init__, __pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 366; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":369 */ __pyx_3 = PyCFunction_New(&__pyx_mdef_13berylsettings_25PluginSetEnabledException___str__, 0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 369; goto __pyx_L1;} __pyx_4 = PyMethod_New(__pyx_3, 0, __pyx_2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 369; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; if (PyObject_SetAttr(__pyx_2, __pyx_n___str__, __pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 369; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_PluginSetEnabledException, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_1); __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":372 */ __pyx_3 = PyDict_New(); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 372; goto __pyx_L1;} __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_PluginSetEnabledException); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 372; goto __pyx_L1;} __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 372; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_1, 0, __pyx_4); __pyx_4 = 0; __pyx_2 = __Pyx_CreateClass(__pyx_1, __pyx_3, __pyx_n_PluginEnableException, "berylsettings"); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 372; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":373 */ __pyx_4 = PyCFunction_New(&__pyx_mdef_13berylsettings_21PluginEnableException___init__, 0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 373; goto __pyx_L1;} __pyx_1 = PyMethod_New(__pyx_4, 0, __pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 373; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; if (PyObject_SetAttr(__pyx_2, __pyx_n___init__, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 373; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_PluginEnableException, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 372; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":376 */ __pyx_4 = PyDict_New(); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 376; goto __pyx_L1;} __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_PluginSetEnabledException); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 376; goto __pyx_L1;} __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 376; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_3, 0, __pyx_1); __pyx_1 = 0; __pyx_2 = __Pyx_CreateClass(__pyx_3, __pyx_4, __pyx_n_PluginDisableException, "berylsettings"); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 376; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":377 */ __pyx_1 = PyCFunction_New(&__pyx_mdef_13berylsettings_22PluginDisableException___init__, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 377; goto __pyx_L1;} __pyx_3 = PyMethod_New(__pyx_1, 0, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 377; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; if (PyObject_SetAttr(__pyx_2, __pyx_n___init__, __pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 377; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_PluginDisableException, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 376; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_4); __pyx_4 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":380 */ __pyx_1 = PyDict_New(); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; goto __pyx_L1;} __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_Exception); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; goto __pyx_L1;} __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_4, 0, __pyx_3); __pyx_3 = 0; __pyx_2 = __Pyx_CreateClass(__pyx_4, __pyx_1, __pyx_n_NotFoundException, "berylsettings"); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":381 */ __pyx_3 = PyCFunction_New(&__pyx_mdef_13berylsettings_17NotFoundException___init__, 0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 381; goto __pyx_L1;} __pyx_4 = PyMethod_New(__pyx_3, 0, __pyx_2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 381; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; if (PyObject_SetAttr(__pyx_2, __pyx_n___init__, __pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 381; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":385 */ __pyx_3 = PyCFunction_New(&__pyx_mdef_13berylsettings_17NotFoundException___str__, 0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 385; goto __pyx_L1;} __pyx_4 = PyMethod_New(__pyx_3, 0, __pyx_2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 385; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; if (PyObject_SetAttr(__pyx_2, __pyx_n___str__, __pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 385; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_NotFoundException, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_1); __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":388 */ __pyx_3 = PyDict_New(); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 388; goto __pyx_L1;} __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_NotFoundException); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 388; goto __pyx_L1;} __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 388; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_1, 0, __pyx_4); __pyx_4 = 0; __pyx_2 = __Pyx_CreateClass(__pyx_1, __pyx_3, __pyx_n_SettingNotFoundException, "berylsettings"); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 388; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":389 */ __pyx_4 = PyCFunction_New(&__pyx_mdef_13berylsettings_24SettingNotFoundException___init__, 0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; goto __pyx_L1;} __pyx_1 = PyMethod_New(__pyx_4, 0, __pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; if (PyObject_SetAttr(__pyx_2, __pyx_n___init__, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_SettingNotFoundException, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 388; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":392 */ __pyx_4 = PyDict_New(); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 392; goto __pyx_L1;} __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_NotFoundException); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 392; goto __pyx_L1;} __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 392; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_3, 0, __pyx_1); __pyx_1 = 0; __pyx_2 = __Pyx_CreateClass(__pyx_3, __pyx_4, __pyx_n_GroupNotFoundException, "berylsettings"); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 392; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":393 */ __pyx_1 = PyCFunction_New(&__pyx_mdef_13berylsettings_22GroupNotFoundException___init__, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; goto __pyx_L1;} __pyx_3 = PyMethod_New(__pyx_1, 0, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; if (PyObject_SetAttr(__pyx_2, __pyx_n___init__, __pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_GroupNotFoundException, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 392; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_4); __pyx_4 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":396 */ __pyx_1 = PyDict_New(); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 396; goto __pyx_L1;} __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n_NotFoundException); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 396; goto __pyx_L1;} __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 396; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_4, 0, __pyx_3); __pyx_3 = 0; __pyx_2 = __Pyx_CreateClass(__pyx_4, __pyx_1, __pyx_n_PluginNotFoundException, "berylsettings"); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 396; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":397 */ __pyx_3 = PyCFunction_New(&__pyx_mdef_13berylsettings_23PluginNotFoundException___init__, 0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; goto __pyx_L1;} __pyx_4 = PyMethod_New(__pyx_3, 0, __pyx_2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; if (PyObject_SetAttr(__pyx_2, __pyx_n___init__, __pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_PluginNotFoundException, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 396; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_1); __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":400 */ __pyx_3 = PyDict_New(); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; goto __pyx_L1;} __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_NotFoundException); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; goto __pyx_L1;} __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_1, 0, __pyx_4); __pyx_4 = 0; __pyx_2 = __Pyx_CreateClass(__pyx_1, __pyx_3, __pyx_n_SubGroupNotFoundException, "berylsettings"); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":401 */ __pyx_4 = PyCFunction_New(&__pyx_mdef_13berylsettings_25SubGroupNotFoundException___init__, 0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 401; goto __pyx_L1;} __pyx_1 = PyMethod_New(__pyx_4, 0, __pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 401; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; if (PyObject_SetAttr(__pyx_2, __pyx_n___init__, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 401; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_SubGroupNotFoundException, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":559 */ __pyx_4 = PyInt_FromLong(__pyx_e_13berylsettings_BERYL_SETTING_CONFLICT_TYPE_ANY); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; goto __pyx_L1;} __pyx_k9 = __pyx_4; __pyx_4 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":592 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 592; goto __pyx_L1;} __pyx_k10 = __pyx_1; __pyx_1 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":922 */ __pyx_3 = PyInt_FromLong(__pyx_e_13berylsettings_BERYL_SETTING_CONFLICT_TYPE_ANY); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 922; goto __pyx_L1;} __pyx_k11 = __pyx_3; __pyx_3 = 0; /* "/home/ixce/beryl/beryl-source/tags/release-0.2.1/beryl-settings-bindings/python/berylsettings.pyx":1025 */ return; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); __Pyx_AddTraceback("berylsettings"); } static char *__pyx_filenames[] = { "berylsettings.pyx", }; /* Runtime support code */ static void __pyx_init_filenames(void) { __pyx_f = __pyx_filenames; } static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed, char *name) { if (!type) { PyErr_Format(PyExc_SystemError, "Missing type object"); return 0; } if ((none_allowed && obj == Py_None) || PyObject_TypeCheck(obj, type)) return 1; PyErr_Format(PyExc_TypeError, "Argument '%s' has incorrect type (expected %s, got %s)", name, type->tp_name, obj->ob_type->tp_name); return 0; } static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name) { PyObject *result; result = PyObject_GetAttr(dict, name); if (!result) PyErr_SetObject(PyExc_NameError, name); return result; } static PyObject *__Pyx_CreateClass( PyObject *bases, PyObject *dict, PyObject *name, char *modname) { PyObject *py_modname; PyObject *result = 0; py_modname = PyString_FromString(modname); if (!py_modname) goto bad; if (PyDict_SetItemString(dict, "__module__", py_modname) < 0) goto bad; result = PyClass_New(bases, dict, name); bad: Py_XDECREF(py_modname); return result; } static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb) { Py_XINCREF(type); Py_XINCREF(value); Py_XINCREF(tb); /* First, check the traceback argument, replacing None with NULL. */ if (tb == Py_None) { Py_DECREF(tb); tb = 0; } else if (tb != NULL && !PyTraceBack_Check(tb)) { PyErr_SetString(PyExc_TypeError, "raise: arg 3 must be a traceback or None"); goto raise_error; } /* Next, replace a missing value with None */ if (value == NULL) { value = Py_None; Py_INCREF(value); } /* Next, repeatedly, replace a tuple exception with its first item */ while (PyTuple_Check(type) && PyTuple_Size(type) > 0) { PyObject *tmp = type; type = PyTuple_GET_ITEM(type, 0); Py_INCREF(type); Py_DECREF(tmp); } if (PyString_Check(type)) ; else if (PyType_Check(type) || PyClass_Check(type)) ; /*PyErr_NormalizeException(&type, &value, &tb);*/ else if (PyInstance_Check(type)) { /* Raising an instance. The value should be a dummy. */ if (value != Py_None) { PyErr_SetString(PyExc_TypeError, "instance exception may not have a separate value"); goto raise_error; } else { /* Normalize to raise , */ Py_DECREF(value); value = type; type = (PyObject*) ((PyInstanceObject*)type)->in_class; Py_INCREF(type); } } else { /* Not something you can raise. You get an exception anyway, just not what you specified :-) */ PyErr_Format(PyExc_TypeError, "exceptions must be strings, classes, or " "instances, not %s", type->ob_type->tp_name); goto raise_error; } PyErr_Restore(type, value, tb); return; raise_error: Py_XDECREF(value); Py_XDECREF(type); Py_XDECREF(tb); return; } static PyObject *__Pyx_GetExcValue(void) { PyObject *type = 0, *value = 0, *tb = 0; PyObject *result = 0; PyThreadState *tstate = PyThreadState_Get(); PyErr_Fetch(&type, &value, &tb); PyErr_NormalizeException(&type, &value, &tb); if (PyErr_Occurred()) goto bad; if (!value) { value = Py_None; Py_INCREF(value); } Py_XDECREF(tstate->exc_type); Py_XDECREF(tstate->exc_value); Py_XDECREF(tstate->exc_traceback); tstate->exc_type = type; tstate->exc_value = value; tstate->exc_traceback = tb; result = value; Py_XINCREF(result); type = 0; value = 0; tb = 0; bad: Py_XDECREF(type); Py_XDECREF(value); Py_XDECREF(tb); return result; } static int __Pyx_InternStrings(__Pyx_InternTabEntry *t) { while (t->p) { *t->p = PyString_InternFromString(t->s); if (!*t->p) return -1; ++t; } return 0; } static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) { while (t->p) { *t->p = PyString_FromStringAndSize(t->s, t->n - 1); if (!*t->p) return -1; ++t; } return 0; } #include "compile.h" #include "frameobject.h" #include "traceback.h" static void __Pyx_AddTraceback(char *funcname) { PyObject *py_srcfile = 0; PyObject *py_funcname = 0; PyObject *py_globals = 0; PyObject *empty_tuple = 0; PyObject *empty_string = 0; PyCodeObject *py_code = 0; PyFrameObject *py_frame = 0; py_srcfile = PyString_FromString(__pyx_filename); if (!py_srcfile) goto bad; py_funcname = PyString_FromString(funcname); if (!py_funcname) goto bad; py_globals = PyModule_GetDict(__pyx_m); if (!py_globals) goto bad; empty_tuple = PyTuple_New(0); if (!empty_tuple) goto bad; empty_string = PyString_FromString(""); if (!empty_string) goto bad; py_code = PyCode_New( 0, /*int argcount,*/ 0, /*int nlocals,*/ 0, /*int stacksize,*/ 0, /*int flags,*/ empty_string, /*PyObject *code,*/ empty_tuple, /*PyObject *consts,*/ empty_tuple, /*PyObject *names,*/ empty_tuple, /*PyObject *varnames,*/ empty_tuple, /*PyObject *freevars,*/ empty_tuple, /*PyObject *cellvars,*/ py_srcfile, /*PyObject *filename,*/ py_funcname, /*PyObject *name,*/ __pyx_lineno, /*int firstlineno,*/ empty_string /*PyObject *lnotab*/ ); if (!py_code) goto bad; py_frame = PyFrame_New( PyThreadState_Get(), /*PyThreadState *tstate,*/ py_code, /*PyCodeObject *code,*/ py_globals, /*PyObject *globals,*/ 0 /*PyObject *locals*/ ); if (!py_frame) goto bad; py_frame->f_lineno = __pyx_lineno; PyTraceBack_Here(py_frame); bad: Py_XDECREF(py_srcfile); Py_XDECREF(py_funcname); Py_XDECREF(empty_tuple); Py_XDECREF(empty_string); Py_XDECREF(py_code); Py_XDECREF(py_frame); }