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