Compare commits
2 Commits
67c096ad5b
...
65803b328d
Author | SHA1 | Date |
---|---|---|
pictuga | 65803b328d | |
pictuga | e6b7c0eb33 |
2
main.py
2
main.py
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
from morss import main, cgi_wrapper as application
|
from morss import main, cgi_standalone_app as application
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -719,6 +719,9 @@ def cgi_encode(environ, start_response, app):
|
||||||
return [x if isinstance(x, bytes) else str(x).encode('utf-8') for x in out]
|
return [x if isinstance(x, bytes) else str(x).encode('utf-8') for x in out]
|
||||||
|
|
||||||
|
|
||||||
|
cgi_standalone_app = cgi_encode(cgi_error_handler(cgi_dispatcher(cgi_file_handler(cgi_app))))
|
||||||
|
|
||||||
|
|
||||||
def cli_app():
|
def cli_app():
|
||||||
options = Options(filterOptions(parseOptions(sys.argv[1:-1])))
|
options = Options(filterOptions(parseOptions(sys.argv[1:-1])))
|
||||||
url = sys.argv[-1]
|
url = sys.argv[-1]
|
||||||
|
|
|
@ -35,8 +35,8 @@
|
||||||
<input type="text" id="url" name="url" placeholder="Feed url (http://example.com/feed.xml)" />
|
<input type="text" id="url" name="url" placeholder="Feed url (http://example.com/feed.xml)" />
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<code>Copyright: pictuga 2013-2014<br/>
|
<code>Copyright: pictuga 2013-2020<br/>
|
||||||
Source code: https://github.com/pictuga/morss</code>
|
Source code: https://git.pictuga.com/pictuga/morss</code>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
form = document.forms[0]
|
form = document.forms[0]
|
||||||
|
|
Loading…
Reference in New Issue