--- a/entities/__init__.py Fri Jul 31 19:18:33 2009 +0200
+++ b/entities/__init__.py Fri Jul 31 22:37:28 2009 +0200
@@ -9,7 +9,7 @@
from warnings import warn
-from logilab.common.deprecation import deprecated_function, obsolete
+from logilab.common.deprecation import deprecated
from logilab.common.decorators import cached
from cubicweb import Unauthorized, typed_eid
@@ -239,22 +239,22 @@
wdg = widget(cls.vreg, tschema, rschema, cls, 'object')
return wdg
- @obsolete('use EntityFieldsForm.subject_relation_vocabulary')
+ @deprecated('use EntityFieldsForm.subject_relation_vocabulary')
def subject_relation_vocabulary(self, rtype, limit):
form = self.vreg.select('forms', 'edition', self.req, entity=self)
return form.subject_relation_vocabulary(rtype, limit)
- @obsolete('use EntityFieldsForm.object_relation_vocabulary')
+ @deprecated('use EntityFieldsForm.object_relation_vocabulary')
def object_relation_vocabulary(self, rtype, limit):
form = self.vreg.select('forms', 'edition', self.req, entity=self)
return form.object_relation_vocabulary(rtype, limit)
- @obsolete('use AutomaticEntityForm.[e]relations_by_category')
+ @deprecated('use AutomaticEntityForm.[e]relations_by_category')
def relations_by_category(self, categories=None, permission=None):
from cubicweb.web.views.autoform import AutomaticEntityForm
return AutomaticEntityForm.erelations_by_category(self, categories, permission)
- @obsolete('use AutomaticEntityForm.[e]srelations_by_category')
+ @deprecated('use AutomaticEntityForm.[e]srelations_by_category')
def srelations_by_category(self, categories=None, permission=None):
from cubicweb.web.views.autoform import AutomaticEntityForm
return AutomaticEntityForm.esrelations_by_category(self, categories, permission)