From 19f8f6bf3c1c0acba1020b68fd23c5e68223595b Mon Sep 17 00:00:00 2001 From: mdipierro Date: Fri, 14 Feb 2014 21:03:52 -0600 Subject: [PATCH] SQLCustomType endswith --- VERSION | 2 +- gluon/dal.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index d4ea3e97..e9ba3bf2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.8.2-stable+timestamp.2014.02.11.08.10.56 +Version 2.8.2-stable+timestamp.2014.02.14.21.02.54 diff --git a/gluon/dal.py b/gluon/dal.py index 638afe99..ab16166d 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -9731,6 +9731,12 @@ class SQLCustomType(object): except TypeError: return False + def endswith(self, text=None): + try: + return self.type.endswith(self, text) + except TypeError: + return False + def __getslice__(self, a=0, b=100): return None