no twice no record found
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 1.99.7 (2012-04-19 11:08:58) dev
|
Version 1.99.7 (2012-04-19 11:12:22) dev
|
||||||
|
|||||||
+4
-3
@@ -1746,7 +1746,7 @@ class SQLFORM(FORM):
|
|||||||
buttonclass='buttonadd',
|
buttonclass='buttonadd',
|
||||||
buttontext=T('Add'),
|
buttontext=T('Add'),
|
||||||
buttonurl=url(args=['new',tablename])))
|
buttonurl=url(args=['new',tablename])))
|
||||||
if csv:
|
if csv and nrows:
|
||||||
search_actions.append(gridbutton(
|
search_actions.append(gridbutton(
|
||||||
buttonclass='buttonexport',
|
buttonclass='buttonexport',
|
||||||
buttontext=T('Export'),
|
buttontext=T('Export'),
|
||||||
@@ -1837,8 +1837,9 @@ class SQLFORM(FORM):
|
|||||||
except SyntaxError:
|
except SyntaxError:
|
||||||
rows = None
|
rows = None
|
||||||
error = T("Query Not Supported")
|
error = T("Query Not Supported")
|
||||||
message = error or T('%(nrows)s records found') % dict(nrows=nrows)
|
if nrows:
|
||||||
console.append(DIV(message,_class='web2py_counter'))
|
message = error or T('%(nrows)s records found') % dict(nrows=nrows)
|
||||||
|
console.append(DIV(message,_class='web2py_counter'))
|
||||||
|
|
||||||
if rows:
|
if rows:
|
||||||
htmltable = TABLE(THEAD(head))
|
htmltable = TABLE(THEAD(head))
|
||||||
|
|||||||
Reference in New Issue
Block a user