entities/adapters.py
changeset 5981 3472c051da77
parent 5895 6a3f776292a5
child 6011 b5f15098f282
equal deleted inserted replaced
5980:6dc04e75c8e1 5981:3472c051da77
   157     """interface for downloadable entities"""
   157     """interface for downloadable entities"""
   158     __regid__ = 'IDownloadable'
   158     __regid__ = 'IDownloadable'
   159     __select__ = implements(IDownloadable, warn=False) # XXX for bw compat, else should be abstract
   159     __select__ = implements(IDownloadable, warn=False) # XXX for bw compat, else should be abstract
   160 
   160 
   161     @implements_adapter_compat('IDownloadable')
   161     @implements_adapter_compat('IDownloadable')
   162     def download_url(self): # XXX not really part of this interface
   162     def download_url(self, **kwargs): # XXX not really part of this interface
   163         """return an url to download entity's content"""
   163         """return an url to download entity's content"""
   164         raise NotImplementedError
   164         raise NotImplementedError
   165     @implements_adapter_compat('IDownloadable')
   165     @implements_adapter_compat('IDownloadable')
   166     def download_content_type(self):
   166     def download_content_type(self):
   167         """return MIME type of the downloadable content"""
   167         """return MIME type of the downloadable content"""