Skip to content

Commit 96f6da0

Browse files
authored
Merge pull request #43 from yanokwa/pyxform-2-fix
Update to pyxform 2.0.0, Flask 3.0.0
2 parents fcea408 + d5ce23c commit 96f6da0

File tree

4 files changed

+29
-22
lines changed

4 files changed

+29
-22
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ FLASK_APP=app/main.py:app FLASK_DEBUG=1 flask run
1414
# Run in Docker
1515
```
1616
docker build --tag pyxform-http .
17-
docker run --detach --publish 5000:80 pyxform-http
17+
docker run --detach --publish 5001:80 pyxform-http
1818
```
1919

2020
# Test forms
@@ -23,4 +23,8 @@ docker run --detach --publish 5000:80 pyxform-http
2323
bash test.sh
2424
```
2525

26-
The test script builds, runs, stops, and removes a pyxform-http-tester container
26+
The test script builds, runs, stops, and removes a pyxform-http-tester container
27+
28+
# Notes
29+
30+
* We use port 5001 because 5000 is used by ControlCenter on macOS.

app/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
from tempfile import TemporaryDirectory
55
import os.path
66

7-
from flask import Flask, jsonify, request, escape
7+
from flask import Flask, jsonify, request
8+
from markupsafe import escape
89
from pyxform import xls2xform
910
from uuid import uuid4 as uuid
1011
from urllib.parse import unquote

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Flask==2.3.3
2-
pyxform==1.12.2
1+
Flask==3.0.0
2+
pyxform==2.0.0
33
gunicorn==21.2.0

0 commit comments

Comments
 (0)