rer.linkmap 1.0.4__tar.gz → 1.0.7__tar.gz

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 (117) hide show
  1. rer_linkmap-1.0.7/CHANGES.rst +9 -0
  2. rer_linkmap-1.0.7/CONTRIBUTORS.rst +4 -0
  3. rer_linkmap-1.0.7/DEVELOP.rst +76 -0
  4. rer_linkmap-1.0.7/MANIFEST.in +7 -0
  5. rer_linkmap-1.0.7/PKG-INFO +208 -0
  6. rer_linkmap-1.0.7/README.rst +142 -0
  7. rer_linkmap-1.0.7/docs/conf.py +239 -0
  8. rer_linkmap-1.0.7/docs/index.rst +5 -0
  9. rer_linkmap-1.0.7/setup.cfg +28 -0
  10. rer_linkmap-1.0.7/setup.py +77 -0
  11. rer_linkmap-1.0.7/src/rer/__init__.py +2 -0
  12. rer_linkmap-1.0.7/src/rer/linkmap/__init__.py +5 -0
  13. rer_linkmap-1.0.7/src/rer/linkmap/configure.zcml +49 -0
  14. {rer_linkmap-1.0.4 → rer_linkmap-1.0.7}/src/rer/linkmap/locales/__main__.py +0 -1
  15. rer_linkmap-1.0.7/src/rer/linkmap/permissions.zcml +12 -0
  16. {rer_linkmap-1.0.4 → rer_linkmap-1.0.7}/src/rer/linkmap/profiles/default/metadata.xml +0 -1
  17. rer_linkmap-1.0.7/src/rer/linkmap/setuphandlers.py +26 -0
  18. {rer_linkmap-1.0.4 → rer_linkmap-1.0.7}/src/rer/linkmap/testing.py +21 -15
  19. rer_linkmap-1.0.7/src/rer/linkmap/tests/robot/test_example.robot +66 -0
  20. {rer_linkmap-1.0.4 → rer_linkmap-1.0.7/src/rer/linkmap}/tests/test_linkmap_views.py +100 -64
  21. rer_linkmap-1.0.7/src/rer.linkmap.egg-info/PKG-INFO +208 -0
  22. rer_linkmap-1.0.7/src/rer.linkmap.egg-info/SOURCES.txt +57 -0
  23. rer_linkmap-1.0.7/src/rer.linkmap.egg-info/entry_points.txt +5 -0
  24. rer_linkmap-1.0.7/src/rer.linkmap.egg-info/namespace_packages.txt +1 -0
  25. rer_linkmap-1.0.7/src/rer.linkmap.egg-info/not-zip-safe +1 -0
  26. rer_linkmap-1.0.7/src/rer.linkmap.egg-info/requires.txt +11 -0
  27. rer_linkmap-1.0.7/src/rer.linkmap.egg-info/top_level.txt +1 -0
  28. rer_linkmap-1.0.4/.editorconfig +0 -35
  29. rer_linkmap-1.0.4/.flake8 +0 -22
  30. rer_linkmap-1.0.4/.gitignore +0 -48
  31. rer_linkmap-1.0.4/CHANGELOG.md +0 -25
  32. rer_linkmap-1.0.4/CONTRIBUTORS.md +0 -3
  33. rer_linkmap-1.0.4/MANIFEST.in +0 -14
  34. rer_linkmap-1.0.4/Makefile +0 -146
  35. rer_linkmap-1.0.4/PKG-INFO +0 -194
  36. rer_linkmap-1.0.4/README.md +0 -149
  37. rer_linkmap-1.0.4/bobtemplate.cfg +0 -7
  38. rer_linkmap-1.0.4/docs/.gitignore +0 -7
  39. rer_linkmap-1.0.4/docs/.readthedocs.yaml +0 -25
  40. rer_linkmap-1.0.4/docs/.vale.ini +0 -12
  41. rer_linkmap-1.0.4/docs/LICENSE.md +0 -3
  42. rer_linkmap-1.0.4/docs/Makefile +0 -138
  43. rer_linkmap-1.0.4/docs/README.md +0 -124
  44. rer_linkmap-1.0.4/docs/docs/_static/favicon.ico +0 -0
  45. rer_linkmap-1.0.4/docs/docs/_static/logo.svg +0 -54
  46. rer_linkmap-1.0.4/docs/docs/_templates/404.html +0 -20
  47. rer_linkmap-1.0.4/docs/docs/concepts/index.md +0 -20
  48. rer_linkmap-1.0.4/docs/docs/conf.py +0 -374
  49. rer_linkmap-1.0.4/docs/docs/glossary.md +0 -57
  50. rer_linkmap-1.0.4/docs/docs/how-to-guides/index.md +0 -30
  51. rer_linkmap-1.0.4/docs/docs/index.md +0 -60
  52. rer_linkmap-1.0.4/docs/docs/reference/index.md +0 -23
  53. rer_linkmap-1.0.4/docs/docs/robots.txt +0 -8
  54. rer_linkmap-1.0.4/docs/docs/tutorials/index.md +0 -19
  55. rer_linkmap-1.0.4/docs/pyproject.toml +0 -61
  56. rer_linkmap-1.0.4/docs/styles/config/vocabularies/Base/accept.txt +0 -0
  57. rer_linkmap-1.0.4/docs/styles/config/vocabularies/Base/reject.txt +0 -0
  58. rer_linkmap-1.0.4/docs/styles/config/vocabularies/Plone/accept.txt +0 -51
  59. rer_linkmap-1.0.4/docs/styles/config/vocabularies/Plone/reject.txt +0 -3
  60. rer_linkmap-1.0.4/instance.yaml +0 -5
  61. rer_linkmap-1.0.4/mx.ini +0 -17
  62. rer_linkmap-1.0.4/news/.changelog_template.jinja +0 -15
  63. rer_linkmap-1.0.4/news/1.feature.md +0 -3
  64. rer_linkmap-1.0.4/publiccode.yml +0 -71
  65. rer_linkmap-1.0.4/pyproject.toml +0 -188
  66. rer_linkmap-1.0.4/scripts/create_site.py +0 -65
  67. rer_linkmap-1.0.4/setup.cfg +0 -3
  68. rer_linkmap-1.0.4/setup.py +0 -26
  69. rer_linkmap-1.0.4/src/rer/linkmap/__init__.py +0 -13
  70. rer_linkmap-1.0.4/src/rer/linkmap/configure.zcml +0 -28
  71. rer_linkmap-1.0.4/src/rer/linkmap/dependencies.zcml +0 -7
  72. rer_linkmap-1.0.4/src/rer/linkmap/indexers/configure.zcml +0 -7
  73. rer_linkmap-1.0.4/src/rer/linkmap/permissions.zcml +0 -5
  74. rer_linkmap-1.0.4/src/rer/linkmap/profiles.zcml +0 -32
  75. rer_linkmap-1.0.4/src/rer/linkmap/restapi/services/__init__.py +0 -0
  76. rer_linkmap-1.0.4/src/rer/linkmap/serializers/__init__.py +0 -0
  77. rer_linkmap-1.0.4/src/rer/linkmap/serializers/configure.zcml +0 -10
  78. rer_linkmap-1.0.4/src/rer/linkmap/serializers/summary.py +0 -10
  79. rer_linkmap-1.0.4/src/rer/linkmap/setuphandlers/__init__.py +0 -17
  80. rer_linkmap-1.0.4/src/rer/linkmap/upgrades/__init__.py +0 -0
  81. rer_linkmap-1.0.4/src/rer/linkmap/upgrades/configure.zcml +0 -21
  82. rer_linkmap-1.0.4/src/rer/linkmap/vocabularies/__init__.py +0 -0
  83. rer_linkmap-1.0.4/src/rer/linkmap/vocabularies/configure.zcml +0 -5
  84. rer_linkmap-1.0.4/tests/conftest.py +0 -17
  85. rer_linkmap-1.0.4/tests/setup/test_setup_install.py +0 -22
  86. rer_linkmap-1.0.4/tests/setup/test_setup_uninstall.py +0 -19
  87. {rer_linkmap-1.0.4 → rer_linkmap-1.0.7}/LICENSE.GPL +0 -0
  88. rer_linkmap-1.0.4/LICENSE.md → rer_linkmap-1.0.7/LICENSE.rst +0 -0
  89. {rer_linkmap-1.0.4 → rer_linkmap-1.0.7}/src/rer/linkmap/browser/__init__.py +0 -0
  90. {rer_linkmap-1.0.4 → rer_linkmap-1.0.7}/src/rer/linkmap/browser/configure.zcml +0 -0
  91. {rer_linkmap-1.0.4 → rer_linkmap-1.0.7}/src/rer/linkmap/browser/views.py +0 -0
  92. {rer_linkmap-1.0.4/src/rer/linkmap/content → rer_linkmap-1.0.7/src/rer/linkmap/controlpanels}/__init__.py +0 -0
  93. {rer_linkmap-1.0.4 → rer_linkmap-1.0.7}/src/rer/linkmap/controlpanels/configure.zcml +0 -0
  94. {rer_linkmap-1.0.4 → rer_linkmap-1.0.7}/src/rer/linkmap/controlpanels/settings.py +1 -1
  95. {rer_linkmap-1.0.4 → rer_linkmap-1.0.7}/src/rer/linkmap/interfaces.py +0 -0
  96. {rer_linkmap-1.0.4 → rer_linkmap-1.0.7}/src/rer/linkmap/linkmap.py +2 -2
  97. {rer_linkmap-1.0.4/src/rer/linkmap/controlpanels → rer_linkmap-1.0.7/src/rer/linkmap/locales}/__init__.py +0 -0
  98. {rer_linkmap-1.0.4 → rer_linkmap-1.0.7}/src/rer/linkmap/locales/en/LC_MESSAGES/redturtle.linkmap.po +0 -0
  99. {rer_linkmap-1.0.4 → rer_linkmap-1.0.7}/src/rer/linkmap/locales/it/LC_MESSAGES/redturtle.linkmap.po +0 -0
  100. {rer_linkmap-1.0.4 → rer_linkmap-1.0.7}/src/rer/linkmap/locales/redturtle.linkmap.pot +0 -0
  101. {rer_linkmap-1.0.4 → rer_linkmap-1.0.7}/src/rer/linkmap/profiles/default/browserlayer.xml +0 -0
  102. {rer_linkmap-1.0.4 → rer_linkmap-1.0.7}/src/rer/linkmap/profiles/default/catalog.xml +0 -0
  103. {rer_linkmap-1.0.4 → rer_linkmap-1.0.7}/src/rer/linkmap/profiles/default/controlpanel.xml +0 -0
  104. {rer_linkmap-1.0.4 → rer_linkmap-1.0.7}/src/rer/linkmap/profiles/default/diff_tool.xml +0 -0
  105. {rer_linkmap-1.0.4 → rer_linkmap-1.0.7}/src/rer/linkmap/profiles/default/registry/main.xml +0 -0
  106. {rer_linkmap-1.0.4 → rer_linkmap-1.0.7}/src/rer/linkmap/profiles/default/repositorytool.xml +0 -0
  107. {rer_linkmap-1.0.4 → rer_linkmap-1.0.7}/src/rer/linkmap/profiles/default/rolemap.xml +0 -0
  108. {rer_linkmap-1.0.4 → rer_linkmap-1.0.7}/src/rer/linkmap/profiles/default/types/.gitkeep +0 -0
  109. {rer_linkmap-1.0.4 → rer_linkmap-1.0.7}/src/rer/linkmap/profiles/default/types.xml +0 -0
  110. {rer_linkmap-1.0.4 → rer_linkmap-1.0.7}/src/rer/linkmap/profiles/uninstall/browserlayer.xml +0 -0
  111. {rer_linkmap-1.0.4/src/rer/linkmap/indexers → rer_linkmap-1.0.7/src/rer/linkmap/restapi}/__init__.py +0 -0
  112. {rer_linkmap-1.0.4 → rer_linkmap-1.0.7}/src/rer/linkmap/restapi/configure.zcml +0 -0
  113. {rer_linkmap-1.0.4/src/rer/linkmap/locales → rer_linkmap-1.0.7/src/rer/linkmap/restapi/services}/__init__.py +0 -0
  114. {rer_linkmap-1.0.4 → rer_linkmap-1.0.7}/src/rer/linkmap/restapi/services/configure.zcml +0 -0
  115. {rer_linkmap-1.0.4 → rer_linkmap-1.0.7}/src/rer/linkmap/restapi/services/controlpanel.py +0 -0
  116. {rer_linkmap-1.0.4/src/rer/linkmap/restapi → rer_linkmap-1.0.7/src/rer/linkmap/tests}/__init__.py +0 -0
  117. /rer_linkmap-1.0.4/news/.gitkeep → /rer_linkmap-1.0.7/src/rer.linkmap.egg-info/dependency_links.txt +0 -0
@@ -0,0 +1,9 @@
1
+ Changelog
2
+ =========
3
+
4
+
5
+ 1.0.7 (2026-06-25)
6
+ ------------------
7
+
8
+ - Refactored package for backwards compatibility with old Plone versions.
9
+ [cekk]
@@ -0,0 +1,4 @@
1
+ Contributors
2
+ ============
3
+
4
+ - RedTurtle Technology, sviluppo@redturtle.it
@@ -0,0 +1,76 @@
1
+ Using the development buildout
2
+ ==============================
3
+
4
+ plonecli
5
+ --------
6
+
7
+ The convenient way, use plonecli build ;)::
8
+
9
+ $ plonecli build
10
+
11
+ or with --clear if you want to clean your existing venv::
12
+
13
+ $ plonecli build --clear
14
+
15
+ Start your instance::
16
+
17
+ $ plonecli serve
18
+
19
+
20
+ Without plonecli
21
+ ----------------
22
+
23
+ Create a virtualenv in the package::
24
+
25
+ $ python3 -m venv venv
26
+
27
+ or with --clear if you want to clean your existing venv::
28
+
29
+ $ python3 -m venv venv --clear
30
+
31
+ Install requirements with pip::
32
+
33
+ $ ./venv/bin/pip install -r requirements.txt
34
+
35
+ bootstrap your buildout::
36
+
37
+ $ ./bin/buildout bootstrap
38
+
39
+ Run buildout::
40
+
41
+ $ ./bin/buildout
42
+
43
+ Start Plone in foreground::
44
+
45
+ $ ./bin/instance fg
46
+
47
+
48
+ Running tests
49
+ -------------
50
+
51
+ $ tox
52
+
53
+ list all tox environments::
54
+
55
+ $ tox -l
56
+ py27-Plone43
57
+ py27-Plone51
58
+ py27-Plone52
59
+ py37-Plone52
60
+ build_instance
61
+ code-analysis
62
+ lint-py27
63
+ lint-py37
64
+ coverage-report
65
+
66
+ run a specific tox env::
67
+
68
+ $ tox -e py37-Plone52
69
+
70
+
71
+ CI Github-Actions / codecov
72
+ ---------------------------
73
+
74
+ The first time you push the repo to github, you might get an error from codecov.
75
+ Either you activate the package here: `https://app.codecov.io/gh/collective/+ <https://app.codecov.io/gh/collective/+>`_
76
+ Or you just wait a bit, codecov will activate your package automatically.
@@ -0,0 +1,7 @@
1
+ graft src/rer
2
+ graft docs
3
+ include *.rst
4
+ exclude tox.ini
5
+ exclude *.txt
6
+ exclude .gitlab-ci.yml
7
+ global-exclude *.pyc
@@ -0,0 +1,208 @@
1
+ Metadata-Version: 2.2
2
+ Name: rer.linkmap
3
+ Version: 1.0.7
4
+ Summary: Amministrazione Trasparente link map
5
+ Home-page: https://github.com/collective/rer.linkmap
6
+ Author: RedTurtle Technology
7
+ Author-email: sviluppo@redturtle.it
8
+ License: GPL version 2
9
+ Project-URL: PyPI, https://pypi.org/project/rer.linkmap/
10
+ Project-URL: Source, https://github.com/collective/rer.linkmap
11
+ Project-URL: Tracker, https://github.com/collective/rer.linkmap/issues
12
+ Keywords: Python Plone CMS
13
+ Classifier: Environment :: Web Environment
14
+ Classifier: Framework :: Plone
15
+ Classifier: Framework :: Plone :: Addon
16
+ Classifier: Framework :: Plone :: 5.2
17
+ Classifier: Framework :: Plone :: 6.0
18
+ Classifier: Programming Language :: Python
19
+ Classifier: Programming Language :: Python :: 3.7
20
+ Classifier: Programming Language :: Python :: 3.8
21
+ Classifier: Programming Language :: Python :: 3.9
22
+ Classifier: Operating System :: OS Independent
23
+ Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
24
+ Requires-Python: >=3.7
25
+ License-File: LICENSE.GPL
26
+ License-File: LICENSE.rst
27
+ Requires-Dist: setuptools
28
+ Requires-Dist: z3c.jbot
29
+ Requires-Dist: plone.api>=1.8.4
30
+ Requires-Dist: plone.app.dexterity
31
+ Provides-Extra: test
32
+ Requires-Dist: plone.app.testing; extra == "test"
33
+ Requires-Dist: plone.testing>=5.0.0; extra == "test"
34
+ Requires-Dist: plone.app.contenttypes; extra == "test"
35
+ Requires-Dist: plone.app.robotframework[debug]; extra == "test"
36
+ Requires-Dist: defusedxml; extra == "test"
37
+ Dynamic: author
38
+ Dynamic: author-email
39
+ Dynamic: classifier
40
+ Dynamic: description
41
+ Dynamic: home-page
42
+ Dynamic: keywords
43
+ Dynamic: license
44
+ Dynamic: project-url
45
+ Dynamic: provides-extra
46
+ Dynamic: requires-dist
47
+ Dynamic: requires-python
48
+ Dynamic: summary
49
+
50
+ .. This README is meant for consumption by humans and PyPI. PyPI can render rst files so please do not use Sphinx features.
51
+ If you want to learn more about writing documentation, please check out: http://docs.plone.org/about/documentation_styleguide.html
52
+ This text does not appear on PyPI or github. It is a comment.
53
+
54
+ .. image:: https://github.com/collective/rer.linkmap/actions/workflows/plone-package.yml/badge.svg
55
+ :target: https://github.com/collective/rer.linkmap/actions/workflows/plone-package.yml
56
+
57
+ .. image:: https://coveralls.io/repos/github/collective/rer.linkmap/badge.svg?branch=main
58
+ :target: https://coveralls.io/github/collective/rer.linkmap?branch=main
59
+ :alt: Coveralls
60
+
61
+ .. image:: https://codecov.io/gh/collective/rer.linkmap/branch/master/graph/badge.svg
62
+ :target: https://codecov.io/gh/collective/rer.linkmap
63
+
64
+ .. image:: https://img.shields.io/pypi/v/rer.linkmap.svg
65
+ :target: https://pypi.python.org/pypi/rer.linkmap/
66
+ :alt: Latest Version
67
+
68
+ .. image:: https://img.shields.io/pypi/status/rer.linkmap.svg
69
+ :target: https://pypi.python.org/pypi/rer.linkmap
70
+ :alt: Egg Status
71
+
72
+ .. image:: https://img.shields.io/pypi/pyversions/rer.linkmap.svg?style=plastic
73
+ :alt: Supported - Python Versions
74
+
75
+ .. image:: https://img.shields.io/pypi/l/rer.linkmap.svg
76
+ :target: https://pypi.python.org/pypi/rer.linkmap/
77
+ :alt: License
78
+
79
+
80
+ ============
81
+ RER Link map
82
+ ============
83
+
84
+ "Amministrazione Trasparente" link map
85
+
86
+ Features
87
+ --------
88
+
89
+ - Control panel for configuring all transparency-map URLs.
90
+ - Dedicated outputs at portal root:
91
+ - `at_map.json`
92
+ - `at_map.xml`
93
+ - Independent flags to enable/disable JSON and XML exposure.
94
+ - REST API control panel integration (`linkmap-settings`).
95
+
96
+
97
+ Installation
98
+ ------------
99
+
100
+ Install rer.linkmap by adding it to your buildout::
101
+
102
+ [buildout]
103
+
104
+ ...
105
+
106
+ eggs =
107
+ rer.linkmap
108
+
109
+
110
+ and then running ``bin/buildout``
111
+
112
+
113
+ Configuration
114
+ -------------
115
+
116
+ After installation, configure the add-on in:
117
+
118
+ - Site Setup -> Link map settings (`linkmap-settings`)
119
+
120
+ Main options:
121
+
122
+ - `expose_json`: enable/disable `@@at_map.json`
123
+ - `expose_xml`: enable/disable `@@at_map.xml`
124
+ - `data_ultima_modifica`: date string in `GG/MM/AAAA`
125
+ - one URL field for each transparency section key
126
+
127
+ If a format is disabled, the corresponding view returns `404 Not Found`.
128
+
129
+ Output Endpoints
130
+ ----------------
131
+ Endpoints are available only on the portal root context:
132
+
133
+ - `/at_map.json`
134
+ - `/at_map.xml`
135
+
136
+ JSON example
137
+ ------------
138
+
139
+ .. code-block:: json
140
+
141
+ {
142
+ "at_art2_bis_c1": {
143
+ "amministrazione_trasparente": "https://www.example.org/amministrazione-trasparente",
144
+ "disposizioni_generali": "https://www.example.org/disposizioni-generali"
145
+ },
146
+ "data_ultima_modifica": "17/06/2026"
147
+ }
148
+
149
+ XML example
150
+ -----------
151
+
152
+ .. code-block:: xml
153
+
154
+ <?xml version="1.0" encoding="utf-8"?>
155
+ <amministrazione_trasparente xmlns="https://guida-servizi.anticorruzione.it/trasparenza">
156
+ <data_ultima_modifica>18/06/2026</data_ultima_modifica>
157
+ <map>
158
+ <at_art2_bis_c1>
159
+ <amministrazione_trasparente>https://www.example.org/at</amministrazione_trasparente>
160
+ <accesso_civico>https://www.example.org/accesso-civico</accesso_civico>
161
+ </at_art2_bis_c1>
162
+ </map>
163
+ </amministrazione_trasparente>
164
+
165
+ REST API Integration
166
+ --------------------
167
+
168
+
169
+ The add-on registers a restapi control panel adapter named
170
+ `linkmap-settings`, based on the same schema used by the classic control panel.
171
+
172
+ Credits
173
+ -------
174
+
175
+ Developed with the support of `Regione Emilia Romagna <http://www.regione.emilia-romagna.it>`_
176
+
177
+ Regione Emilia Romagna supports the `PloneGov initiative <http://www.plonegov.it>`_.
178
+
179
+ Authors
180
+ -------
181
+
182
+ This product was developed by **RedTurtle Technology** team.
183
+
184
+ Generated using `Cookieplone <https://github.com/plone/cookieplone>`_ and
185
+ `cookieplone-templates <https://github.com/plone/cookieplone-templates>`_.
186
+
187
+
188
+ License
189
+ -------
190
+
191
+ This project is licensed under the GPLv2.
192
+
193
+
194
+ Contributors
195
+ ============
196
+
197
+ - RedTurtle Technology, sviluppo@redturtle.it
198
+
199
+
200
+ Changelog
201
+ =========
202
+
203
+
204
+ 1.0.7 (2026-06-25)
205
+ ------------------
206
+
207
+ - Refactored package for backwards compatibility with old Plone versions.
208
+ [cekk]
@@ -0,0 +1,142 @@
1
+ .. This README is meant for consumption by humans and PyPI. PyPI can render rst files so please do not use Sphinx features.
2
+ If you want to learn more about writing documentation, please check out: http://docs.plone.org/about/documentation_styleguide.html
3
+ This text does not appear on PyPI or github. It is a comment.
4
+
5
+ .. image:: https://github.com/collective/rer.linkmap/actions/workflows/plone-package.yml/badge.svg
6
+ :target: https://github.com/collective/rer.linkmap/actions/workflows/plone-package.yml
7
+
8
+ .. image:: https://coveralls.io/repos/github/collective/rer.linkmap/badge.svg?branch=main
9
+ :target: https://coveralls.io/github/collective/rer.linkmap?branch=main
10
+ :alt: Coveralls
11
+
12
+ .. image:: https://codecov.io/gh/collective/rer.linkmap/branch/master/graph/badge.svg
13
+ :target: https://codecov.io/gh/collective/rer.linkmap
14
+
15
+ .. image:: https://img.shields.io/pypi/v/rer.linkmap.svg
16
+ :target: https://pypi.python.org/pypi/rer.linkmap/
17
+ :alt: Latest Version
18
+
19
+ .. image:: https://img.shields.io/pypi/status/rer.linkmap.svg
20
+ :target: https://pypi.python.org/pypi/rer.linkmap
21
+ :alt: Egg Status
22
+
23
+ .. image:: https://img.shields.io/pypi/pyversions/rer.linkmap.svg?style=plastic
24
+ :alt: Supported - Python Versions
25
+
26
+ .. image:: https://img.shields.io/pypi/l/rer.linkmap.svg
27
+ :target: https://pypi.python.org/pypi/rer.linkmap/
28
+ :alt: License
29
+
30
+
31
+ ============
32
+ RER Link map
33
+ ============
34
+
35
+ "Amministrazione Trasparente" link map
36
+
37
+ Features
38
+ --------
39
+
40
+ - Control panel for configuring all transparency-map URLs.
41
+ - Dedicated outputs at portal root:
42
+ - `at_map.json`
43
+ - `at_map.xml`
44
+ - Independent flags to enable/disable JSON and XML exposure.
45
+ - REST API control panel integration (`linkmap-settings`).
46
+
47
+
48
+ Installation
49
+ ------------
50
+
51
+ Install rer.linkmap by adding it to your buildout::
52
+
53
+ [buildout]
54
+
55
+ ...
56
+
57
+ eggs =
58
+ rer.linkmap
59
+
60
+
61
+ and then running ``bin/buildout``
62
+
63
+
64
+ Configuration
65
+ -------------
66
+
67
+ After installation, configure the add-on in:
68
+
69
+ - Site Setup -> Link map settings (`linkmap-settings`)
70
+
71
+ Main options:
72
+
73
+ - `expose_json`: enable/disable `@@at_map.json`
74
+ - `expose_xml`: enable/disable `@@at_map.xml`
75
+ - `data_ultima_modifica`: date string in `GG/MM/AAAA`
76
+ - one URL field for each transparency section key
77
+
78
+ If a format is disabled, the corresponding view returns `404 Not Found`.
79
+
80
+ Output Endpoints
81
+ ----------------
82
+ Endpoints are available only on the portal root context:
83
+
84
+ - `/at_map.json`
85
+ - `/at_map.xml`
86
+
87
+ JSON example
88
+ ------------
89
+
90
+ .. code-block:: json
91
+
92
+ {
93
+ "at_art2_bis_c1": {
94
+ "amministrazione_trasparente": "https://www.example.org/amministrazione-trasparente",
95
+ "disposizioni_generali": "https://www.example.org/disposizioni-generali"
96
+ },
97
+ "data_ultima_modifica": "17/06/2026"
98
+ }
99
+
100
+ XML example
101
+ -----------
102
+
103
+ .. code-block:: xml
104
+
105
+ <?xml version="1.0" encoding="utf-8"?>
106
+ <amministrazione_trasparente xmlns="https://guida-servizi.anticorruzione.it/trasparenza">
107
+ <data_ultima_modifica>18/06/2026</data_ultima_modifica>
108
+ <map>
109
+ <at_art2_bis_c1>
110
+ <amministrazione_trasparente>https://www.example.org/at</amministrazione_trasparente>
111
+ <accesso_civico>https://www.example.org/accesso-civico</accesso_civico>
112
+ </at_art2_bis_c1>
113
+ </map>
114
+ </amministrazione_trasparente>
115
+
116
+ REST API Integration
117
+ --------------------
118
+
119
+
120
+ The add-on registers a restapi control panel adapter named
121
+ `linkmap-settings`, based on the same schema used by the classic control panel.
122
+
123
+ Credits
124
+ -------
125
+
126
+ Developed with the support of `Regione Emilia Romagna <http://www.regione.emilia-romagna.it>`_
127
+
128
+ Regione Emilia Romagna supports the `PloneGov initiative <http://www.plonegov.it>`_.
129
+
130
+ Authors
131
+ -------
132
+
133
+ This product was developed by **RedTurtle Technology** team.
134
+
135
+ Generated using `Cookieplone <https://github.com/plone/cookieplone>`_ and
136
+ `cookieplone-templates <https://github.com/plone/cookieplone-templates>`_.
137
+
138
+
139
+ License
140
+ -------
141
+
142
+ This project is licensed under the GPLv2.
@@ -0,0 +1,239 @@
1
+ # -*- coding: utf-8 -*-
2
+ #
3
+ # This file is execfile()d with the current directory set to its
4
+ # containing dir.
5
+ #
6
+ # Note that not all possible configuration values are present in this
7
+ # autogenerated file.
8
+ #
9
+ # All configuration values have a default; values that are commented out
10
+ # serve to show the default.
11
+
12
+ import sys
13
+ import os
14
+
15
+ # If extensions (or modules to document with autodoc) are in another directory,
16
+ # add these directories to sys.path here. If the directory is relative to the
17
+ # documentation root, use os.path.abspath to make it absolute, like shown here.
18
+ #sys.path.insert(0, os.path.abspath('.'))
19
+
20
+ # -- General configuration ------------------------------------------------
21
+
22
+ # If your documentation needs a minimal Sphinx version, state it here.
23
+ #needs_sphinx = '1.0'
24
+
25
+ # Add any Sphinx extension module names here, as strings. They can be
26
+ # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
27
+ # ones.
28
+ extensions = []
29
+
30
+ # Add any paths that contain templates here, relative to this directory.
31
+ templates_path = ['_templates']
32
+
33
+ # The suffix(es) of source filenames.
34
+ # You can specify multiple suffix as a list of string:
35
+ # source_suffix = ['.rst', '.md']
36
+ source_suffix = '.rst'
37
+
38
+ # The encoding of source files.
39
+ #source_encoding = 'utf-8-sig'
40
+
41
+ # The master toctree document.
42
+ master_doc = 'index'
43
+
44
+ # General information about the project.
45
+ project = u'rer.linkmap'
46
+ copyright = u'RedTurtle Technology (cekk)'
47
+ author = u'RedTurtle Technology (cekk)'
48
+
49
+ # The version info for the project you're documenting, acts as replacement for
50
+ # |version| and |release|, also used in various other places throughout the
51
+ # built documents.
52
+ #
53
+ # The short X.Y version.
54
+ version = u'3.0'
55
+ # The full version, including alpha/beta/rc tags.
56
+ release = u'3.0'
57
+
58
+ # The language for content autogenerated by Sphinx. Refer to documentation
59
+ # for a list of supported languages.
60
+ #
61
+ # This is also used if you do content translation via gettext catalogs.
62
+ # Usually you set "language" from the command line for these cases.
63
+ language = None
64
+
65
+ # There are two options for replacing |today|: either, you set today to some
66
+ # non-false value, then it is used:
67
+ #today = ''
68
+ # Else, today_fmt is used as the format for a strftime call.
69
+ #today_fmt = '%B %d, %Y'
70
+
71
+ # List of patterns, relative to source directory, that match files and
72
+ # directories to ignore when looking for source files.
73
+ # This patterns also effect to html_static_path and html_extra_path
74
+ exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
75
+
76
+ # The reST default role (used for this markup: `text`) to use for all
77
+ # documents.
78
+ #default_role = None
79
+
80
+ # If true, '()' will be appended to :func: etc. cross-reference text.
81
+ #add_function_parentheses = True
82
+
83
+ # If true, the current module name will be prepended to all description
84
+ # unit titles (such as .. function::).
85
+ #add_module_names = True
86
+
87
+ # If true, sectionauthor and moduleauthor directives will be shown in the
88
+ # output. They are ignored by default.
89
+ #show_authors = False
90
+
91
+ # The name of the Pygments (syntax highlighting) style to use.
92
+ pygments_style = 'sphinx'
93
+
94
+ # A list of ignored prefixes for module index sorting.
95
+ #modindex_common_prefix = []
96
+
97
+ # If true, keep warnings as "system message" paragraphs in the built documents.
98
+ #keep_warnings = False
99
+
100
+ # If true, `todo` and `todoList` produce output, else they produce nothing.
101
+ todo_include_todos = False
102
+
103
+
104
+ # -- Options for HTML output ----------------------------------------------
105
+
106
+ # The theme to use for HTML and HTML Help pages. See the documentation for
107
+ # a list of builtin themes.
108
+ html_theme = 'alabaster'
109
+
110
+ # Theme options are theme-specific and customize the look and feel of a theme
111
+ # further. For a list of options available for each theme, see the
112
+ # documentation.
113
+ #html_theme_options = {}
114
+
115
+ # Add any paths that contain custom themes here, relative to this directory.
116
+ #html_theme_path = []
117
+
118
+ # The name for this set of Sphinx documents.
119
+ # "<project> v<release> documentation" by default.
120
+ #html_title = u'bobtemplates.plone v3.0'
121
+
122
+ # A shorter title for the navigation bar. Default is the same as html_title.
123
+ #html_short_title = None
124
+
125
+ # The name of an image file (relative to this directory) to place at the top
126
+ # of the sidebar.
127
+ #html_logo = None
128
+
129
+ # The name of an image file (relative to this directory) to use as a favicon of
130
+ # the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
131
+ # pixels large.
132
+ #html_favicon = None
133
+
134
+ # Add any paths that contain custom static files (such as style sheets) here,
135
+ # relative to this directory. They are copied after the builtin static files,
136
+ # so a file named "default.css" will overwrite the builtin "default.css".
137
+ html_static_path = ['_static']
138
+
139
+ # Add any extra paths that contain custom files (such as robots.txt or
140
+ # .htaccess) here, relative to this directory. These files are copied
141
+ # directly to the root of the documentation.
142
+ #html_extra_path = []
143
+
144
+ # If not None, a 'Last updated on:' timestamp is inserted at every page
145
+ # bottom, using the given strftime format.
146
+ # The empty string is equivalent to '%b %d, %Y'.
147
+ #html_last_updated_fmt = None
148
+
149
+ # If true, SmartyPants will be used to convert quotes and dashes to
150
+ # typographically correct entities.
151
+ #html_use_smartypants = True
152
+
153
+ # Custom sidebar templates, maps document names to template names.
154
+ #html_sidebars = {}
155
+
156
+ # Additional templates that should be rendered to pages, maps page names to
157
+ # template names.
158
+ #html_additional_pages = {}
159
+
160
+ # If false, no module index is generated.
161
+ #html_domain_indices = True
162
+
163
+ # If false, no index is generated.
164
+ #html_use_index = True
165
+
166
+ # If true, the index is split into individual pages for each letter.
167
+ #html_split_index = False
168
+
169
+ # If true, links to the reST sources are added to the pages.
170
+ #html_show_sourcelink = True
171
+
172
+ # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
173
+ #html_show_sphinx = True
174
+
175
+ # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
176
+ #html_show_copyright = True
177
+
178
+ # If true, an OpenSearch description file will be output, and all pages will
179
+ # contain a <link> tag referring to it. The value of this option must be the
180
+ # base URL from which the finished HTML is served.
181
+ #html_use_opensearch = ''
182
+
183
+ # This is the file name suffix for HTML files (e.g. ".xhtml").
184
+ #html_file_suffix = None
185
+
186
+ # Language to be used for generating the HTML full-text search index.
187
+ # Sphinx supports the following languages:
188
+ # 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
189
+ # 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr', 'zh'
190
+ #html_search_language = 'en'
191
+
192
+ # A dictionary with options for the search language support, empty by default.
193
+ # 'ja' uses this config value.
194
+ # 'zh' user can custom change `jieba` dictionary path.
195
+ #html_search_options = {'type': 'default'}
196
+
197
+ # The name of a javascript file (relative to the configuration directory) that
198
+ # implements a search results scorer. If empty, the default will be used.
199
+ #html_search_scorer = 'scorer.js'
200
+
201
+ # Output file base name for HTML help builder.
202
+ htmlhelp_basename = 'rer.linkmapdoc'
203
+
204
+ # -- Options for LaTeX output ---------------------------------------------
205
+
206
+ latex_elements = {
207
+ # The paper size ('letterpaper' or 'a4paper').
208
+ #'papersize': 'letterpaper',
209
+
210
+ # The font size ('10pt', '11pt' or '12pt').
211
+ #'pointsize': '10pt',
212
+
213
+ # Additional stuff for the LaTeX preamble.
214
+ #'preamble': '',
215
+
216
+ # Latex figure (float) alignment
217
+ #'figure_align': 'htbp',
218
+ }
219
+
220
+
221
+ # The name of an image file (relative to this directory) to place at the top of
222
+ # the title page.
223
+ #latex_logo = None
224
+
225
+ # For "manual" documents, if this is true, then toplevel headings are parts,
226
+ # not chapters.
227
+ #latex_use_parts = False
228
+
229
+ # If true, show page references after internal links.
230
+ #latex_show_pagerefs = False
231
+
232
+ # If true, show URL addresses after external links.
233
+ #latex_show_urls = False
234
+
235
+ # Documents to append as an appendix to all manuals.
236
+ #latex_appendices = []
237
+
238
+ # If false, no module index is generated.
239
+ #latex_domain_indices = True
@@ -0,0 +1,5 @@
1
+ ===========
2
+ rer.linkmap
3
+ ===========
4
+
5
+ User documentation