doc/tutorials/index.rst
author Laurent Peuch <cortex@worlddomination.be>
Mon, 22 Jul 2019 11:21:10 +0200 (2019-07-22)
changeset 12696 eb83daa69495
parent 10500 d1164ba9ac23
permissions -rw-r--r--
[cubicweb-ctl] respect sys.exit status code when aborting a command When exploring the stack of all calls to a cubicweb-ctl command, it has been discovered than on a KeyboardInterrupt and on a SystemExit exception the base class InstanceCommand (for commands that works on one instance) will always set the return code of cubicweb-ctl to 8: this mean that if another command do a `sys.exit(some_code)` the exit code will be ignored and overwritten by '8'. This behavior is not intuitive, apparently not documented and doesn't seems to have any justification. It also prevent commands from exciting with different return codes which could be a desired behavior in the situation of scripting.
Tutorials
~~~~~~~~~

We present a few tutorials of different levels. The blog building
tutorial introduces one smoothly to the basic concepts.

Then there is a photo gallery construction tutorial which highlights
more advanced concepts such as unit tests, security settings,
migration scripts.

.. toctree::
   :maxdepth: 1

   base/index
   advanced/index
   tools/windmill.rst
   textreports/index
   dataimport/index