diff --git a/deluge/plugins/blocklist/blocklist/webui.py b/deluge/plugins/blocklist/blocklist/webui.py index 54069a193..e14b155bf 100644 --- a/deluge/plugins/blocklist/blocklist/webui.py +++ b/deluge/plugins/blocklist/blocklist/webui.py @@ -116,7 +116,7 @@ class WebUI(ui.UI): config_page_manager.register('plugins','blocklist',BlockListCfgForm) def disable(self): - config_page_manager.unregister('blocklist') + config_page_manager.deregister('blocklist') diff --git a/deluge/plugins/label/label/webui/__init__.py b/deluge/plugins/label/label/webui/__init__.py index c9ec535c2..18fe85b0e 100644 --- a/deluge/plugins/label/label/webui/__init__.py +++ b/deluge/plugins/label/label/webui/__init__.py @@ -53,8 +53,8 @@ class WebUI(ui.UI): config.register() def disable(self): - pages.unregister() - config.unregister() + pages.deregister() + config.deregister() diff --git a/deluge/plugins/label/label/webui/config.py b/deluge/plugins/label/label/webui/config.py index 71ec84d8b..0d2360f5a 100644 --- a/deluge/plugins/label/label/webui/config.py +++ b/deluge/plugins/label/label/webui/config.py @@ -134,10 +134,10 @@ def register(): api.config_page_manager.register('label','label_update',LabelUpdateCfgForm) api.config_page_manager.register('label','label_add',LabelAddCfgForm) -def unregister(): - api.config_page_manager.unregister('label_general') - api.config_page_manager.unregister('label_update') - api.config_page_manager.unregister('label_add') +def deregister(): + api.config_page_manager.deregister('label_general') + api.config_page_manager.deregister('label_update') + api.config_page_manager.deregister('label_add') diff --git a/deluge/plugins/label/label/webui/pages.py b/deluge/plugins/label/label/webui/pages.py index e1e585e7d..03ac8ac66 100644 --- a/deluge/plugins/label/label/webui/pages.py +++ b/deluge/plugins/label/label/webui/pages.py @@ -62,10 +62,10 @@ def register(): api.menu_manager.register_toolbar_item("label",_("Label"), "label.png" ,2, "GET","/torrent/label/", True) -def unregister(): - api.render.unregister_template_path(template_dir) - api.page_manager.unregister_page('/torrent/label/(.*)') - api.menu_manager.unregister_toolbar_item("label") +def deregister(): + api.render.deregister_template_path(template_dir) + api.page_manager.deregister_page('/torrent/label/(.*)') + api.menu_manager.deregister_toolbar_item("label") diff --git a/deluge/ui/webui/components.py b/deluge/ui/webui/components.py index eac8e6076..68119a4cf 100644 --- a/deluge/ui/webui/components.py +++ b/deluge/ui/webui/components.py @@ -78,7 +78,7 @@ class MenuManager(component.Component): def register_toolbar_item(self, id, title, image, flag, method, url, important): self.toolbar_items.append((id, title, image, flag, method, url, important)) - def unregister_toolbar_item(self, item_id): + def deregister_toolbar_item(self, item_id): for (i, toolbar) in enumerate(admin_pages): if toolbar[0] == item_id: del self.toolbar_items[i] @@ -87,7 +87,7 @@ class MenuManager(component.Component): def register_admin_page(self, id, title, url): self.admin_pages.append((id, title, url)) - def unregister_admin_page(page_id): + def deregister_admin_page(page_id): for (i, (id, title, url)) in list(enumerate(admin_pages)): if id == page_id: del self.admin_pages[i] @@ -97,7 +97,7 @@ class MenuManager(component.Component): def register_detail_tab(self, id, title, page): self.detail_tabs.append((id, title, page)) - def unregister_detail_tab(self, tab_id): + def deregister_detail_tab(self, tab_id): for (i, (id, title, tab)) in list(enumerate(detail_tabs)): if id == tab_id: del self.detail_tabs[i] @@ -122,7 +122,7 @@ class PageManager(component.Component): self.urls.append(klass.__name__) self.page_classes[klass.__name__] = klass - def unregister_page(self, url): + def deregister_page(self, url): raise NotImplemenetedError() #self.page_classes[klass.__name__] = None @@ -174,7 +174,7 @@ class ConfigPageManager(component.Component): form.group = group self.blocks[name] = form - def unregister(self, name): + def deregister(self, name): del self.blocks[name] class PluginApi(component.Component): diff --git a/deluge/ui/webui/render.py b/deluge/ui/webui/render.py index d0ec65a7d..a119bd36a 100644 --- a/deluge/ui/webui/render.py +++ b/deluge/ui/webui/render.py @@ -73,7 +73,7 @@ class subclassed_render(object): self.plugin_renderers.append(template.render(path , cache=False)) @logcall - def unregister_template_path(self, path): + def deregister_template_path(self, path): for i, renderer in list(ennumerate(self.plugin_renderers)): if renderer.loc == path: del self.plugin_renderers[i]