lino 25.5.2__py3-none-any.whl → 25.5.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. lino/__init__.py +1 -1
  2. lino/api/dd.py +5 -3
  3. lino/api/doctest.py +2 -2
  4. lino/core/__init__.py +3 -3
  5. lino/core/actions.py +60 -582
  6. lino/core/actors.py +66 -32
  7. lino/core/atomizer.py +355 -0
  8. lino/core/boundaction.py +8 -4
  9. lino/core/constants.py +3 -1
  10. lino/core/dbtables.py +4 -3
  11. lino/core/elems.py +33 -21
  12. lino/core/fields.py +40 -210
  13. lino/core/kernel.py +18 -13
  14. lino/core/layouts.py +30 -57
  15. lino/core/model.py +6 -4
  16. lino/core/permissions.py +18 -0
  17. lino/core/renderer.py +5 -1
  18. lino/core/requests.py +13 -7
  19. lino/core/signals.py +1 -1
  20. lino/core/site.py +1 -1
  21. lino/core/store.py +13 -156
  22. lino/core/tables.py +5 -2
  23. lino/core/utils.py +124 -1
  24. lino/locale/bn/LC_MESSAGES/django.po +1034 -868
  25. lino/locale/de/LC_MESSAGES/django.mo +0 -0
  26. lino/locale/de/LC_MESSAGES/django.po +996 -892
  27. lino/locale/django.pot +968 -869
  28. lino/locale/es/LC_MESSAGES/django.po +1032 -869
  29. lino/locale/et/LC_MESSAGES/django.po +1032 -866
  30. lino/locale/fr/LC_MESSAGES/django.po +1034 -866
  31. lino/locale/nl/LC_MESSAGES/django.po +1040 -868
  32. lino/locale/pt_BR/LC_MESSAGES/django.po +1029 -868
  33. lino/locale/zh_Hant/LC_MESSAGES/django.po +1029 -868
  34. lino/mixins/duplicable.py +8 -2
  35. lino/mixins/registrable.py +1 -1
  36. lino/modlib/changes/utils.py +4 -3
  37. lino/modlib/extjs/ext_renderer.py +1 -1
  38. lino/modlib/extjs/views.py +5 -0
  39. lino/modlib/memo/mixins.py +1 -3
  40. lino/modlib/uploads/ui.py +6 -8
  41. lino/modlib/users/fixtures/demo_users.py +16 -13
  42. lino/utils/choosers.py +11 -1
  43. lino/utils/diag.py +6 -4
  44. lino/utils/fieldutils.py +14 -11
  45. lino/utils/instantiator.py +4 -2
  46. lino/utils/report.py +5 -3
  47. {lino-25.5.2.dist-info → lino-25.5.3.dist-info}/METADATA +1 -1
  48. {lino-25.5.2.dist-info → lino-25.5.3.dist-info}/RECORD +51 -50
  49. {lino-25.5.2.dist-info → lino-25.5.3.dist-info}/WHEEL +0 -0
  50. {lino-25.5.2.dist-info → lino-25.5.3.dist-info}/licenses/AUTHORS.rst +0 -0
  51. {lino-25.5.2.dist-info → lino-25.5.3.dist-info}/licenses/COPYING +0 -0
lino/__init__.py CHANGED
@@ -31,7 +31,7 @@ from django import VERSION
31
31
  from django.apps import AppConfig
32
32
  from django.conf import settings
33
33
  import warnings
34
- __version__ = '25.5.2'
34
+ __version__ = '25.5.3'
35
35
 
36
36
  # import setuptools # avoid UserWarning "Distutils was imported before Setuptools"?
37
37
 
lino/api/dd.py CHANGED
@@ -66,7 +66,8 @@ from lino.core.actions import SubmitDetail, SubmitInsert
66
66
  from lino.core.choicelists import ChoiceList, Choice
67
67
  from lino.core.workflows import State, Workflow, ChangeStateAction
68
68
 
69
- from lino.core.fields import fields_list, ImportedFields
69
+ from lino.core.fields import ImportedFields
70
+ from lino.core.atomizer import fields_list
70
71
  from lino.core.fields import Dummy, DummyField
71
72
  from lino.core.fields import TimeField
72
73
  from lino.core.fields import TableRow
@@ -111,7 +112,8 @@ from lino.core.utils import babel_values
111
112
  from lino.utils.choosers import chooser, action_chooser
112
113
 
113
114
  # from lino.core.layouts import FormLayout
114
- from lino.core.layouts import DetailLayout, InsertLayout, Panel
115
+ from lino.core.utils import Panel
116
+ from lino.core.layouts import DetailLayout, InsertLayout
115
117
  from lino.core.layouts import ParamsLayout, ActionParamsLayout
116
118
  from lino.core.layouts import DummyPanel
117
119
 
@@ -128,7 +130,7 @@ from lino.core.signals import pre_remove_child
128
130
  from lino.core.signals import pre_ui_save
129
131
  from lino.core.signals import post_ui_save
130
132
  from lino.core.signals import pre_ui_build
131
- from lino.core.signals import post_ui_build
133
+ # from lino.core.signals import post_ui_build
132
134
  from lino.core.signals import post_delete, pre_delete
133
135
 
134
136
  from django.db.models.signals import pre_save, post_save
lino/api/doctest.py CHANGED
@@ -528,14 +528,14 @@ def show_parent_layouts():
528
528
  """
529
529
  Show all actors having a parent layout.
530
530
  """
531
- headers = ["name", "parent layout"]
531
+ headers = ["actor", "is used in"]
532
532
  rows = []
533
533
  for a in actors.actors_list:
534
534
  if issubclass(a, AbstractTable) and a.parent_layout:
535
535
  parent = a.parent_layout._datasource
536
536
  row = [str(a), str(parent)] # , parent.__module__]
537
537
  rows.append(row)
538
- print(rstgen.table(headers, rows))
538
+ print(rstgen.table(headers, sorted(rows)))
539
539
 
540
540
 
541
541
  def show_permissions(*args):
lino/core/__init__.py CHANGED
@@ -3,13 +3,13 @@ Contains Lino's core functionalities.
3
3
 
4
4
  For some modules the documentation has already been migrated to prosa:
5
5
 
6
- - `plugin` is documented in :doc:`/api/ad/plugin`
7
- - `site` is documented in :doc:`/api/ad/site`
6
+ - `plugin` is documented in :doc:`/src/lino/core/plugin`
7
+ - `site` is documented in :doc:`/src/lino/core/site`
8
+ - `actions` is documented in :doc:`/src/lino/core/actions`
8
9
 
9
10
  .. autosummary::
10
11
  :toctree:
11
12
 
12
- actions
13
13
  actors
14
14
  boundaction
15
15
  callbacks