doc/tutorials/textreports/index.rst
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 05 Oct 2017 17:24:29 +0200
branch3.25
changeset 12204 95e0883e2375
parent 10491 c67bcee93248
permissions -rw-r--r--
[web/form] Relax condition for non-translating field names we should test true condition instead of None, so if one raise a ValidationError using an empty string as 'no-field' marker instead of None, we don't get the PO file header that gettext likes to return when one attempt to translate an empty string.

.. -*- coding: utf-8 -*-

Writing text reports with RestructuredText
==========================================

|cubicweb| offers several text formats for the RichString type used in schemas,
including restructuredtext.

Three additional restructuredtext roles are defined by |cubicweb|:

.. autofunction:: cubicweb.ext.rest.eid_reference_role
.. autofunction:: cubicweb.ext.rest.rql_role
.. autofunction:: cubicweb.ext.rest.bookmark_role