[datafeed] renaming parser attribute to parser_id makes things clearer
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 16 Jun 2011 19:46:39 +0200
changeset 7527 ef1e9bc38137
parent 7514 32081892850e
child 7531 e891ca479586
[datafeed] renaming parser attribute to parser_id makes things clearer
server/sources/datafeed.py
--- a/server/sources/datafeed.py	Wed Jun 15 17:16:19 2011 +0200
+++ b/server/sources/datafeed.py	Thu Jun 16 19:46:39 2011 +0200
@@ -78,7 +78,7 @@
 
     def _entity_update(self, source_entity):
         source_entity.complete()
-        self.parser = source_entity.parser
+        self.parser_id = source_entity.parser
         self.latest_retrieval = source_entity.latest_retrieval
         self.urls = [url.strip() for url in source_entity.url.splitlines()
                      if url.strip()]
@@ -95,12 +95,12 @@
     def init(self, activated, source_entity):
         if activated:
             self._entity_update(source_entity)
-        self.parser = source_entity.parser
+        self.parser_id = source_entity.parser
         self.load_mapping(source_entity._cw)
 
     def _get_parser(self, session, **kwargs):
         return self.repo.vreg['parsers'].select(
-            self.parser, session, source=self, **kwargs)
+            self.parser_id, session, source=self, **kwargs)
 
     def load_mapping(self, session):
         self.mapping = {}