From 83875bf7f25efb28aaf0217ed9cbe0d90269455d Mon Sep 17 00:00:00 2001 From: Martijn Voncken Date: Sat, 8 Nov 2008 10:44:03 +0000 Subject: [PATCH] fix template namespaces --- deluge/ui/webui/components.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deluge/ui/webui/components.py b/deluge/ui/webui/components.py index cd88633cf..488951805 100644 --- a/deluge/ui/webui/components.py +++ b/deluge/ui/webui/components.py @@ -120,9 +120,10 @@ class PageManager(component.Component): self.page_classes.update(class_list) def register_page(self, url, klass): + name = klass.__module__ + "." + klass.__name__ self.urls.append(url) - self.urls.append(klass.__name__) - self.page_classes[klass.__name__] = klass + self.urls.append(name) + self.page_classes[name] = klass def deregister_page(self, url): raise NotImplemenetedError()