eea.plotly 1.0__tar.gz → 1.1__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 (115) hide show
  1. {eea_plotly-1.0/eea.plotly.egg-info → eea_plotly-1.1}/PKG-INFO +6 -1
  2. {eea_plotly-1.0 → eea_plotly-1.1}/docs/HISTORY.txt +5 -0
  3. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/__init__.py +0 -1
  4. eea_plotly-1.1/eea/plotly/interfaces.py +52 -0
  5. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/profiles/default/controlpanel.xml +1 -1
  6. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/restapi/configure.zcml +1 -1
  7. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/restapi/controlpanel.py +1 -0
  8. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/restapi/get.py +6 -0
  9. eea_plotly-1.1/eea/plotly/version.txt +1 -0
  10. {eea_plotly-1.0 → eea_plotly-1.1/eea.plotly.egg-info}/PKG-INFO +6 -1
  11. eea_plotly-1.1/eea.plotly.egg-info/top_level.txt +1 -0
  12. {eea_plotly-1.0 → eea_plotly-1.1}/setup.py +1 -1
  13. eea_plotly-1.0/eea/plotly/interfaces.py +0 -96
  14. eea_plotly-1.0/eea/plotly/version.txt +0 -1
  15. eea_plotly-1.0/eea.plotly.egg-info/namespace_packages.txt +0 -2
  16. {eea_plotly-1.0 → eea_plotly-1.1}/CONTRIBUTING.md +0 -0
  17. {eea_plotly-1.0 → eea_plotly-1.1}/MANIFEST.in +0 -0
  18. {eea_plotly-1.0 → eea_plotly-1.1}/README.rst +0 -0
  19. {eea_plotly-1.0 → eea_plotly-1.1}/docs/LICENSE.GPL +0 -0
  20. {eea_plotly-1.0 → eea_plotly-1.1}/docs/LICENSE.txt +0 -0
  21. {eea_plotly-1.0 → eea_plotly-1.1}/eea/__init__.py +0 -0
  22. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/README.txt +0 -0
  23. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/browser/__init__.py +0 -0
  24. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/browser/configure.zcml +0 -0
  25. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/browser/controlpanel.py +0 -0
  26. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/configure.zcml +0 -0
  27. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/__init__.py +0 -0
  28. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/bg/LC_MESSAGES/eea.po +0 -0
  29. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/bg/LC_MESSAGES/plone.po +0 -0
  30. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/cs/LC_MESSAGES/eea.po +0 -0
  31. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/cs/LC_MESSAGES/plone.po +0 -0
  32. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/da/LC_MESSAGES/eea.po +0 -0
  33. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/da/LC_MESSAGES/plone.po +0 -0
  34. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/de/LC_MESSAGES/eea.po +0 -0
  35. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/de/LC_MESSAGES/plone.po +0 -0
  36. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/eea.pot +0 -0
  37. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/el/LC_MESSAGES/eea.po +0 -0
  38. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/el/LC_MESSAGES/plone.po +0 -0
  39. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/en/LC_MESSAGES/eea.po +0 -0
  40. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/en/LC_MESSAGES/plone.po +0 -0
  41. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/es/LC_MESSAGES/eea.po +0 -0
  42. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/es/LC_MESSAGES/plone.po +0 -0
  43. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/et/LC_MESSAGES/eea.po +0 -0
  44. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/et/LC_MESSAGES/plone.po +0 -0
  45. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/eu/LC_MESSAGES/eea.po +0 -0
  46. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/eu/LC_MESSAGES/plone.po +0 -0
  47. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/fi/LC_MESSAGES/eea.po +0 -0
  48. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/fi/LC_MESSAGES/plone.po +0 -0
  49. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/fr/LC_MESSAGES/eea.po +0 -0
  50. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/fr/LC_MESSAGES/plone.po +0 -0
  51. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/hr/LC_MESSAGES/eea.po +0 -0
  52. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/hr/LC_MESSAGES/plone.po +0 -0
  53. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/hu/LC_MESSAGES/eea.po +0 -0
  54. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/hu/LC_MESSAGES/plone.po +0 -0
  55. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/is/LC_MESSAGES/eea.po +0 -0
  56. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/is/LC_MESSAGES/plone.po +0 -0
  57. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/it/LC_MESSAGES/eea.po +0 -0
  58. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/it/LC_MESSAGES/plone.po +0 -0
  59. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/kl/LC_MESSAGES/eea.po +0 -0
  60. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/kl/LC_MESSAGES/plone.po +0 -0
  61. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/lt/LC_MESSAGES/eea.po +0 -0
  62. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/lt/LC_MESSAGES/plone.po +0 -0
  63. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/lv/LC_MESSAGES/eea.po +0 -0
  64. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/lv/LC_MESSAGES/plone.po +0 -0
  65. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/mt/LC_MESSAGES/eea.po +0 -0
  66. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/mt/LC_MESSAGES/plone.po +0 -0
  67. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/nl/LC_MESSAGES/eea.po +0 -0
  68. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/nl/LC_MESSAGES/plone.po +0 -0
  69. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/no/LC_MESSAGES/eea.po +0 -0
  70. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/no/LC_MESSAGES/plone.po +0 -0
  71. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/pl/LC_MESSAGES/eea.po +0 -0
  72. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/pl/LC_MESSAGES/plone.po +0 -0
  73. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/plone-manual.pot +0 -0
  74. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/pt/LC_MESSAGES/eea.po +0 -0
  75. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/pt/LC_MESSAGES/plone.po +0 -0
  76. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/pt_BR/LC_MESSAGES/eea.po +0 -0
  77. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/pt_BR/LC_MESSAGES/plone.po +0 -0
  78. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/ro/LC_MESSAGES/eea.po +0 -0
  79. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/ro/LC_MESSAGES/plone.po +0 -0
  80. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/ru/LC_MESSAGES/eea.po +0 -0
  81. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/ru/LC_MESSAGES/plone.po +0 -0
  82. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/sk/LC_MESSAGES/eea.po +0 -0
  83. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/sk/LC_MESSAGES/plone.po +0 -0
  84. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/sl/LC_MESSAGES/eea.po +0 -0
  85. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/sl/LC_MESSAGES/plone.po +0 -0
  86. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/sv/LC_MESSAGES/eea.po +0 -0
  87. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/sv/LC_MESSAGES/plone.po +0 -0
  88. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/tr/LC_MESSAGES/eea.po +0 -0
  89. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/tr/LC_MESSAGES/plone.po +0 -0
  90. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/update.sh +0 -0
  91. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/zh_TW/LC_MESSAGES/eea.po +0 -0
  92. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/locales/zh_TW/LC_MESSAGES/plone.po +0 -0
  93. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/permissions.zcml +0 -0
  94. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/profiles/default/browserlayer.xml +0 -0
  95. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/profiles/default/metadata.xml +0 -0
  96. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/profiles/default/registry.xml +0 -0
  97. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/profiles/default/rolemap.xml +0 -0
  98. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/profiles/uninstall/browserlayer.xml +0 -0
  99. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/profiles/uninstall/controlpanel.xml +0 -0
  100. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/profiles/uninstall/registry.xml +0 -0
  101. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/profiles.zcml +0 -0
  102. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/restapi/__init__.py +0 -0
  103. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/setuphandlers.py +0 -0
  104. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/tests/__init__.py +0 -0
  105. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/tests/base.py +0 -0
  106. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/tests/test_doctests.py +0 -0
  107. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/upgrades/__init__.py +0 -0
  108. {eea_plotly-1.0 → eea_plotly-1.1}/eea/plotly/upgrades/configure.zcml +0 -0
  109. {eea_plotly-1.0 → eea_plotly-1.1}/eea.plotly.egg-info/SOURCES.txt +0 -0
  110. {eea_plotly-1.0 → eea_plotly-1.1}/eea.plotly.egg-info/dependency_links.txt +0 -0
  111. {eea_plotly-1.0 → eea_plotly-1.1}/eea.plotly.egg-info/entry_points.txt +0 -0
  112. /eea_plotly-1.0/eea.plotly.egg-info/top_level.txt → /eea_plotly-1.1/eea.plotly.egg-info/namespace_packages.txt +0 -0
  113. {eea_plotly-1.0 → eea_plotly-1.1}/eea.plotly.egg-info/not-zip-safe +0 -0
  114. {eea_plotly-1.0 → eea_plotly-1.1}/eea.plotly.egg-info/requires.txt +0 -0
  115. {eea_plotly-1.0 → eea_plotly-1.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: eea.plotly
3
- Version: 1.0
3
+ Version: 1.1
4
4
  Summary: volto-plotlycharts backend support
5
5
  Home-page: https://github.com/eea/eea.plotly
6
6
  Author: European Environment Agency: IDM2 A-Team
@@ -142,6 +142,11 @@ EEA_ - European Environment Agency (EU)
142
142
  Changelog
143
143
  =========
144
144
 
145
+ 1.1 - (2025-02-07)
146
+ ---------------------------
147
+ * Change: permission typo
148
+ [razvanMiu]
149
+
145
150
  1.0 - (2025-02-06)
146
151
  ---------------------------
147
152
  * Change: Release [razvanMiu]
@@ -1,6 +1,11 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ 1.1 - (2025-02-07)
5
+ ---------------------------
6
+ * Change: permission typo
7
+ [razvanMiu]
8
+
4
9
  1.0 - (2025-02-06)
5
10
  ---------------------------
6
11
  * Change: Release [razvanMiu]
@@ -1,7 +1,6 @@
1
1
  """ Main product initializer
2
2
  """
3
3
  from zope.i18nmessageid.message import MessageFactory
4
- __import__('pkg_resources').declare_namespace(__name__)
5
4
 
6
5
  EEAMessageFactory = MessageFactory('eea')
7
6
 
@@ -0,0 +1,52 @@
1
+ """Module where all interfaces, events and exceptions live."""
2
+ import json
3
+ from zope.interface import Interface
4
+ from zope.publisher.interfaces.browser import IDefaultBrowserLayer
5
+ from plone.schema import JSONField
6
+ from eea.plotly import EEAMessageFactory as _
7
+
8
+
9
+ TEMPLATES_SCHEMA = json.dumps({
10
+ "type": "array",
11
+ "items": {
12
+ "type": "object",
13
+ "properties": {}
14
+ }
15
+ })
16
+
17
+ THEMES_SCHEMA = json.dumps({
18
+ "type": "array",
19
+ "items": {
20
+ "type": "object",
21
+ "properties": {}
22
+ }
23
+ })
24
+
25
+
26
+ class IPlotlyLayer(IDefaultBrowserLayer):
27
+ """Marker interface that defines a browser layer."""
28
+
29
+
30
+ class IPlotlySettings(Interface):
31
+ """Client settings for EEA Plotly."""
32
+ themes = JSONField(
33
+ title=_(u"Themes"),
34
+ description=_(
35
+ u"The JSON representation of plotly themes."
36
+ ),
37
+ schema=THEMES_SCHEMA,
38
+ default=[],
39
+ widget="plotly_themes",
40
+ required=False
41
+ )
42
+
43
+ templates = JSONField(
44
+ title=_(u"Templates"),
45
+ description=_(
46
+ u"The JSON representation of plotly templates."
47
+ ),
48
+ schema=TEMPLATES_SCHEMA,
49
+ default=[],
50
+ widget="plotly_templates",
51
+ required=False
52
+ )
@@ -9,6 +9,6 @@
9
9
  icon_expr=""
10
10
  url_expr="string:${portal_url}/@@plotly-controlpanel"
11
11
  visible="True">
12
- <permission>eea.plotly: Managee</permission>
12
+ <permission>eea.plotly: Manage</permission>
13
13
  </configlet>
14
14
  </object>
@@ -11,7 +11,7 @@
11
11
 
12
12
  <plone:service
13
13
  method="GET"
14
- name="@plotly_templates"
14
+ name="@plotly_settings"
15
15
  for="Products.CMFCore.interfaces.ISiteRoot"
16
16
  factory=".get.PlotlySettingsGet"
17
17
  permission="zope2.View"
@@ -18,5 +18,6 @@ class PlotlyControlpanel(RegistryConfigletPanel):
18
18
  title = "Plotly Settings"
19
19
  group = "Products"
20
20
  data = {
21
+ "themes": [],
21
22
  "templates": []
22
23
  }
@@ -18,10 +18,16 @@ class PlotlySettingsGet(Service):
18
18
  """Reply"""
19
19
  if not IPlotlyLayer.providedBy(self.request):
20
20
  return {
21
+ "themes": [],
21
22
  "templates": []
22
23
  }
23
24
 
24
25
  return {
26
+ "themes": api.portal.get_registry_record(
27
+ "themes",
28
+ interface=IPlotlySettings,
29
+ default=[]
30
+ ),
25
31
  "templates": api.portal.get_registry_record(
26
32
  "templates",
27
33
  interface=IPlotlySettings,
@@ -0,0 +1 @@
1
+ 1.1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: eea.plotly
3
- Version: 1.0
3
+ Version: 1.1
4
4
  Summary: volto-plotlycharts backend support
5
5
  Home-page: https://github.com/eea/eea.plotly
6
6
  Author: European Environment Agency: IDM2 A-Team
@@ -142,6 +142,11 @@ EEA_ - European Environment Agency (EU)
142
142
  Changelog
143
143
  =========
144
144
 
145
+ 1.1 - (2025-02-07)
146
+ ---------------------------
147
+ * Change: permission typo
148
+ [razvanMiu]
149
+
145
150
  1.0 - (2025-02-06)
146
151
  ---------------------------
147
152
  * Change: Release [razvanMiu]
@@ -0,0 +1 @@
1
+ eea
@@ -36,7 +36,7 @@ setup(
36
36
  url='https://github.com/eea/eea.plotly',
37
37
  license='GPL version 2',
38
38
  packages=find_packages(exclude=['ez_setup']),
39
- namespace_packages=['eea', 'eea.plotly'],
39
+ namespace_packages=['eea'],
40
40
  include_package_data=True,
41
41
  zip_safe=False,
42
42
  install_requires=[
@@ -1,96 +0,0 @@
1
- """Module where all interfaces, events and exceptions live."""
2
- import json
3
- from zope.interface import Interface
4
- from zope.publisher.interfaces.browser import IDefaultBrowserLayer
5
- from plone.schema import JSONField
6
- from eea.plotly import EEAMessageFactory as _
7
-
8
-
9
- TEMPLATES_SCHEMA = json.dumps({
10
- "type": "array",
11
- "items": {
12
- "type": "object",
13
- "properties": {
14
- "label": {
15
- "type": "string",
16
- "title": _("Label"),
17
- "description": _("A descriptive label for the template."),
18
- "default": ""
19
- },
20
- "type": {
21
- "type": "string",
22
- "title": _("Type"),
23
- "description": _("The type of template."),
24
- "default": ""
25
- },
26
- "visualization": {
27
- "type": "object",
28
- "title": _("Visualization"),
29
- "description": _("The visualization data."),
30
- "properties": {
31
- "chartData": {
32
- "type": "object",
33
- "properties": {
34
- "data": {
35
- "type": "array",
36
- "items": {
37
- "type": "object",
38
- "properties": {}
39
- }
40
- },
41
- "layout": {
42
- "type": "object",
43
- "properties": {}
44
- },
45
- "frames": {
46
- "type": "array",
47
- "items": {
48
- "type": "object",
49
- "properties": {}
50
- }
51
- },
52
- }
53
- },
54
- "use_data_sources": {
55
- "type": "boolean",
56
- "default": True
57
- },
58
- "data_source": {
59
- "type": "object",
60
- "properties": {}
61
- },
62
- "provider_url": {
63
- "type": "string",
64
- "default": ""
65
- }
66
- },
67
- "default": {
68
- "chartData": {
69
- "data": [],
70
- "layout": {},
71
- "frames": []
72
- },
73
- "use_data_sources": True
74
- }
75
- }
76
- }
77
- }
78
- })
79
-
80
-
81
- class IPlotlyLayer(IDefaultBrowserLayer):
82
- """Marker interface that defines a browser layer."""
83
-
84
-
85
- class IPlotlySettings(Interface):
86
- """Client settings for EEA Plotly."""
87
- templates = JSONField(
88
- title=_(u"Templates"),
89
- description=_(
90
- u"The JSON representation of plotly templates."
91
- ),
92
- schema=TEMPLATES_SCHEMA,
93
- default=[],
94
- widget="plotly_templates",
95
- required=True
96
- )
@@ -1 +0,0 @@
1
- 1.0
@@ -1,2 +0,0 @@
1
- eea
2
- eea.plotly
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes