diff -r 672acc730ce5 -r d628defebc17 common/__init__.py --- a/common/__init__.py Thu May 14 10:24:56 2009 +0200 +++ b/common/__init__.py Thu May 14 11:38:40 2009 +0200 @@ -15,38 +15,38 @@ class COMMA_JOIN(FunctionDescr): supported_backends = ('postgres', 'sqlite',) rtype = 'String' - + @classmethod def st_description(cls, funcnode): return ', '.join(term.get_description() 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): return funcnode.children[0].get_description() - + register_function(LIMIT_SIZE) class TEXT_LIMIT_SIZE(LIMIT_SIZE): supported_backends = ('mysql', 'postgres', 'sqlite',) - + register_function(TEXT_LIMIT_SIZE)