schema.py
changeset 2616 4501ee760eec
parent 2598 a66fe74bd9fc
parent 2613 5e19c2bb370e
child 2622 3c7edaa6c6d2
--- a/schema.py	Sat Aug 01 00:00:29 2009 +0200
+++ b/schema.py	Sat Aug 01 00:01:12 2009 +0200
@@ -14,7 +14,7 @@
 from warnings import warn
 
 from logilab.common.decorators import cached, clear_cache, monkeypatch
-from logilab.common.deprecation import obsolete
+from logilab.common.deprecation import deprecated
 from logilab.common.compat import any
 
 from yams import BadSchemaDefinition, buildobjs as ybo
@@ -78,7 +78,7 @@
     # ensure unicode
     # added .lower() in case no translation are available
     return unicode(req._(key)).lower()
-__builtins__['display_name'] = obsolete('display_name should be imported from cubicweb.schema')(display_name)
+__builtins__['display_name'] = deprecated('display_name should be imported from cubicweb.schema')(display_name)
 
 def ERSchema_display_name(self, req, form=''):
     """return a internationalized string for the entity/relation type name in