diff --git a/deluge/plugins/label/label/core.py b/deluge/plugins/label/label/core.py index 929a2381b..25edd54fb 100644 --- a/deluge/plugins/label/label/core.py +++ b/deluge/plugins/label/label/core.py @@ -53,14 +53,10 @@ LABEL = "label" CONFIG_DEFAULTS = { "torrent_labels":{}, #torrent_id:label_id "labels":{}, #label_id:{name:value} - "hide_zero_hits":False, - "gtk_alfa":False, - "show_states":True, - "show_trackers":True, - "show_labels":True + "auto_add_trackers":[] } -CORE_OPTIONS = ["hide_zero_hits", "gtk_alfa", "show_states", "show_trackers", "show_labels","auto_add","auto_add_trackers"] +CORE_OPTIONS = ["auto_add_trackers"] OPTIONS_DEFAULTS = { "apply_max":False, @@ -77,8 +73,7 @@ OPTIONS_DEFAULTS = { "apply_move_completed":False, "move_completed":False, "move_completed_path":"", - "auto_add":False, - "auto_add_trackers":[], + "auto_add":False } NO_LABEL = "No Label" @@ -296,11 +291,11 @@ class Core(CorePluginBase): self.config.save() - def export_get_global_options(self): - "see : label_set_global_options" + def export_get_config(self): + "see : label_set_config" return dict ( (k,self.config[k] ) for k in CORE_OPTIONS) - def export_set_global_options(self, options): + def export_set_config(self, options): """global_options:""" for key in CORE_OPTIONS: if options.has_key(key): diff --git a/deluge/plugins/label/label/data/test1.js b/deluge/plugins/label/label/data/label.js similarity index 100% rename from deluge/plugins/label/label/data/test1.js rename to deluge/plugins/label/label/data/label.js diff --git a/deluge/plugins/label/label/gtkui/label_config.py b/deluge/plugins/label/label/gtkui/label_config.py index c41b13a59..06f476f69 100644 --- a/deluge/plugins/label/label/gtkui/label_config.py +++ b/deluge/plugins/label/label/gtkui/label_config.py @@ -68,7 +68,7 @@ class LabelConfig(object): return pkg_resources.resource_filename("label", os.path.join("data", filename)) def load_settings(self ,widget = None , data = None): - aclient.label_get_global_options(self.cb_global_options) + aclient.label_get_config(self.cb_global_options) def cb_global_options(self, options): log.debug("options=%s" % options) @@ -80,5 +80,5 @@ class LabelConfig(object): def on_apply_prefs(self): options = {} #update options dict here. - aclient.label_set_global_options(None, options) + aclient.label_set_config(None, options) diff --git a/deluge/plugins/label/label/template/config.html b/deluge/plugins/label/label/template/config.html new file mode 100644 index 000000000..1dc4f27bf --- /dev/null +++ b/deluge/plugins/label/label/template/config.html @@ -0,0 +1,19 @@ +$def with (labels) +
$label | + ++ |