--- a/doc/tutorials/advanced/part02_security.rst Tue Sep 12 15:05:22 2017 +0200
+++ b/doc/tutorials/advanced/part02_security.rst Fri Sep 15 14:14:46 2017 +0200
@@ -194,7 +194,7 @@
def precommit_event(self):
for eid in self.get_data():
- entity = self.session.entity_from_eid(eid)
+ entity = self.cnx.entity_from_eid(eid)
if entity.visibility == 'parent':
entity.cw_set(visibility=u'authenticated')
@@ -364,7 +364,7 @@
.. sourcecode:: bash
- $ pytest unittest_sytweb.py
+ $ python test/unittest_sytweb.py
======================== unittest_sytweb.py ========================
-> creating tables [....................]
-> inserting default user and default groups.
@@ -382,7 +382,7 @@
.. sourcecode:: bash
- $ pytest unittest_sytweb.py
+ $ python test/unittest_sytweb.py
======================== unittest_sytweb.py ========================
.
----------------------------------------------------------------------
@@ -396,11 +396,6 @@
$ rm data/database/tmpdb*
-.. Note::
- pytest is a very convenient utility used to control test execution. It is available from the `logilab-common`_ package.
-
-.. _`logilab-common`: http://www.logilab.org/project/logilab-common
-
.. _adv_tuto_migration_script:
Step 4: writing the migration script and migrating the instance