├── requirements.txt ├── .gitignore ├── app ├── __init__.py ├── templates │ ├── login.html │ ├── upload.html │ ├── base.html │ └── task.html ├── static │ ├── style.css │ └── a5a4.js ├── a5a4.py └── tasks.py ├── a5a4.wsgi ├── run.py ├── config.py ├── cgi ├── pdfjam.html └── pdfjamcgi.py └── README.md /requirements.txt: -------------------------------------------------------------------------------- 1 | flask>=0.11 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | venv/ 2 | __pycache__/ 3 | tasks/ 4 | config_local.py 5 | *.pyc 6 | *.swp 7 | -------------------------------------------------------------------------------- /app/__init__.py: -------------------------------------------------------------------------------- 1 | from flask import Flask 2 | 3 | app = Flask(__name__) 4 | app.config.from_object('config') 5 | from app import a5a4 6 | -------------------------------------------------------------------------------- /app/templates/login.html: -------------------------------------------------------------------------------- 1 | {% extends 'base.html' %} 2 | {% block content %} 3 |
7 | {% endblock %} 8 | -------------------------------------------------------------------------------- /app/templates/upload.html: -------------------------------------------------------------------------------- 1 | {% extends 'base.html' %} 2 | {% block content %} 3 | {% if error %}{{ error }}
{% endif %} 4 | 7 | {% endblock %} 8 | -------------------------------------------------------------------------------- /a5a4.wsgi: -------------------------------------------------------------------------------- 1 | import os, sys 2 | BASE_DIR = os.path.abspath(os.path.dirname(__file__)) 3 | sys.path.insert(0, BASE_DIR) 4 | python_dir = [n for n in os.listdir(os.path.join(BASE_DIR, 'venv', 'lib')) if n.startswith('python')][0] 5 | VENV_DIR = os.path.join(BASE_DIR, 'venv', 'lib', python_dir, 'site-packages') 6 | if os.path.exists(VENV_DIR): 7 | sys.path.insert(1, VENV_DIR) 8 | 9 | from app import app as application 10 | -------------------------------------------------------------------------------- /app/templates/base.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |{{ error }}
{% endif %} 5 |