[dataimport] drop no more used parameter on massive store

authorSylvain Thénault <sylvain.thenault@logilab.fr>
changesetbae49ce669bc
branchdefault
phasedraft
hiddenyes
parent revision#d164f93d5dd2 [dataimport] methods that modify in-place shouldn't return value
child revision#d319b3a52d8d [dataimport/test] use store.finish instead of deprecated store.cleanup
files modified by this revision
dataimport/massive_store.py
# HG changeset patch
# User Sylvain Thénault <sylvain.thenault@logilab.fr>
# Date 1445439510 -7200
# Wed Oct 21 16:58:30 2015 +0200
# Node ID bae49ce669bc1d99732029a7ebe9769689c9cde1
# Parent d164f93d5dd22dc771b6d135e58038dc9585c78f
[dataimport] drop no more used parameter on massive store

diff --git a/dataimport/massive_store.py b/dataimport/massive_store.py
@@ -88,11 +88,11 @@
1                   drop_index=True,
2                   pg_schema='public',
3                   iid_maxsize=1024, uri_param_name='rdf:about',
4                   eids_seq_range=10000, eids_seq_start=None,
5                   on_commit_callback=None, on_rollback_callback=None,
6 -                 slave_mode=False, build_entities=False,
7 +                 slave_mode=False,
8                   source=None):
9          """ Create a MassiveObject store, with the following attributes:
10 
11          - cnx: CubicWeb cnx
12          - autoflush_metadata: Boolean.
@@ -109,12 +109,10 @@
13          - eids_seq_start: Int. Set the eids sequence value (if None, nothing is done).
14          - iid_maxsize: Int. Max size of the iid, used to create the
15                      iid_eid convertion table.
16          - uri_param_name: String. If given, will use this parameter to get cw_uri
17                            for entities.
18 -        - build_entities: Boolean. If True, create_entity returns a CW etype object
19 -          (but WITHOUT eid !).
20          """
21          super(MassiveObjectStore, self).__init__(cnx)
22          self.logger = logging.getLogger('dataio.relationmixin')
23          self._cnx = cnx
24          self.sql = cnx.system_sql
@@ -135,11 +133,10 @@
25          self.drop_index = drop_index
26          self.slave_mode = slave_mode
27          self.size_constraints = get_size_constraints(cnx.vreg.schema)
28          self.default_values = get_default_values(cnx.vreg.schema)
29          self._dbh = PGHelper(self._cnx, pg_schema or 'public')
30 -        self._build_entities = build_entities
31          self._data_entities = defaultdict(list)
32          self._data_relations = defaultdict(list)
33          self._now = datetime.now()
34          self._default_cwuri = make_uid('_auto_generated')
35          self.uri_param_name = uri_param_name