From 6896c13c92c03bc42a5ae4e36638deff727a01ea Mon Sep 17 00:00:00 2001 From: mdipierro Date: Tue, 2 Apr 2013 08:38:52 -0500 Subject: [PATCH] minor typos --- sources/29-web2py-english/01.markmin | 1 + sources/29-web2py-english/03.markmin | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sources/29-web2py-english/01.markmin b/sources/29-web2py-english/01.markmin index 91404bcc..de6c87ae 100644 --- a/sources/29-web2py-english/01.markmin +++ b/sources/29-web2py-english/01.markmin @@ -670,6 +670,7 @@ Ryan Seto, Salomon Derossi, Sam Sheftel, Scott Roberts, +Sebastian Ortiz, Sergey Podlesnyi, Sharriff Aina, Simone Bizzotto, diff --git a/sources/29-web2py-english/03.markmin b/sources/29-web2py-english/03.markmin index c427fc36..fa298c11 100644 --- a/sources/29-web2py-english/03.markmin +++ b/sources/29-web2py-english/03.markmin @@ -714,8 +714,8 @@ db(db.image.id==...).select().first() The "download" action expects a filename in ``request.args(0)``, builds a path to the location where that file is supposed to be, and sends it back to the client. If the file is too large, it streams the file without incurring any memory overhead. Notice the following statements: -- Line 7 creates an insert form SQLFORM for the ``db.post`` table using only the specified fields. -- Line 8 sets the value for the reference field, which is not part of the input form because it is not in the list of fields specified above. +- Line 8 creates an insert form SQLFORM for the ``db.post`` table using only the specified fields. +- Line 7 sets the default value for the reference field, which is not part of the input form because it is not in the list of fields specified above. - Line 9 processes the submitted form (the submitted form variables are in ``request.vars``) within the current session (the session is used to prevent double submissions, and to enforce navigation). If the submitted form variables are validated, the new comment is inserted in the ``db.post`` table; otherwise the form is modified to include error messages (for example, if the author's email address is invalid). This is all done in line 9!. - Line 10 is only executed if the form is accepted, after the record is inserted into the database table. ``response.flash`` is a web2py variable that is displayed in the views and used to notify the visitor that something happened. - Line 11 selects all comments that reference the current image.