entities/adapters.py
branchstable
changeset 9705 1d40d3b10142
parent 9700 da7d341cca76
child 9918 228c3571e222
equal deleted inserted replaced
9704:43c9896d0e9f 9705:1d40d3b10142
   185         """return actual data of the downloadable content"""
   185         """return actual data of the downloadable content"""
   186         raise NotImplementedError
   186         raise NotImplementedError
   187 
   187 
   188 # XXX should propose to use two different relations for children/parent
   188 # XXX should propose to use two different relations for children/parent
   189 class ITreeAdapter(view.EntityAdapter):
   189 class ITreeAdapter(view.EntityAdapter):
   190     """This adapter has to be overriden to be configured using the
   190     """This adapter provides a tree interface.
   191     tree_relation, child_role and parent_role class attributes to benefit from
   191 
   192     this default implementation.
   192     It has to be overriden to be configured using the tree_relation,
   193 
   193     child_role and parent_role class attributes to benefit from this default
   194     This adapter provides a tree interface. It has to be overriden to be
   194     implementation.
   195     configured using the tree_relation, child_role and parent_role class
       
   196     attributes to benefit from this default implementation.
       
   197 
   195 
   198     This class provides the following methods:
   196     This class provides the following methods:
   199 
   197 
   200     .. automethod: iterparents
   198     .. automethod: iterparents
   201     .. automethod: iterchildren
   199     .. automethod: iterchildren