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)
|
self.page_classes.update(class_list)
|
||||||
|
|
||||||
def register_page(self, url, klass):
|
def register_page(self, url, klass):
|
||||||
|
name = klass.__module__ + "." + klass.__name__
|
||||||
self.urls.append(url)
|
self.urls.append(url)
|
||||||
self.urls.append(klass.__name__)
|
self.urls.append(name)
|
||||||
self.page_classes[klass.__name__] = klass
|
self.page_classes[name] = klass
|
||||||
|
|
||||||
def deregister_page(self, url):
|
def deregister_page(self, url):
|
||||||
raise NotImplemenetedError()
|
raise NotImplemenetedError()
|
||||||
|
|
Loading…
Reference in New Issue