entities/adapters.py
changeset 10731 0736e31f8644
parent 10671 e08102f45237
child 10732 6231587fcfc5
equal deleted inserted replaced
10730:874ac29b515d 10731:0736e31f8644
   185     def download_file_name(self):
   185     def download_file_name(self):
   186         """return file name of the downloadable content"""
   186         """return file name of the downloadable content"""
   187         raise NotImplementedError
   187         raise NotImplementedError
   188 
   188 
   189     def download_data(self):
   189     def download_data(self):
   190         """return actual data of the downloadable content"""
   190         """return actual data (bytes) of the downloadable content"""
   191         raise NotImplementedError
   191         raise NotImplementedError
   192 
   192 
   193 # XXX should propose to use two different relations for children/parent
   193 # XXX should propose to use two different relations for children/parent
   194 class ITreeAdapter(view.EntityAdapter):
   194 class ITreeAdapter(view.EntityAdapter):
   195     """This adapter provides a tree interface.
   195     """This adapter provides a tree interface.