Welcome | Get started | Dive into Lino | Contribute | Reference

publisher : render database content as styled html

The lino_xl.lib.publisher plugin deserves better documentation.

It doesn't add any database model, but a choicelist, a model mixin and an action. It also adds a printing build method (lino.modlib.printing.BuildMethods).

This is a tested document. The following instructions are used for initialization:

>>> from lino import startup
>>> startup('lino_book.projects.cms1.settings')
>>> from lino.api.doctest import *


class lino_xl.lib.publisher.PublisherViews

A choicelist with the publisher views available on this site.

>>> rt.show(publisher.PublisherViews)
========== ===================== ====== ========================= =====================
 Location   value                 name   text                      Data view
---------- --------------------- ------ ------------------------- ---------------------
 p          pages.PublicNodes            p (pages.PublicNodes)     pages.PublicNodes
 b          blogs.PublicEntries          b (blogs.PublicEntries)   blogs.PublicEntries
========== ===================== ====== ========================= =====================
class lino_xl.lib.publisher.PublisherBuildMethod

This deserves better documentation.

class lino_xl.lib.publisher.Publishable

This deserves better documentation.

class lino_xl.lib.publisher.PreviewPublication

This deserves better documentation.



It this is not None, it must be the location of a publisher view (an item of PublisherViews)

Specifying the "home_view" will already put the admin frontend in the publisher.admin_location


The location of the admin main page.