[datafeed] don't allow arbitrary kwargs on DatafeedParser initializer
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 23 Sep 2015 10:59:56 +0200
changeset 11255 58be5fe4a232
parent 11254 4f467683b8c9
child 11256 0d9105673ec9
[datafeed] don't allow arbitrary kwargs on DatafeedParser initializer else they will be handled nicely by appobject base class, while we rather want an error in the case of a source parser (arguable).
cubicweb/server/sources/datafeed.py
--- a/cubicweb/server/sources/datafeed.py	Wed Jul 01 08:53:29 2015 +0200
+++ b/cubicweb/server/sources/datafeed.py	Wed Sep 23 10:59:56 2015 +0200
@@ -314,8 +314,8 @@
 class DataFeedParser(AppObject):
     __registry__ = 'parsers'
 
-    def __init__(self, cnx, source, import_log=None, source_uris=None, moved_uris=None, **kwargs):
-        super(DataFeedParser, self).__init__(cnx, **kwargs)
+    def __init__(self, cnx, source, import_log=None, source_uris=None, moved_uris=None):
+        super(DataFeedParser, self).__init__(cnx)
         self.source = source
         self.import_log = import_log
         if source_uris is None: