Comments (3)
I found this problem while trying to use WTForms with this pattern:
choices = [(col, col) for col in await db.table_columns(table)]
class ConfigForm(Form):
template = TextAreaField("Template")
api_token = PasswordField("OpenAI API token")
columns = MultiCheckboxField('Columns', choices=choices)
from datasette.
It should return a MultiParams
:
datasette/datasette/utils/__init__.py
Lines 900 to 917 in 452a587
Change needs to be made before 1.0.
return MultiParams(urllib.parse.parse_qs(body.decode("utf-8")))
Need to remember why I was using keep_blank_values=True
there and check that using MultiParams
doesn't conflict with that reason.
from datasette.
That keep_blank_values=True
is from 0934844
Commit message:
request.post_vars() no longer discards empty values
Relevant test:
datasette/tests/test_internals_request.py
Lines 19 to 27 in 452a587
from datasette.
Related Issues (20)
- ModuleNotFoundError: No module named 'click_default_group
- No suggested facets when a column named 'value' is included HOT 1
- Unreachable exception handlers for `sqlite3.OperationalError`
- Can't filter with numbers
- feature request: gzip compression of database downloads HOT 1
- CSV export with ?_labels=on fails at first row with a foreign key that fails to resolve correctly HOT 22
- get_absolute_url should respect "X-Forwarded-Proto" header
- Python APIs for accessing metadata should be async and fully documented
- Mechanism for executing "isolated" database operations without prepared connection stuff HOT 4
- Cog is failing with round_trip_load_all() YAML error HOT 3
- datasette install datasette-comments break search-all
- jinja2_environment_from_request plugin hook HOT 8
- Support for duckdb HOT 1
- Datasette docker errors when db schema uses "strict"
- Tests and docs to guarantee extras used by datasette-search-all
- ?_extra=columns parameter causes all rows to return `"column-name": "column-name"` HOT 6
- black leaves extra whitespace in my rendered documentation HOT 2
- Show how to register a plugin in a test fixture HOT 1
- Empty list in plugin introspection demo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datasette.