parent
6c034b88d3
commit
fa97bd7b03
|
@ -205,7 +205,7 @@ class Router(object):
|
|||
module ``some.module``.
|
||||
'''
|
||||
|
||||
if isinstance(controller, basestring):
|
||||
if not hasattr(controller, '__call__'):
|
||||
controller = self._import_controller(controller)
|
||||
self.routes.append((self._compile_template(template),
|
||||
controller, vars))
|
||||
|
|
Loading…
Reference in New Issue