Welcome | Get started | Dive | Contribute | Topics | Reference | Changes | More

cms (main plugin for Lino CMS)

In Lino CMS this plugin defines the locale directory for all translations.

This page contains code snippets (lines starting with >>>), which are being tested during our development workflow. The following snippet initializes the demo project used throughout this page.

>>> import lino
>>> lino.startup('lino_book.projects.cms1.settings')
>>> from lino.api.doctest import *
>>> rt.show(checkdata.Messages)
...
============= ===========...=== ========================================================= ========================================================
 Responsible   Database object   Message text                                              Checker
------------- -----------...--- --------------------------------------------------------- --------------------------------------------------------
 Robin Rood    `...png <…>`__    Stored file size None differs from real file size 25620   uploads.UploadChecker (Check metadata of upload files)
============= ===========...=== ========================================================= ========================================================
>>> obj = blogs.Entry.objects.get(id=2)
>>> obj.body_short_preview
...
'<a href="/admin/#/api/uploads/Uploads/17" target="_blank"><img
src="/media/thumbs/uploads/2022/09/crossroads.jpg" style="padding:4px;
max-width:100%; float:left; max-height:20ex" title="Crossroads, Kilham West
Field - geograph.org.uk - 2097672"/></a>Let\'s choose one or the other of the
either roads (or NOT)! And the hesitation, does it comes rarely(?), Nooo!, we
are very frequently and suddenly put to situations where we must choose between
roads. Of course, how to choose and what to choose are the questions. But did we
ever ask \'why?\' But of co...'