schema.py
changeset 7990 a673d1d9a738
parent 7973 64639bc94e25
child 8027 9ac82788f67b
--- a/schema.py	Fri Oct 21 14:32:18 2011 +0200
+++ b/schema.py	Fri Oct 21 14:32:37 2011 +0200
@@ -175,8 +175,6 @@
     else:
         return unicode(req._(key))
 
-__builtins__['display_name'] = deprecated('[3.4] display_name should be imported from cubicweb.schema')(display_name)
-
 
 # Schema objects definition ###################################################
 
@@ -931,9 +929,6 @@
 
     @classmethod
     def deserialize(cls, value):
-        # XXX < 3.5.10 bw compat
-        if not value.startswith(';'):
-            return cls(value)
         _, mainvars, expression = value.split(';', 2)
         return cls(expression, mainvars)
 
@@ -973,7 +968,7 @@
     def repo_check(self, session, eidfrom, rtype, eidto):
         """raise ValidationError if the relation doesn't satisfy the constraint
         """
-        pass # this is a vocabulary constraint, not enforce 
+        pass # this is a vocabulary constraint, not enforced
 
 
 class RepoEnforcedRQLConstraintMixIn(object):
@@ -988,9 +983,6 @@
                                self.msg or '')
 
     def deserialize(cls, value):
-        # XXX < 3.5.10 bw compat
-        if not value.startswith(';'):
-            return cls(value)
         value, msg = value.split('\n', 1)
         _, mainvars, expression = value.split(';', 2)
         return cls(expression, mainvars, msg)