Welcome | Get started | Dive | Contribute | Topics | Reference | Changes | More
books : Generate printable books and similar documents¶
Adds database models and functionality to manage books.
This document assumes you have read The books plugin.
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.
>>> from lino_book.projects.noi2.startup import *
The lino_book.projects.noi2 demo project uses songs.Song as the tickets
of a BookSection.
Demo data¶
The plugin adds some songs as demo data in order to demonstrate what it can do.
>>> rt.show('books.Books')
- [**Songbook**](…) — Here is our collection of great songs. This document is
meant to get printed as a pdf songsheet.
>>> rt.show('books.BookSections')
==== ===== ====== ========= ================ ============== ========== ============== ======================================
ID No. Body Preview Preview (full) Title Subtitle Book Song
---- ----- ------ --------- ---------------- -------------- ---------- -------------- --------------------------------------
1 1 Introduction Songbook
2 2 Songbook Gott ist gegenwärtig
4 3 Songbook Ligidal on Jumal
5 4 Songbook Dans sa maison
7 5 Songbook Põdral maja
8 6 Songbook Wer nur den lieben Gott lässt walten
10 7 Songbook Kes Jumalat nii laseb teha
3 201 New songbook Gott ist gegenwärtig
6 202 New songbook Dans sa maison
9 203 New songbook Wer nur den lieben Gott lässt walten
==== ===== ====== ========= ================ ============== ========== ============== ======================================
Reference¶
- booklet.weasy.html`¶
Template file used by Book.build_content() to build a pdf.
- class lino_xl.lib.books.Book¶
Django model used to represent a book.