doc/book/devrepo/index.rst
author Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
Thu, 03 May 2018 16:47:51 +0200 (2018-05-03)
changeset 12310 aa999699e504
parent 10491 c67bcee93248
child 12818 3954554f5b48
permissions -rw-r--r--
[python3] make sure staticcontroller returns a bytes instance The ``publish()`` method of controller is supposed to return a bytes intsance. Returning a text_type instance will crash later on in the Pyramid response handler when assigning content to ``response.body`` (at least in Python3):: >>> from pyramid.response import Response >>> r = Response() >>> r.body = '' Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/adim/.virtualenvs/…/response.py", line 562, in _body__set raise TypeError(msg) TypeError: You cannot set Response.body to a text object (use Response.text)
.. _Part2:

----------------------
Repository development
----------------------

This part is about developing applications with the *CubicWeb*
framework. It is not concerned with the web system, which is a
separate layer and has its own whole chapter.

.. toctree::
   :maxdepth: 2
   :numbered:

   cubes/index
   vreg.rst
   datamodel/index
   entityclasses/index
   devcore/index
   repo/index
   testing.rst
   migration.rst
   profiling.rst
   fti.rst
   dataimport