entities/adapters.py
branchstable
changeset 6864 ea95004494a2
parent 6752 7351806cd485
child 6974 6f23b2baf99b
--- a/entities/adapters.py	Thu Jan 20 17:14:28 2011 +0100
+++ b/entities/adapters.py	Fri Jan 21 11:48:19 2011 +0100
@@ -68,6 +68,7 @@
 
 
 class INotifiableAdapter(EntityAdapter):
+    __needs_bw_compat__ = True
     __regid__ = 'INotifiable'
     __select__ = is_instance('Any')
 
@@ -157,6 +158,7 @@
 
 class IDownloadableAdapter(EntityAdapter):
     """interface for downloadable entities"""
+    __needs_bw_compat__ = True
     __regid__ = 'IDownloadable'
     __select__ = implements(IDownloadable, warn=False) # XXX for bw compat, else should be abstract
 
@@ -208,6 +210,7 @@
     .. automethod: children_rql
     .. automethod: path
     """
+    __needs_bw_compat__ = True
     __regid__ = 'ITree'
     __select__ = implements(ITree, warn=False) # XXX for bw compat, else should be abstract
 
@@ -335,8 +338,8 @@
             for entity in child.cw_adapt_to('ITree').prefixiter(_done):
                 yield entity
 
+    @implements_adapter_compat('ITree')
     @cached
-    @implements_adapter_compat('ITree')
     def path(self):
         """Returns the list of eids from the root object to this object."""
         path = []
@@ -366,6 +369,7 @@
     You should at least override progress_info an in_progress methods on concret
     implementations.
     """
+    __needs_bw_compat__ = True
     __regid__ = 'IProgress'
     __select__ = implements(IProgress, warn=False) # XXX for bw compat, should be abstract
 
@@ -434,6 +438,7 @@
 
 
 class IMileStoneAdapter(IProgressAdapter):
+    __needs_bw_compat__ = True
     __regid__ = 'IMileStone'
     __select__ = implements(IMileStone, warn=False) # XXX for bw compat, should be abstract