fixws and 'new' button in grid query

This commit is contained in:
Massimo Di Pierro
2011-12-05 11:39:42 -06:00
parent 01f6f82cdf
commit d281acb421
305 changed files with 8352 additions and 8032 deletions
@@ -1,7 +1,7 @@
from gluon.fileutils import read_file
response.menu = [['Register Person', False, URL('register_person')],
['Register Dog', False, URL('register_dog')],
response.menu = [['Register Person', False, URL('register_person')],
['Register Dog', False, URL('register_dog')],
['Register Product', False, URL('register_product')],
['Buy product', False, URL('buy')]]
@@ -62,7 +62,7 @@ def buy():
(db.purchase.product_id==form.vars.product_id)).select().first()
if purchase:
# if list contains a record, update that record
# if list contains a record, update that record
purchase.update_record(
quantity = purchase.quantity+form.vars.quantity)
else:
@@ -87,3 +87,4 @@ def delete_purchased():
def download():
""" used to download uploaded files """
return response.download(request,db)