[dataimport] Update doc to reflect new API
authorRémi Cardona <remi.cardona@logilab.fr>
Tue, 06 Oct 2015 15:06:45 +0200
changeset 10794 0b4d6beec132
parent 10793 8316fdad9987
child 10795 839ea43f4d5b
[dataimport] Update doc to reflect new API relate() looks deprecated.
dataimport/stores.py
--- a/dataimport/stores.py	Mon Oct 26 15:22:09 2015 +0100
+++ b/dataimport/stores.py	Tue Oct 06 15:06:45 2015 +0200
@@ -21,7 +21,7 @@
 
     >>> user_eid = store.prepare_insert_entity('CWUser', login=u'johndoe')
     >>> group_eid = store.prepare_insert_entity('CWUser', name=u'unknown')
-    >>> store.relate(user_eid, 'in_group', group_eid)
+    >>> store.prepare_insert_relation(user_eid, 'in_group', group_eid)
     >>> store.flush()
     >>> store.commit()
     >>> store.finish()