entities/adapters.py
branchstable
changeset 9700 da7d341cca76
parent 9440 6880674c1a26
child 9705 1d40d3b10142
equal deleted inserted replaced
9699:990676d3f39f 9700:da7d341cca76
   164     """interface for downloadable entities"""
   164     """interface for downloadable entities"""
   165     __regid__ = 'IDownloadable'
   165     __regid__ = 'IDownloadable'
   166     __abstract__ = True
   166     __abstract__ = True
   167 
   167 
   168     def download_url(self, **kwargs): # XXX not really part of this interface
   168     def download_url(self, **kwargs): # XXX not really part of this interface
   169         """return an url to download entity's content"""
   169         """return a URL to download entity's content"""
   170         raise NotImplementedError
   170         raise NotImplementedError
   171 
   171 
   172     def download_content_type(self):
   172     def download_content_type(self):
   173         """return MIME type of the downloadable content"""
   173         """return MIME type of the downloadable content"""
   174         raise NotImplementedError
   174         raise NotImplementedError