Sunday, April 30, 2023¶
I am trying to understand why the Monthly and Daily views say “None in February 2017” and “None on Wed 15/02/2017” while the weekly view says correctly “Planner in Week 7 / 2017 (13 February)”.
Theoretically it should work by specifying the right
details_of_master_template
and title
attributes.
I can currently imagine two possible causes:
some side effect caused by the complex class hierarchy,
react does not call
get_title
![Inheritance diagram of lino_xl.lib.calview.ui.DailyView, lino_xl.lib.calview.ui.WeeklyView, lino_xl.lib.calview.ui.MonthlyView](../../_images/inheritance-62cbb8139afff1395bf47abf94fcf7aa505b08fa.png)
![Inheritance diagram of lino_xl.lib.calview.ui.DailySlave, lino_xl.lib.calview.ui.WeeklySlave, lino_xl.lib.calview.ui.MonthlySlave](../../_images/inheritance-bfe184651d5c4a64fc94848577a33eb3b6c6dbb0.png)
Presto contacts :
![Inheritance diagram of lino_presto.lib.contacts.models.DailyView, lino_presto.lib.contacts.models.WeeklyView](../../_images/inheritance-0b79280060678c43a50aa908e8e04b0b36598c33.png)
>>> from lino import startup
>>> startup('lino_presto.projects.presto1.settings')
>>> from lino.api.doctest import *
>>> print(calview.DailyView.title)
None
>>> print(calview.DailyView.label)
Daily view
>>> ar = rt.login("robin").spawn(calview.DailyView, master_instance=0)
>>> print(ar.get_title())
Daily view
>>> rt.show(calview.Planners)
========= ========= ========== ===================== ==================== ===================
value name text Monthly view Weekly view Daily view
--------- --------- ---------- --------------------- -------------------- -------------------
default default Calendar calview.MonthlyView calview.WeeklyView calview.DailyView
========= ========= ========== ===================== ==================== ===================