T('Add') in grid, thanks Tito Garrido

This commit is contained in:
mdipierro
2012-12-18 20:28:44 -06:00
parent e93c49fb8c
commit a221e0cbee
4 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.3.2 (2012-12-18 09:30:44) dev Version 2.3.2 (2012-12-18 20:27:53) dev
+2 -2
View File
@@ -21,7 +21,7 @@
Please also send us a signed copy by fax or, scanned, by email. Please also send us a signed copy by fax or, scanned, by email.
<p/> <p/>
<h3> <h3>
Main Contributors Main Contributors/Developers
</h3> </h3>
<ul> <ul>
<li>Alexey Nezhdanov (GAE and database performance) <li>Alexey Nezhdanov (GAE and database performance)
@@ -106,7 +106,7 @@
</li><li>Olaf Ferger (Informix support) </li><li>Olaf Ferger (Informix support)
</li><li>Omi Chiba (DB2, MSSQL support and Japanese translation) </li><li>Omi Chiba (DB2, MSSQL support and Japanese translation)
</li><li>Ondrej Such (MSSQL support) </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>Pai (internationalization)
</li><li>Paolo Caruccio (SQLFORM.grid query) </li><li>Paolo Caruccio (SQLFORM.grid query)
</li><li>Patrick Breitenbach </li><li>Patrick Breitenbach
+1 -2
View File
@@ -520,8 +520,7 @@ class XmlComponent(object):
c = self['_class'] c = self['_class']
classes = (set(c.split()) if c else set()) - set(name.split()) classes = (set(c.split()) if c else set()) - set(name.split())
self['_class'] = ' '.join(classes) if classes else None self['_class'] = ' '.join(classes) if classes else None
return self return self
class XML(XmlComponent): class XML(XmlComponent):
""" """
+2 -2
View File
@@ -1786,7 +1786,7 @@ class SQLFORM(FORM):
session.flash = T('not authorized') session.flash = T('not authorized')
redirect(referrer) redirect(referrer)
def gridbutton(buttonclass='buttonadd', buttontext='Add', def gridbutton(buttonclass='buttonadd', buttontext=T('Add'),
buttonurl=url(args=[]), callback=None, buttonurl=url(args=[]), callback=None,
delete=None, trap=True): delete=None, trap=True):
if showbuttontext: if showbuttontext:
@@ -1997,7 +1997,7 @@ class SQLFORM(FORM):
if create: if create:
add = gridbutton( add = gridbutton(
buttonclass='buttonadd', buttonclass='buttonadd',
buttontext='Add', buttontext=T('Add'),
buttonurl=url(args=['new', tablename])) buttonurl=url(args=['new', tablename]))
if not searchable: if not searchable:
console.append(add) console.append(add)