remove some bw compat code tls-sprint
authorsylvain.thenault@logilab.fr
Mon, 23 Mar 2009 18:20:23 +0100
branchtls-sprint
changeset 1134 f885df228fc0
parent 1133 8a409ea0c9ec
child 1135 00eb43688a57
remove some bw compat code
entities/__init__.py
misc/migration/2.37.1_Any.py
misc/migration/2.39.0_Any.py
server/sources/rql2sql.py
server/utils.py
utils.py
--- a/entities/__init__.py	Mon Mar 23 18:13:34 2009 +0100
+++ b/entities/__init__.py	Mon Mar 23 18:20:23 2009 +0100
@@ -140,7 +140,6 @@
     def dc_type(self, form=''):
         """return the display name for the type of this entity (translated)"""
         return self.e_schema.display_name(self.req, form)
-    display_name = deprecated_function(dc_type) # require agueol > 0.8.1, asteretud > 0.10.0 for removal
 
     def dc_language(self):
         """return language used by this entity (translated)"""
--- a/misc/migration/2.37.1_Any.py	Mon Mar 23 18:13:34 2009 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-if 'Keyword' in schema:
-    synchronize_schema('Keyword')
--- a/misc/migration/2.39.0_Any.py	Mon Mar 23 18:13:34 2009 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,9 +0,0 @@
-try:
-    # missing on some old databases
-    sql('CREATE INDEX entities_extid_idx ON entities(extid)')
-except:
-    pass # already exists
-checkpoint() 
-sql('CREATE INDEX entities_type_idx ON entities(type)')
-checkpoint()
-
--- a/server/sources/rql2sql.py	Mon Mar 23 18:13:34 2009 +0100
+++ b/server/sources/rql2sql.py	Mon Mar 23 18:20:23 2009 +0100
@@ -488,8 +488,7 @@
                 sql.insert(1, 'FROM (SELECT 1) AS _T')
             sqls.append('\n'.join(sql))
         if select.need_intersect:
-            # XXX use getattr for lgc bw compat, remove once 0.37.3 is out
-            if distinct or not getattr(self.dbms_helper, 'intersect_all_support', True):
+            if distinct or not self.dbms_helper.intersect_all_support:
                 return '\nINTERSECT\n'.join(sqls)
             else:
                 return '\nINTERSECT ALL\n'.join(sqls)
--- a/server/utils.py	Mon Mar 23 18:13:34 2009 +0100
+++ b/server/utils.py	Mon Mar 23 18:20:23 2009 +0100
@@ -1,7 +1,7 @@
 """Some utilities for the CubicWeb server.
 
 :organization: Logilab
-:copyright: 2001-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+:copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
 """
 __docformat__ = "restructuredtext en"
@@ -128,11 +128,3 @@
     @property
     def name(self):
         return '%s(%s)' % (self._name, Thread.getName(self))
-
-
-from logilab.common.deprecation import class_moved
-from cubicweb.server import pool
-Operation = class_moved(pool.Operation)
-PreCommitOperation = class_moved(pool.PreCommitOperation)
-LateOperation = class_moved(pool.LateOperation)
-SingleLastOperation = class_moved(pool.SingleLastOperation)
--- a/utils.py	Mon Mar 23 18:13:34 2009 +0100
+++ b/utils.py	Mon Mar 23 18:20:23 2009 +0100
@@ -276,9 +276,3 @@
     # XXX deprecated, no more necessary
 
 
-from logilab.common.deprecation import moved, class_moved
-rql_for_eid = moved('cubicweb.common.uilib', 'rql_for_eid')
-ajax_replace_url = moved('cubicweb.common.uilib', 'ajax_replace_url')
-
-import cubicweb
-Binary = class_moved(cubicweb.Binary)