[deprecation] enhanced messages
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 15 Oct 2010 11:25:59 +0200
changeset 6499 c4123c741c66
parent 6498 0ad62d6b6f8e
child 6500 e288df2e2f18
[deprecation] enhanced messages
entity.py
web/box.py
--- a/entity.py	Fri Oct 15 11:25:51 2010 +0200
+++ b/entity.py	Fri Oct 15 11:25:59 2010 +0200
@@ -1094,7 +1094,7 @@
             return self
         return eobj.cw_attr_value(self._attrname)
 
-    @deprecated('[3.10] use entity.cw_attr_cache[attr] = value')
+    @deprecated('[3.10] assign to entity.cw_attr_cache[attr] or entity.cw_edited[attr]')
     def __set__(self, eobj, value):
         if hasattr(eobj, 'cw_edited') and not eobj.cw_edited.saved:
             eobj.cw_edited[self._attrname] = value
--- a/web/box.py	Fri Oct 15 11:25:51 2010 +0200
+++ b/web/box.py	Fri Oct 15 11:25:59 2010 +0200
@@ -191,5 +191,5 @@
 
 AjaxEditRelationBoxTemplate = class_renamed(
     'AjaxEditRelationBoxTemplate', AjaxEditRelationCtxComponent,
-    '[3.10] AjaxEditRelationBoxTemplate has been renamed to AjaxEditRelationCtxComponent')
+    '[3.10] AjaxEditRelationBoxTemplate has been renamed to AjaxEditRelationCtxComponent (%(cls)s)')