Welcome | Get started | Dive | Contribute | Topics | Reference | Changes | More
lists
: Partner lists¶
The lino_xl.lib.lists
plugin adds functionality for managing partner
lists.
Side note: Code snippets (lines starting with >>>
) in this document get
tested as part of our development workflow. The following
initialization snippet tells you which demo project is being used in
this document.
>>> from lino import startup
>>> startup('lino_book.projects.noi1e.settings.demo')
>>> from lino.api.doctest import *
- class lino_xl.lib.lists.List¶
Django model to represent a partner list.
- name¶
- ref¶
- list_type¶
- remark¶
- class lino_xl.lib.lists.Member¶
Django model to represent a membership of a partner in a list.
- partner¶
- list¶
- remark¶
- seqno¶
>>> rt.show(lists.Lists)
=========== ================================ ==================
Reference overview List Type
----------- -------------------------------- ------------------
`Announcements <…>`__ Mailing list
`Weekly newsletter <…>`__ Mailing list
`General discussion <…>`__ Discussion group
`Beginners forum <…>`__ Discussion group
`Developers forum <…>`__ Discussion group
`PyCon 2014 <…>`__ Flags
`Free Software Day 2014 <…>`__ Flags
`Schools <…>`__ Flags
=========== ================================ ==================
>>> obj = lists.List.objects.get(pk=1)
>>> rt.show(lists.MembersByList, obj)
===== =========================== ======== ========== ===================================================== ===================================================================
No. Partner Remark Workflow Address Contact details
----- --------------------------- -------- ---------- ----------------------------------------------------- -------------------------------------------------------------------
1 Rumma & Ko OÜ Uus tn 1, Vigala vald, 78003 Rapla maakond, Estonia `https://www.saffre-rumma.net/ <https://www.saffre-rumma.net/>`__
9 Bernd Brechts Bücherladen Brienner Straße 18, 80333 Aachen, Germany
17 Bastiaensen Laurent Am Berg, 4700 Eupen
25 Ernst Berta Bergkapellstraße, 4700 Eupen
33 Hilgers Hildegard Favrunpark, 4700 Eupen
41 Kaivers Karl Haasberg, 4700 Eupen
49 Meier Marie-Louise Hisselsgasse, 4700 Eupen
57 Radermacher Edgard 4730 Raeren
65 da Vinci David 4730 Raeren
73 Radermecker Rik Amsterdam, Netherlands
81 Jeanémart Jérôme Paris, France
===== =========================== ======== ========== ===================================================== ===================================================================
The quick search field of a members list looks in the partner names and the membership remark.
>>> rt.show(lists.MembersByList, obj, quick_search="ers")
===== =================== ======== ========== ======================== =================
No. Partner Remark Workflow Address Contact details
----- ------------------- -------- ---------- ------------------------ -----------------
33 Hilgers Hildegard Favrunpark, 4700 Eupen
41 Kaivers Karl Haasberg, 4700 Eupen
===== =================== ======== ========== ======================== =================
>>> [f.name for f in lists.Member.quick_search_fields]
['partner__name', 'remark']