# HG changeset patch # User Sylvain Thénault # Date 1268068104 -3600 # Node ID 98c7760b7e9ac625e258a5da4f99d2815ec874ad # Parent c5aec27c1bf7a52a10d90c8095f17049a69742c0 rename deprecated file diff -r c5aec27c1bf7 -r 98c7760b7e9a server/test/data/site_cubicweb.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/server/test/data/site_cubicweb.py Mon Mar 08 18:08:24 2010 +0100 @@ -0,0 +1,23 @@ +""" + +:organization: Logilab +:copyright: 2001-2010 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2. +:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr +:license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses +""" + +from logilab.db import FunctionDescr +from logilab.db.sqlite import register_sqlite_pyfunc +from rql.utils import register_function + +try: + class DUMB_SORT(FunctionDescr): + supported_backends = ('sqlite',) + + register_function(DUMB_SORT) + def dumb_sort(something): + return something + register_sqlite_pyfunc(dumb_sort) +except: + # already registered + pass diff -r c5aec27c1bf7 -r 98c7760b7e9a server/test/data/site_erudi.py --- a/server/test/data/site_erudi.py Mon Mar 08 17:57:29 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -""" - -:organization: Logilab -:copyright: 2001-2010 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2. -:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr -:license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses -""" - -from logilab.db import FunctionDescr -from logilab.db.sqlite import register_sqlite_pyfunc -from rql.utils import register_function - -try: - class DUMB_SORT(FunctionDescr): - supported_backends = ('sqlite',) - - register_function(DUMB_SORT) - def dumb_sort(something): - return something - register_sqlite_pyfunc(dumb_sort) -except: - # already registered - pass