[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).
--- 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: