T('Add') in grid, thanks Tito Garrido
This commit is contained in:
2
VERSION
2
VERSION
@@ -1 +1 @@
|
||||
Version 2.3.2 (2012-12-18 09:30:44) dev
|
||||
Version 2.3.2 (2012-12-18 20:27:53) dev
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
Please also send us a signed copy by fax or, scanned, by email.
|
||||
<p/>
|
||||
<h3>
|
||||
Main Contributors
|
||||
Main Contributors/Developers
|
||||
</h3>
|
||||
<ul>
|
||||
<li>Alexey Nezhdanov (GAE and database performance)
|
||||
@@ -106,7 +106,7 @@
|
||||
</li><li>Olaf Ferger (Informix support)
|
||||
</li><li>Omi Chiba (DB2, MSSQL support and Japanese translation)
|
||||
</li><li>Ondrej Such (MSSQL support)
|
||||
</li><li>Ovidio Marinho Falcao Neto (tests and plugins)
|
||||
</li><li>Ovidio Marinho Falcao Neto (tests and plugin developer)
|
||||
</li><li>Pai (internationalization)
|
||||
</li><li>Paolo Caruccio (SQLFORM.grid query)
|
||||
</li><li>Patrick Breitenbach
|
||||
|
||||
@@ -520,8 +520,7 @@ class XmlComponent(object):
|
||||
c = self['_class']
|
||||
classes = (set(c.split()) if c else set()) - set(name.split())
|
||||
self['_class'] = ' '.join(classes) if classes else None
|
||||
return self
|
||||
|
||||
return self
|
||||
|
||||
class XML(XmlComponent):
|
||||
"""
|
||||
|
||||
@@ -1786,7 +1786,7 @@ class SQLFORM(FORM):
|
||||
session.flash = T('not authorized')
|
||||
redirect(referrer)
|
||||
|
||||
def gridbutton(buttonclass='buttonadd', buttontext='Add',
|
||||
def gridbutton(buttonclass='buttonadd', buttontext=T('Add'),
|
||||
buttonurl=url(args=[]), callback=None,
|
||||
delete=None, trap=True):
|
||||
if showbuttontext:
|
||||
@@ -1997,7 +1997,7 @@ class SQLFORM(FORM):
|
||||
if create:
|
||||
add = gridbutton(
|
||||
buttonclass='buttonadd',
|
||||
buttontext='Add',
|
||||
buttontext=T('Add'),
|
||||
buttonurl=url(args=['new', tablename]))
|
||||
if not searchable:
|
||||
console.append(add)
|
||||
|
||||
Reference in New Issue
Block a user