fixed typo in examples page
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ Here is a more complex complete application that lets the visitor upload images
|
|||||||
``
|
``
|
||||||
db=DAL('sqlite://storage.db')
|
db=DAL('sqlite://storage.db')
|
||||||
db.define_table('image',
|
db.define_table('image',
|
||||||
Field('name'),
|
Field('name', notnull=True),
|
||||||
Field('file','upload'))
|
Field('file','upload'))
|
||||||
``:code_python
|
``:code_python
|
||||||
|
|
||||||
@@ -55,10 +55,10 @@ db.define_table('image',
|
|||||||
|
|
||||||
``
|
``
|
||||||
def index():
|
def index():
|
||||||
form = SQLFORM(db.image)
|
form = SQLFORM(db.image).process()
|
||||||
if form.process().accepted:
|
if form.accepted:
|
||||||
response.flash = 'image uploaded'
|
response.flash = 'image uploaded'
|
||||||
return dict(form = form)""",counter=None,_class='boxCode')}}
|
return locals()
|
||||||
``:code_python
|
``:code_python
|
||||||
|
|
||||||
### In View
|
### In View
|
||||||
|
|||||||
Reference in New Issue
Block a user