fix template namespaces

This commit is contained in:
Martijn Voncken 2008-11-08 10:44:03 +00:00
parent 05a982fd4b
commit 83875bf7f2
1 changed files with 3 additions and 2 deletions

View File

@ -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()