common/__init__.py
changeset 4023 eae23c40627a
parent 2203 efdd3a9f9028
child 4252 6c4f109c2b03
--- a/common/__init__.py	Tue Dec 08 10:40:20 2009 +0100
+++ b/common/__init__.py	Tue Dec 08 10:58:56 2009 +0100
@@ -7,47 +7,3 @@
 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
 """
 
-from logilab.common.adbh import FunctionDescr
-
-from cubicweb._exceptions import * # bw compat
-
-from rql.utils import register_function, iter_funcnode_variables
-
-class COMMA_JOIN(FunctionDescr):
-    supported_backends = ('postgres', 'sqlite',)
-    rtype = 'String'
-
-    @classmethod
-    def st_description(cls, funcnode, mainindex, tr):
-        return ', '.join(sorted(term.get_description(mainindex, tr)
-                                for term in iter_funcnode_variables(funcnode)))
-
-register_function(COMMA_JOIN)  # XXX do not expose?
-
-
-class CONCAT_STRINGS(COMMA_JOIN):
-    aggregat = True
-
-register_function(CONCAT_STRINGS) # XXX bw compat
-
-class GROUP_CONCAT(CONCAT_STRINGS):
-    supported_backends = ('mysql', 'postgres', 'sqlite',)
-
-register_function(GROUP_CONCAT)
-
-
-class LIMIT_SIZE(FunctionDescr):
-    supported_backends = ('postgres', 'sqlite',)
-    rtype = 'String'
-
-    @classmethod
-    def st_description(cls, funcnode, mainindex, tr):
-        return funcnode.children[0].get_description(mainindex, tr)
-
-register_function(LIMIT_SIZE)
-
-
-class TEXT_LIMIT_SIZE(LIMIT_SIZE):
-    supported_backends = ('mysql', 'postgres', 'sqlite',)
-
-register_function(TEXT_LIMIT_SIZE)