php-wsgi
Advanced tools
| Metadata-Version: 1.0 | ||
| Name: php-wsgi | ||
| Version: 0.0.10 | ||
| Version: 0.0.11 | ||
| Summary: run php from python | ||
@@ -5,0 +5,0 @@ Home-page: UNKNOWN |
+16
-17
@@ -60,20 +60,19 @@ import os | ||
| self._run = True | ||
| if self._run: | ||
| if self.index_file.endswith('.php'): | ||
| res = self._run_php(environ.get('PATH_INFO')) | ||
| if res: | ||
| content_type = 'text/html' | ||
| status = '200 OK' | ||
| try: | ||
| json.loads(res) | ||
| content_type = 'application/json' | ||
| except: | ||
| pass | ||
| start_response(status,[('content-type',content_type),('User-Agent','Python-php-app')]) | ||
| return res | ||
| else: | ||
| status = '404 ERROR' | ||
| error = 'script_file -> {} not found'.format(self.index_file) | ||
| start_response(status,[]) | ||
| return error | ||
| #if res: | ||
| content_type = 'text/html' | ||
| status = '200 OK' | ||
| try: | ||
| json.loads(res) | ||
| content_type = 'application/json' | ||
| except: | ||
| pass | ||
| start_response(status,[('content-type',content_type),('User-Agent','Python-php-app')]) | ||
| return res | ||
| else: | ||
| status = '404 ERROR' | ||
| error = 'script_file -> {} not found'.format(self.index_file) | ||
| start_response(status,[]) | ||
| raise ServerExecption(error) | ||
| return self.app(environ,start_response) | ||
@@ -80,0 +79,0 @@ |
+1
-1
| Metadata-Version: 1.0 | ||
| Name: php-wsgi | ||
| Version: 0.0.10 | ||
| Version: 0.0.11 | ||
| Summary: run php from python | ||
@@ -5,0 +5,0 @@ Home-page: UNKNOWN |
+1
-1
@@ -7,3 +7,3 @@ from setuptools import setup | ||
| 'author_email':'kyle@level2designs.com', | ||
| 'version':'0.0.10', | ||
| 'version':'0.0.11', | ||
| 'description':'run php from python', | ||
@@ -10,0 +10,0 @@ 'packages':['php_wsgi'], |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
6029
-0.28%