Massimo, I made an addition in my local web2py version, as follows: In gluon/sql.py, inside Expression class, I added the endswith() method:
def endswith(self, value):
if self.type in ('string', 'text'):
return Query(self, ' LIKE ', '%%%s' % value)
else:
raise RuntimeError, "startswith used with incompatible field type"
This is the counterpart of Expression.startswith(), like Python as well.
How about adding it to next Web2py version?
--
Vinicius Assef.

