Return controller correctly.
This commit is contained in:
+1
-1
@@ -1432,7 +1432,7 @@ def findController( controllers=DefaultControllers ):
|
|||||||
"Return first available controller from list, if any"
|
"Return first available controller from list, if any"
|
||||||
for controller in controllers:
|
for controller in controllers:
|
||||||
if controller.isAvailable():
|
if controller.isAvailable():
|
||||||
return controller( name, **kwargs )
|
return controller
|
||||||
|
|
||||||
def DefaultController( name, controllers=DefaultControllers, **kwargs ):
|
def DefaultController( name, controllers=DefaultControllers, **kwargs ):
|
||||||
"Find a controller that is available and instantiate it"
|
"Find a controller that is available and instantiate it"
|
||||||
|
|||||||
Reference in New Issue
Block a user