router:use_module

This commit is contained in:
Martijn Voncken 2008-11-08 14:31:29 +00:00
parent a183e665b0
commit 757f55f38e
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ class PageManager(component.Component):
self.urls += url_list self.urls += url_list
self.page_classes.update(class_list) self.page_classes.update(class_list)
def register_page(self, url, klass, use_module=False): def register_page(self, url, klass, use_module=True):
if use_module: if use_module:
name = klass.__module__ + "." + klass.__name__ name = klass.__module__ + "." + klass.__name__
else: else: