Welcome | Get started | Dive | Contribute | Topics | Reference | Changes | More
lets1
: First prototype of the LETS tutorial¶
A demo project that will be used the new LETS tutorial. Started as a
copy of lino_lets
>>> from lino import startup
>>> startup('lino_book.projects.lets1.settings')
>>> from lino.api.doctest import *
>>> ses = rt.login('robin')
>>> walk_menu_items('robin')
- Members --> Members : 10
- Market --> Products : 7
- Market --> Offers : 6
- Market --> Demands : 4
- Configure --> System --> Members : 10
- Configure --> System --> Site configuration : (not tested)
- Configure --> Market --> Places : 5
- Explorer --> System --> Authorities : 1
- Explorer --> System --> User types : 3
- Explorer --> System --> User roles : 2
- Explorer --> Market --> Delivery units : 4
- Site --> About : (not tested)
- Site --> User sessions : ...
>>> ses.show("market.ActiveProducts", max_width=35)
+-------------------------+-------------------------------------+-------------------------------------+
| Designation | Offers | Demands |
+=========================+=====================================+=====================================+
| Bread | `Fred offers Bread <…>`__ | |
+-------------------------+-------------------------------------+-------------------------------------+
| Buckwheat | `Fred offers Buckwheat <…>`__, | `Henri wants Buckwheat <…>`__ |
| | `Anne offers Buckwheat <…>`__ | |
+-------------------------+-------------------------------------+-------------------------------------+
| Eggs | | `Henri wants Eggs <…>`__, `Mari |
| | | wants Eggs <…>`__ |
+-------------------------+-------------------------------------+-------------------------------------+
| Electricity repair work | `Henri offers Electricity repair | |
| | work <…>`__, `Argo offers | |
| | Electricity repair work <…>`__ | |
+-------------------------+-------------------------------------+-------------------------------------+
>>> ses.show("users.AllUsers", max_width=35)
+------------+----------+-------------------------------------+-------------------------------------+
| First name | Place | Offers | Demands |
+============+==========+=====================================+=====================================+
| Anne | Tallinn | `Anne offers Buckwheat <…>`__ | |
+------------+----------+-------------------------------------+-------------------------------------+
| Argo | Haapsalu | `Argo offers Electricity repair | |
| | | work <…>`__ | |
+------------+----------+-------------------------------------+-------------------------------------+
| Fred | Tallinn | `Fred offers Bread <…>`__, `Fred | |
| | | offers Buckwheat <…>`__ | |
+------------+----------+-------------------------------------+-------------------------------------+
| Henri | Tallinn | `Henri offers Electricity repair | `Henri wants Buckwheat <…>`__, |
| | | work <…>`__ | `Henri wants Eggs <…>`__ |
+------------+----------+-------------------------------------+-------------------------------------+
| Jaanika | Tallinn | | |
+------------+----------+-------------------------------------+-------------------------------------+
| Katrin | Vigala | | |
+------------+----------+-------------------------------------+-------------------------------------+
| Mari | Tartu | | `Mari wants Eggs <…>`__ |
+------------+----------+-------------------------------------+-------------------------------------+
| Peter | Vigala | | |
+------------+----------+-------------------------------------+-------------------------------------+
| Robin | | | |
+------------+----------+-------------------------------------+-------------------------------------+