fixed python multiapp loading

This commit is contained in:
roberto@debian32
2011-01-08 12:01:19 +01:00
parent 18080df77a
commit cc0d656b86
+6 -2
View File
@@ -376,10 +376,14 @@ PyObject *uwsgi_uwsgi_loader(void *arg1) {
}
applications = PyDict_GetItemString(uwsgi_dict, "applications");
if (applications) return applications;
if (applications && PyDict_Check(applications)) return applications;
uwsgi_log("QUICK CALLABLE = %s\n", quick_callable);
applications = PyDict_GetItemString(wsgi_dict, "applications");
if (applications) return applications;
if (applications && PyDict_Check(applications)) return applications;
uwsgi_log("QUICK CALLABLE = %s\n", quick_callable);
// quick callable -> thanks gunicorn for the idea
// we have extended the concept a bit...