[idownloadable] fix download_url prototype: should accept arbitrary kwargs to add as form parameters to the generated url
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 16 Jul 2010 11:41:17 +0200
changeset 5981 3472c051da77
parent 5980 6dc04e75c8e1
child 5982 30985571dbc9
[idownloadable] fix download_url prototype: should accept arbitrary kwargs to add as form parameters to the generated url
entities/adapters.py
--- a/entities/adapters.py	Fri Jul 16 11:39:28 2010 +0200
+++ b/entities/adapters.py	Fri Jul 16 11:41:17 2010 +0200
@@ -159,7 +159,7 @@
     __select__ = implements(IDownloadable, warn=False) # XXX for bw compat, else should be abstract
 
     @implements_adapter_compat('IDownloadable')
-    def download_url(self): # XXX not really part of this interface
+    def download_url(self, **kwargs): # XXX not really part of this interface
         """return an url to download entity's content"""
         raise NotImplementedError
     @implements_adapter_compat('IDownloadable')