From 4a7f15bb044b8d35af2ee98ada524e13db5eaa32 Mon Sep 17 00:00:00 2001 From: Massimo Date: Tue, 2 Apr 2013 16:15:26 -0500 Subject: [PATCH] fixed typo in examples page --- VERSION | 2 +- .../private/content/en/default/what/whyweb2py.markmin | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/VERSION b/VERSION index 17dcf71e..83e62b15 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.4.5-stable+timestamp.2013.04.02.11.22.13 +Version 2.4.5-stable+timestamp.2013.04.02.16.14.35 diff --git a/applications/examples/private/content/en/default/what/whyweb2py.markmin b/applications/examples/private/content/en/default/what/whyweb2py.markmin index e23930dc..714c5502 100644 --- a/applications/examples/private/content/en/default/what/whyweb2py.markmin +++ b/applications/examples/private/content/en/default/what/whyweb2py.markmin @@ -47,7 +47,7 @@ Here is a more complex complete application that lets the visitor upload images `` db=DAL('sqlite://storage.db') db.define_table('image', - Field('name'), + Field('name', notnull=True), Field('file','upload')) ``:code_python @@ -55,10 +55,10 @@ db.define_table('image', `` def index(): - form = SQLFORM(db.image) - if form.process().accepted: + form = SQLFORM(db.image).process() + if form.accepted: response.flash = 'image uploaded' - return dict(form = form)""",counter=None,_class='boxCode')}} + return locals() ``:code_python ### In View