doc/tutorials/textreports/index.rst
author Laurent Peuch <cortex@worlddomination.be>
Thu, 25 Jul 2019 03:33:01 +0200
changeset 12735 17d1b1f4eddd
parent 10491 c67bcee93248
permissions -rw-r--r--
[cubicweb-ctl/fix] correctly get exception traceback_ for pdb.post_mortem In python 3 the behavior of sys.exc_info had a very subtle change: - in python 2 you can call if whenever you want after a try/except statement and you'll get information about this last raise - ipython 3, once you get out of try/except, sys.exc_info is cleaned and you'll get (None, None, None) Hardened the test to avoid this error from happening again.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8852
59a29405688c [ext/rest] add directive bookmark to rest (closes #2545595)
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     1
.. -*- coding: utf-8 -*-
59a29405688c [ext/rest] add directive bookmark to rest (closes #2545595)
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     2
59a29405688c [ext/rest] add directive bookmark to rest (closes #2545595)
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     3
Writing text reports with RestructuredText
59a29405688c [ext/rest] add directive bookmark to rest (closes #2545595)
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     4
==========================================
59a29405688c [ext/rest] add directive bookmark to rest (closes #2545595)
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     5
59a29405688c [ext/rest] add directive bookmark to rest (closes #2545595)
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     6
|cubicweb| offers several text formats for the RichString type used in schemas,
59a29405688c [ext/rest] add directive bookmark to rest (closes #2545595)
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     7
including restructuredtext.
59a29405688c [ext/rest] add directive bookmark to rest (closes #2545595)
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     8
59a29405688c [ext/rest] add directive bookmark to rest (closes #2545595)
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     9
Three additional restructuredtext roles are defined by |cubicweb|:
59a29405688c [ext/rest] add directive bookmark to rest (closes #2545595)
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
    10
10022
927a795bb380 [book] several fixes in the rst files
David Douard <david.douard@logilab.fr>
parents: 8852
diff changeset
    11
.. autofunction:: cubicweb.ext.rest.eid_reference_role
927a795bb380 [book] several fixes in the rst files
David Douard <david.douard@logilab.fr>
parents: 8852
diff changeset
    12
.. autofunction:: cubicweb.ext.rest.rql_role
927a795bb380 [book] several fixes in the rst files
David Douard <david.douard@logilab.fr>
parents: 8852
diff changeset
    13
.. autofunction:: cubicweb.ext.rest.bookmark_role