mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-27 11:45:44 +00:00
fix template namespaces
This commit is contained in:
parent
05a982fd4b
commit
83875bf7f2
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user