This commit is contained in:
Massimo Di Pierro
2011-11-23 16:58:31 -06:00
parent 795bbfcbbc
commit 3c87b19d36
2 changed files with 41 additions and 39 deletions
+1 -1
View File
@@ -1 +1 @@
Version 1.99.3 (2011-11-23 16:55:49) dev Version 1.99.3 (2011-11-23 16:58:24) dev
+4 -2
View File
@@ -1531,8 +1531,10 @@ class SQLFORM(FORM):
url(args=args))) url(args=args)))
if record and links: if record and links:
for link in links: for link in links:
if link(record): if isinstance(link,dict):
buttons.append(link(record)) buttons.append(link['body'](record))
elif link(record):
buttons.append(link(record))
return buttons return buttons
formfooter = DIV( formfooter = DIV(