Return controller correctly.

This commit is contained in:
Bob Lantz
2014-11-05 18:41:00 -08:00
parent 1b69ea13f5
commit f51eddef6d
+1 -1
View File
@@ -1432,7 +1432,7 @@ def findController( controllers=DefaultControllers ):
"Return first available controller from list, if any"
for controller in controllers:
if controller.isAvailable():
return controller( name, **kwargs )
return controller
def DefaultController( name, controllers=DefaultControllers, **kwargs ):
"Find a controller that is available and instantiate it"