dasich / flask-relief Goto Github PK
View Code? Open in Web Editor NEWA Flask-Extension providing validation utilities for web applications using Relief.
License: Other
A Flask-Extension providing validation utilities for web applications using Relief.
License: Other
There needs to be a way to easily render forms to HTML without requiring the user to drop down to writing HTML herself, if she wants it rendered slightly differently.
Initially I considered doing this purely with macros, providing a template through a blueprint that can be used as a library. However macros are fairly limited in their abilities, probably making this unviable. Nevertheless I like the idea from an API perspective and if there is a decent way to implement macros from Python, this would be a nice solution.
HTML provides some support for validating forms on the client. We should provide a way to take advantage of that, as part of rendering.
Doing any work on this will require closing #3 first though.
For some reason flake8 fails on travis when pypy is used. It works for me locally using pypy 2.1.0 so I have to assume it's due to travis still using pypy 1.9.
This problem is currently "solved" by running the tests twice with pypy, once with flake8 and once without. The run with flake8 is marked as allowed to fail.
This workaround should be removed once travis upgrades pypy. It would also be nice, if someone could confirm that there is an incompatibility with pypy and flake8.
All input types should be implemented as elements, that can be used to create schemas. So far only a few of them are:
Text
)Password
)Hidden
and Secret
)Checkbox
and MultipleChoice
)Choice
)This leaves the following - excluding types that don't submit anything - missing:
Types supported by most browsers:
Email
)Submit
)Types unsupported by most browsers:
To discuss/implement any of these create a new issue/pull request and reference this issue, as this the purpose of this issue is merely to track progress.
Edit: Split up list of types in ones that are supported and unsupported by most browsers, as documented in the MDN
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.