Example #1
0
def search_zip_base():
    if validators.valid_zipcode(request.form['zip']):
        return redirect(url_for('zip', zipcode=request.form['zip']))
    else:
        return redirect(url_for('error_invalid_zip'))
Example #2
0
def create_post_listing():
    if validators.valid_zipcode(request.form['zip']):
        return redirect(url_for('zip', zipcode=request.form['zip']))
    else:
        return redirect(url_for('error_invalid_zip'))
Example #3
0
def zip(zipcode):
    if validators.valid_zipcode(zipcode):
        return render_template("zip.html", zipcode=zipcode)
    else:
        return redirect(url_for('error_invalid_zip'))