Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Enhancement: Dynamic Select Form #13

Merged
merged 43 commits into from
Mar 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
e70fae9
on branch dynamic-form, switch to dev server for feature enhancement
zshafiqu Mar 22, 2020
b295435
update bootstrap design with new page
zshafiqu Mar 22, 2020
82e29ee
add placeholder select groups in place of form inputs
zshafiqu Mar 22, 2020
61d7c02
remove unneeded imports
zshafiqu Mar 22, 2020
a4ff536
form update
zshafiqu Mar 22, 2020
77eb06d
update requirements .txt with flask_wtf amd wtforms
zshafiqu Mar 22, 2020
c209133
more updates
zshafiqu Mar 22, 2020
dc37c8e
honing in on the form stuff. just adding a commit for good measure
zshafiqu Mar 23, 2020
867c730
add list comprehension for flaskform tuple
zshafiqu Mar 24, 2020
cf76895
removed old form options
zshafiqu Mar 24, 2020
7dd961d
form values added
zshafiqu Mar 24, 2020
2352a95
list comprehension works on tuples for year range in flask form
zshafiqu Mar 24, 2020
f3f6197
create new function called get_table_name(), and retrieve table names…
zshafiqu Mar 24, 2020
7afac96
clean up report() code by removing unneeded stuff
zshafiqu Mar 24, 2020
ae7b478
successfully returning form data via POST
zshafiqu Mar 24, 2020
c4d6b5c
get distinct makes route created under makes/<year>/
zshafiqu Mar 24, 2020
52afa3f
add fetch() API script to report page to grab all distinct makes for …
zshafiqu Mar 24, 2020
8423fb8
script added to detect onchange for make and update corresponding value
zshafiqu Mar 24, 2020
56335c4
add style to form selectors using Jinja class_ declarator
zshafiqu Mar 24, 2020
69d6aed
add model selector
zshafiqu Mar 24, 2020
670ce35
report code cleanup
zshafiqu Mar 24, 2020
f704468
more updates'
zshafiqu Mar 24, 2020
9b52297
updated report endpoint
zshafiqu Mar 24, 2020
79f6693
report method has all three selectors populating, now just need to ad…
zshafiqu Mar 24, 2020
ca5380b
more code cleanup
zshafiqu Mar 24, 2020
4017fa5
make select on change works, just need to refactor it so it updates m…
zshafiqu Mar 24, 2020
d3e8004
fixed an out of scope error
zshafiqu Mar 24, 2020
9d43ac9
works, just need to figure out error for when you switch years to whe…
zshafiqu Mar 25, 2020
71c09f0
Resolved prior issue by calling the updateModel() method again on a r…
zshafiqu Mar 25, 2020
d097ce5
finished with scripts
zshafiqu Mar 25, 2020
b3ddf80
more updates to server
zshafiqu Mar 25, 2020
deb6a81
code cleanup
zshafiqu Mar 25, 2020
5ebffe3
omitting view_report route as we now allow report route to accept bot…
zshafiqu Mar 25, 2020
3818047
FOUND ANOTHER ISSUE - if you update year, the make defaults to acura,…
zshafiqu Mar 25, 2020
18ac61a
turn off autocomplete on select fields using flask-jinja syntaxing
zshafiqu Mar 25, 2020
38a43f0
resolved issue of models not updating by adding a 250 millisecond del…
zshafiqu Mar 25, 2020
7442256
various template and server updates
zshafiqu Mar 25, 2020
4663e25
add interface update to changelog
zshafiqu Mar 25, 2020
6330718
add API update since we
zshafiqu Mar 25, 2020
83ace1e
wrapped report() load code with while loop to help avoid database con…
zshafiqu Mar 25, 2020
b0fb9e4
more updates to changelog
zshafiqu Mar 25, 2020
b6fd004
updated README to reflect new changes
zshafiqu Mar 25, 2020
1a75695
swap to production server
zshafiqu Mar 25, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ This project is intended to be open source and public, so any and all contributi


## Release History

* 2.2.0
* Resolves issue where the search form made it difficult to get a report on cars where the name is ambiguous, or not well defined, such as ‘BMW 3-series’ or ‘Lexus ES’. Because of this, the web report interface’s search form was swapped out for a select option.
* Utilized the fetch() API to grab the updated lists, and they are asynchronously rendered as you change your selections.
* [(See pull request)](https://github.com/zshafiqu/vehicleinfo.org/pull/13)
* 2.1.0
* Trailing slash fix for API. Fixes inconsistent HTTP request paths. [(See pull request)](https://github.com/zshafiqu/vehicleinfo.org/pull/12)
* 2.0.0
* Designed a whole new UI [(see pull request)](https://github.com/zshafiqu/vehicleinfo.org/pull/2)
* Significant improvements warranted skipping versions b/w 1.0.1 & 2
Expand Down
Binary file modified env/lib/python3.8/distutils/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pip
32 changes: 32 additions & 0 deletions env/lib/python3.8/site-packages/Flask_WTF-0.14.3.dist-info/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Copyright (c) 2010 by Dan Jacob.
Copyright (c) 2013 by Hsiaoming Yang.

Some rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.

* The names of the contributors may not be used to endorse or
promote products derived from this software without specific
prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
Metadata-Version: 2.1
Name: Flask-WTF
Version: 0.14.3
Summary: Simple integration of Flask and WTForms.
Home-page: https://github.com/lepture/flask-wtf
Author: Dan Jacob
Author-email: danjac354@gmail.com
Maintainer: Hsiaoming Yang
Maintainer-email: me@lepture.com
License: BSD
Platform: any
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Framework :: Flask
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Description-Content-Type: text/x-rst
Requires-Dist: Flask
Requires-Dist: WTForms
Requires-Dist: itsdangerous

Flask-WTF
=========

.. image:: https://travis-ci.org/lepture/flask-wtf.svg?branch=master
:target: https://travis-ci.org/lepture/flask-wtf
:alt: Test Status
.. image:: https://codecov.io/gh/lepture/flask-wtf/branch/master/graph/badge.svg
:target: https://codecov.io/gh/lepture/flask-wtf
:alt: Coverage Status

Simple integration of Flask and WTForms, including CSRF, file upload, and reCAPTCHA.

Links
-----

* `Documentation <https://flask-wtf.readthedocs.io>`_
* `PyPI <https://pypi.python.org/pypi/Flask-WTF>`_
* `GitHub <https://github.com/lepture/flask-wtf>`_


28 changes: 28 additions & 0 deletions env/lib/python3.8/site-packages/Flask_WTF-0.14.3.dist-info/RECORD
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Flask_WTF-0.14.3.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
Flask_WTF-0.14.3.dist-info/LICENSE,sha256=oHX42YrP2wXdmHFiQrniwbOrmHIpJrPEz2yRasFOg1A,1490
Flask_WTF-0.14.3.dist-info/METADATA,sha256=dF7sva5J48ghHRrrDQXE8VC9rkGgzMroqE9F0Y8IRaE,1970
Flask_WTF-0.14.3.dist-info/RECORD,,
Flask_WTF-0.14.3.dist-info/WHEEL,sha256=8zNYZbwQSXoB9IfXOjPfeNwvAsALAjffgk27FqvCWbo,110
Flask_WTF-0.14.3.dist-info/top_level.txt,sha256=zK3flQPSjYTkAMjB0V6Jhu3jyotC0biL1mMhzitYoog,10
flask_wtf/__init__.py,sha256=3HmMihSqGs5tVK4kkizqgvkIYERx3vOcu1HqDEJV9F8,166
flask_wtf/__pycache__/__init__.cpython-38.pyc,,
flask_wtf/__pycache__/_compat.cpython-38.pyc,,
flask_wtf/__pycache__/csrf.cpython-38.pyc,,
flask_wtf/__pycache__/file.cpython-38.pyc,,
flask_wtf/__pycache__/form.cpython-38.pyc,,
flask_wtf/__pycache__/html5.cpython-38.pyc,,
flask_wtf/__pycache__/i18n.cpython-38.pyc,,
flask_wtf/_compat.py,sha256=azP2rQPjAnKozhAJjMlbhI8aDlEOMuv1HrTHFDOJZYM,917
flask_wtf/csrf.py,sha256=6X70Trm_bqA2PeetNrX0n8yMov3346qyde7BzC6K_Cg,11784
flask_wtf/file.py,sha256=HvYn4xlQFr1xjmNFvYCL-9ovWOQxL1VL2kSprHnxdTk,2886
flask_wtf/form.py,sha256=carx4zNxTk5qm9Ns5PJnoexVySXnpJvgokpi2VWsc-k,4987
flask_wtf/html5.py,sha256=ehOXtr_lhJHjn00MhIrFgvFO1SlFeN8hBoNG7wlSu5Q,333
flask_wtf/i18n.py,sha256=6yhSjnvippZ04H2gaqSHLeztR5LXpdnugWmxZEps4ck,1228
flask_wtf/recaptcha/__init__.py,sha256=q3TC7tZPSAZ3On3GApZKGn0EcydX4zprisbyTlhN3sQ,86
flask_wtf/recaptcha/__pycache__/__init__.cpython-38.pyc,,
flask_wtf/recaptcha/__pycache__/fields.cpython-38.pyc,,
flask_wtf/recaptcha/__pycache__/validators.cpython-38.pyc,,
flask_wtf/recaptcha/__pycache__/widgets.cpython-38.pyc,,
flask_wtf/recaptcha/fields.py,sha256=kN_10iZYQcYg1EtxFp4B87BlFnnrJCktrh7bTykOVj4,453
flask_wtf/recaptcha/validators.py,sha256=Wy0ucQzSpPS4XeeXhPjzRmTPtSM6pIQLlMWEPOODuQ4,2405
flask_wtf/recaptcha/widgets.py,sha256=SbXaEMi3sFIJLFdTOVnjDMQPIQAIHAs2wdIycaTO5LQ,1255
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Wheel-Version: 1.0
Generator: bdist_wheel (0.33.6)
Root-Is-Purelib: true
Tag: py2-none-any
Tag: py3-none-any

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
flask_wtf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pip
101 changes: 101 additions & 0 deletions env/lib/python3.8/site-packages/WTForms-2.2.1.dist-info/METADATA
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
Metadata-Version: 2.1
Name: WTForms
Version: 2.2.1
Summary: A flexible forms validation and rendering library for Python web development.
Home-page: https://wtforms.readthedocs.io/
Author: Thomas Johansson, James Crasta
Author-email: wtforms@simplecodes.com
Maintainer: WTForms team
Maintainer-email: davidism@gmail.com
License: BSD
Project-URL: Documentation, https://wtforms.readthedocs.io/
Project-URL: Code, https://github.com/wtforms/wtforms
Project-URL: Issue tracker, https://github.com/wtforms/wtforms/issues
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Provides-Extra: locale
Requires-Dist: ordereddict; python_version=="2.6"
Provides-Extra: locale
Requires-Dist: Babel (>=1.3); extra == 'locale'

WTForms
=======

WTForms is a flexible forms validation and rendering library for Python
web development. It is `framework agnostic`_ and can work with whatever
web framework and template engine you choose. There are various
community libraries that provide closer integration with popular
frameworks.

To get started using WTForms, we recommend reading the `crash course`_
in the docs.

.. _crash course: https://wtforms.readthedocs.io/en/stable/crash_course.html
.. _framework agnostic: https://wtforms.readthedocs.io/en/stable/faq.html#does-wtforms-work-with-library-here


Installation
------------

Install and update using pip::

pip install -U WTForms


Third-Party Library Integrations
--------------------------------

WTForms is designed to work with any web framework and template engine.
There are a number of community-provided libraries that make integrating
with frameworks even better.

- `Flask-WTF`_ integrates with the Flask framework. It can
automatically load data from the request, uses Flask-Babel to
translate based on user-selected locale, provides full-application
CSRF, and more.
- `WTForms-Alchemy`_ provides rich support for generating forms from
SQLAlchemy models, including an expanded set of fields and
validators.
- `WTForms-SQLAlchemy`_ provides ORM-backed fields and form generation
from SQLAlchemy models.
- `WTForms-AppEngine`_ provides ORM-backed fields and form generation
from AppEnding db/ndb schema
- `WTForms-AppEngine`_ provides ORM-backed fields and form generation
from Django models, as well as integration with Django's I18N
support.

.. _Flask-WTF: https://flask-wtf.readthedocs.io/
.. _WTForms-Alchemy: https://wtforms-alchemy.readthedocs.io/
.. _WTForms-SQLAlchemy: https://github.com/wtforms/wtforms-sqlalchemy
.. _WTForms-AppEngine: https://github.com/wtforms/wtforms-appengine
.. _WTForms-Django: https://github.com/wtforms/wtforms-django


Links
-----

- Documentation: https://wtforms.readthedocs.io/
- License: `BSD <https://github.com/wtforms/wtforms/blob/master/LICENSE>`_
- Releases: https://pypi.org/project/WTForms/
- Code: https://github.com/wtforms/wtforms
- Issue tracker: https://github.com/wtforms/wtforms/issues
- Test status:

- Linux: https://travis-ci.org/wtforms/wtforms

- Test coverage: https://coveralls.io/github/wtforms/wtforms


Loading