entities/adapters.py
changeset 6974 6f23b2baf99b
parent 6864 ea95004494a2
child 7815 2a164a9cf81c
equal deleted inserted replaced
6973:d2cd38749c17 6974:6f23b2baf99b
   181     @implements_adapter_compat('IDownloadable')
   181     @implements_adapter_compat('IDownloadable')
   182     def download_data(self):
   182     def download_data(self):
   183         """return actual data of the downloadable content"""
   183         """return actual data of the downloadable content"""
   184         raise NotImplementedError
   184         raise NotImplementedError
   185 
   185 
   186 
   186 # XXX should propose to use two different relations for children/parent
   187 class ITreeAdapter(EntityAdapter):
   187 class ITreeAdapter(EntityAdapter):
   188     """This adapter has to be overriden to be configured using the
   188     """This adapter has to be overriden to be configured using the
   189     tree_relation, child_role and parent_role class attributes to benefit from
   189     tree_relation, child_role and parent_role class attributes to benefit from
   190     this default implementation.
   190     this default implementation.
   191 
   191