equal
deleted
inserted
replaced
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""" |