From cd1a9b7d545a9566b6d8ab861572f2e80c67916e Mon Sep 17 00:00:00 2001 From: David Lord Date: Wed, 22 Jun 2016 15:01:41 -0700 Subject: [PATCH] remove unnecessary form action attributes --- docs/patterns/fileuploads.rst | 8 ++++---- docs/patterns/flashing.rst | 2 +- docs/patterns/wtforms.rst | 2 +- docs/quickstart.rst | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/patterns/fileuploads.rst b/docs/patterns/fileuploads.rst index 7a3cd28e..95c0032f 100644 --- a/docs/patterns/fileuploads.rst +++ b/docs/patterns/fileuploads.rst @@ -71,7 +71,7 @@ the file and redirects the user to the URL for the uploaded file:: Upload new File

Upload new File

-
+

@@ -104,9 +104,9 @@ before storing it directly on the filesystem. >>> secure_filename('../../../../home/username/.bashrc') 'home_username_.bashrc' -Now one last thing is missing: the serving of the uploaded files. In the -:func:`upload_file()` we redirect the user to -``url_for('uploaded_file', filename=filename)``, that is, ``/uploads/filename``. +Now one last thing is missing: the serving of the uploaded files. In the +:func:`upload_file()` we redirect the user to +``url_for('uploaded_file', filename=filename)``, that is, ``/uploads/filename``. So we write the :func:`uploaded_file` function to return the file of that name. As of Flask 0.5 we can use a function that does that for us:: diff --git a/docs/patterns/flashing.rst b/docs/patterns/flashing.rst index dc20a08c..7efd1446 100644 --- a/docs/patterns/flashing.rst +++ b/docs/patterns/flashing.rst @@ -78,7 +78,7 @@ And here is the :file:`login.html` template which also inherits from {% if error %}

Error: {{ error }} {% endif %} -

+
Username:
+
{{ render_field(form.username) }} {{ render_field(form.email) }} diff --git a/docs/quickstart.rst b/docs/quickstart.rst index 0d0028e2..ae1c7afa 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -784,7 +784,7 @@ sessions work:: session['username'] = request.form['username'] return redirect(url_for('index')) return ''' - +