From da23a706e7e82bec5179eec2ad111942ea899468 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20Bo=C3=9F?= Date: Tue, 17 Apr 2018 22:57:55 +0200 Subject: [PATCH] fix editing mistakes --- applications/examples/views/default/examples.html | 4 ++-- applications/examples/views/default/support.html | 2 +- applications/examples/views/default/who.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/applications/examples/views/default/examples.html b/applications/examples/views/default/examples.html index ad1c566b..4e8f2ffd 100644 --- a/applications/examples/views/default/examples.html +++ b/applications/examples/views/default/examples.html @@ -443,7 +443,7 @@ def buy(): Field('product_id',requires=IS_IN_DB(db,db.product.id,'%(name)s')), Field('quantity','integer',requires=IS_INT_IN_RANGE(1,100))).process() if form.accepted: - # get previous purchese for same product + # get previous purchase for same product purchase = db((db.purchase.buyer_id == form.vars.buyer_id)& (db.purchase.product_id==form.vars.product_id)).select().first() @@ -633,7 +633,7 @@ def streamer(): path=os.path.join(request.folder,'private','largefile.mpeg4') return response.stream(open(path,'rb'),chunk_size=4096) """.strip(),language='web2py',link=URL('global','vars'),_class='boxCode')}} -

By default all static files and files stored in 'upload' fields in the database are streamed when larger than 1MByte.

+

By default all static files and files stored in 'upload' fields in the database are streamed when larger than 1 MByte.

web2py automatically and transparently handles PARTIAL_CONTENT and RANGE requests.

diff --git a/applications/examples/views/default/support.html b/applications/examples/views/default/support.html index c6110548..b15217e1 100644 --- a/applications/examples/views/default/support.html +++ b/applications/examples/views/default/support.html @@ -15,7 +15,7 @@

For professional support, you can also contact one of the companies below: