pyams-layer 2.2.0__tar.gz → 3.0.0__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 (33) hide show
  1. pyams_layer-3.0.0/.gitignore +59 -0
  2. pyams_layer-3.0.0/.hgignore +23 -0
  3. pyams_layer-3.0.0/PKG-INFO +63 -0
  4. {pyams_layer-2.2.0 → pyams_layer-3.0.0}/docs/HISTORY.rst +4 -0
  5. pyams_layer-3.0.0/pyproject.toml +85 -0
  6. {pyams_layer-2.2.0 → pyams_layer-3.0.0}/src/pyams_layer/doctests/README.rst +3 -4
  7. {pyams_layer-2.2.0 → pyams_layer-3.0.0}/src/pyams_layer/include.py +11 -6
  8. {pyams_layer-2.2.0 → pyams_layer-3.0.0}/src/pyams_layer/interfaces.py +6 -3
  9. {pyams_layer-2.2.0 → pyams_layer-3.0.0}/src/pyams_layer/resources.py +1 -0
  10. pyams_layer-2.2.0/PKG-INFO +0 -132
  11. pyams_layer-2.2.0/setup.cfg +0 -4
  12. pyams_layer-2.2.0/setup.py +0 -77
  13. pyams_layer-2.2.0/src/pyams_layer.egg-info/PKG-INFO +0 -132
  14. pyams_layer-2.2.0/src/pyams_layer.egg-info/SOURCES.txt +0 -27
  15. pyams_layer-2.2.0/src/pyams_layer.egg-info/dependency_links.txt +0 -1
  16. pyams_layer-2.2.0/src/pyams_layer.egg-info/namespace_packages.txt +0 -1
  17. pyams_layer-2.2.0/src/pyams_layer.egg-info/not-zip-safe +0 -1
  18. pyams_layer-2.2.0/src/pyams_layer.egg-info/requires.txt +0 -16
  19. pyams_layer-2.2.0/src/pyams_layer.egg-info/top_level.txt +0 -1
  20. {pyams_layer-2.2.0 → pyams_layer-3.0.0}/LICENSE +0 -0
  21. {pyams_layer-2.2.0 → pyams_layer-3.0.0}/MANIFEST.in +0 -0
  22. {pyams_layer-2.2.0 → pyams_layer-3.0.0}/docs/PyAMS layers.puml +0 -0
  23. {pyams_layer-2.2.0 → pyams_layer-3.0.0}/docs/PyAMS_layers.png +0 -0
  24. {pyams_layer-2.2.0 → pyams_layer-3.0.0}/docs/README.rst +0 -0
  25. {pyams_layer-2.2.0 → pyams_layer-3.0.0}/src/pyams_layer/__init__.py +0 -0
  26. {pyams_layer-2.2.0 → pyams_layer-3.0.0}/src/pyams_layer/locales/fr/LC_MESSAGES/pyams_layer.mo +0 -0
  27. {pyams_layer-2.2.0 → pyams_layer-3.0.0}/src/pyams_layer/locales/fr/LC_MESSAGES/pyams_layer.po +0 -0
  28. {pyams_layer-2.2.0 → pyams_layer-3.0.0}/src/pyams_layer/locales/pyams_layer.pot +0 -0
  29. {pyams_layer-2.2.0 → pyams_layer-3.0.0}/src/pyams_layer/skin.py +0 -0
  30. {pyams_layer-2.2.0 → pyams_layer-3.0.0}/src/pyams_layer/tests/__init__.py +0 -0
  31. {pyams_layer-2.2.0 → pyams_layer-3.0.0}/src/pyams_layer/tests/test_utilsdocs.py +0 -0
  32. {pyams_layer-2.2.0 → pyams_layer-3.0.0}/src/pyams_layer/tests/test_utilsdocstrings.py +0 -0
  33. {pyams_layer-2.2.0 → pyams_layer-3.0.0}/src/pyams_layer/vocabulary.py +0 -0
@@ -0,0 +1,59 @@
1
+ # Dependencies
2
+ node_modules/
3
+ .pnp
4
+ .pnp.js
5
+
6
+ # Testing
7
+ /.gitlab-ci-local/
8
+ coverage/
9
+
10
+ # Production
11
+ build/
12
+ dist/
13
+ src/pyams_layer.egg-info/
14
+
15
+ # Misc
16
+ .DS_Store
17
+ *.pem
18
+
19
+ # Debug
20
+ npm-debug.log*
21
+ yarn-debug.log*
22
+ yarn-error.log*
23
+
24
+ # Local env files
25
+ .env
26
+ .env.local
27
+ .env.development.local
28
+ .env.test.local
29
+ .env.production.local
30
+
31
+ # Vercel
32
+ .vercel
33
+
34
+ # TypeScript
35
+ *.tsbuildinfo
36
+ next-env.d.ts
37
+
38
+ # IDE
39
+ .idea/
40
+ .vscode/
41
+ *.swp
42
+ *.swo
43
+
44
+ # Logs
45
+ logs/
46
+ *.log
47
+
48
+ # Archive files
49
+ *.zip
50
+ *.tar
51
+ *.tar.gz
52
+
53
+ # Python
54
+ __pycache__/
55
+ *.pyc
56
+
57
+ # OS
58
+ Thumbs.db
59
+ src/*.dist-info/
@@ -0,0 +1,23 @@
1
+
2
+ syntax: regexp
3
+ ^develop-eggs$
4
+ syntax: regexp
5
+ ^parts$
6
+ syntax: regexp
7
+ ^bin$
8
+ syntax: regexp
9
+ ^eggs$
10
+ syntax: regexp
11
+ ^\.installed\.cfg$
12
+ syntax: regexp
13
+ ^\.settings$
14
+ syntax: regexp
15
+ ^build$
16
+ syntax: regexp
17
+ ^dist$
18
+ syntax: regexp
19
+ ^\.idea$
20
+ syntax: regexp
21
+ .*\.pyc$
22
+ syntax: regexp
23
+ ^docs/build$
@@ -0,0 +1,63 @@
1
+ Metadata-Version: 2.5
2
+ Name: pyams_layer
3
+ Version: 3.0.0
4
+ Summary: PyAMS base layers management package
5
+ Project-URL: Homepage, https://pyams.readthedocs.io
6
+ Author-email: Thierry Florac <tflorac@ulthar.net>
7
+ License: ZPL
8
+ License-File: LICENSE
9
+ Keywords: PyAMS,Pyramid
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Framework :: Pyramid
12
+ Classifier: License :: OSI Approved :: Zope Public License
13
+ Classifier: Programming Language :: Python
14
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
15
+ Requires-Python: >=3.9
16
+ Requires-Dist: pyams-file>=3.0.0
17
+ Requires-Dist: pyams-site>=3.0.0
18
+ Requires-Dist: pyams-utils>=3.0.0
19
+ Requires-Dist: pyramid>=2.0
20
+ Requires-Dist: zope-componentvocabulary
21
+ Requires-Dist: zope-configuration
22
+ Requires-Dist: zope-dublincore
23
+ Requires-Dist: zope-interface
24
+ Requires-Dist: zope-schema
25
+ Requires-Dist: zope-traversing
26
+ Provides-Extra: test
27
+ Requires-Dist: pyramid-zcml; extra == 'test'
28
+ Requires-Dist: zope-exceptions; extra == 'test'
29
+ Description-Content-Type: text/x-rst
30
+
31
+ ===================
32
+ PyAMS_layer package
33
+ ===================
34
+
35
+ .. contents::
36
+
37
+
38
+ What is PyAMS?
39
+ ==============
40
+
41
+ PyAMS (Pyramid Application Management Suite) is a small suite of packages written for applications
42
+ and content management with the Pyramid framework.
43
+
44
+ **PyAMS** is actually mainly used to manage web sites through content management applications (CMS,
45
+ see PyAMS_content package), but many features are generic and can be used inside any kind of web
46
+ application.
47
+
48
+ All PyAMS documentation is available on `ReadTheDocs <https://pyams.readthedocs.io>`_; source code
49
+ is available on `Gitlab <https://gitlab.com/pyams>`_ and pushed to `Github
50
+ <https://github.com/py-ams>`_.
51
+
52
+
53
+ What is PyAMS_layer?
54
+ ====================
55
+
56
+ PyAMS_layer is adding the concept of 'skin layers' to Pyramid.
57
+
58
+ A layer is a marker interface which will be used to tag a Request object; this tagging will allow
59
+ you to register templates, views or pagelets for only specific layers.
60
+
61
+ Skins are global utilities which have a "layer" attribute; when a skin is associated with a
62
+ context, the request is marked during traversal with this layer (removing all other layers
63
+ interfaces).
@@ -1,6 +1,10 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ 3.0.0
5
+ -----
6
+ - updated Python support for versions 3.9 to 3.15
7
+
4
8
  2.2.0
5
9
  -----
6
10
  - removed skins with empty label from user's skins vocabulary
@@ -0,0 +1,85 @@
1
+ #
2
+ # Copyright (c) 2015-2019 Thierry Florac <tflorac AT ulthar.net>
3
+ # All Rights Reserved.
4
+ #
5
+ # This software is subject to the provisions of the Zope Public License,
6
+ # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
7
+ # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
8
+ # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
9
+ # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
10
+ # FOR A PARTICULAR PURPOSE.
11
+ #
12
+
13
+ [build-system]
14
+ requires = ["hatchling", "hatch-vcs"]
15
+ build-backend = "hatchling.build"
16
+
17
+ [project]
18
+ name = "pyams_layer"
19
+ dynamic = ["version"]
20
+ description = "PyAMS base layers management package"
21
+ readme = {file = "docs/README.rst", content-type = "text/x-rst"}
22
+ license = {text = "ZPL"}
23
+ authors = [
24
+ {name = "Thierry Florac", email = "tflorac@ulthar.net"},
25
+ ]
26
+ keywords = ["Pyramid", "PyAMS"]
27
+ classifiers = [
28
+ "License :: OSI Approved :: Zope Public License",
29
+ "Development Status :: 4 - Beta",
30
+ "Programming Language :: Python",
31
+ "Framework :: Pyramid",
32
+ "Topic :: Software Development :: Libraries :: Python Modules",
33
+ ]
34
+ requires-python = ">=3.9"
35
+ dependencies = [
36
+ "pyams_file >= 3.0.0",
37
+ "pyams_site >= 3.0.0",
38
+ "pyams_utils >= 3.0.0",
39
+ "pyramid >= 2.0",
40
+ "zope.componentvocabulary",
41
+ "zope.configuration",
42
+ "zope.dublincore",
43
+ "zope.interface",
44
+ "zope.schema",
45
+ "zope.traversing",
46
+ ]
47
+
48
+ [project.optional-dependencies]
49
+ test = [
50
+ "pyramid_zcml",
51
+ "zope.exceptions",
52
+ ]
53
+
54
+ [project.urls]
55
+ Homepage = "https://pyams.readthedocs.io"
56
+
57
+ [tool.hatch.build.targets.wheel]
58
+ sources = ["src"]
59
+ packages = ["src/pyams_layer"]
60
+
61
+ [tool.hatch.build.targets.sdist]
62
+ include = [
63
+ "src/",
64
+ "docs/",
65
+ "MANIFEST.in",
66
+ ]
67
+
68
+ [tool.hatch.build]
69
+ include = [
70
+ "*.zcml",
71
+ "*.txt",
72
+ "*.pt",
73
+ "*.pot",
74
+ "*.po",
75
+ "*.mo",
76
+ "*.png",
77
+ "*.gif",
78
+ "*.jpeg",
79
+ "*.jpg",
80
+ "*.css",
81
+ "*.js",
82
+ ]
83
+
84
+ [tool.hatch.version]
85
+ source = "vcs"
@@ -12,7 +12,8 @@ request; a skin is a named utility which is referencing this interface, and whic
12
12
  "applied" on a context: when the context is traversed by the request, this interface is applied
13
13
  on the request, removing other layers interfaces which could have been applied previously.
14
14
 
15
- >>> from pyramid.testing import setUp, tearDown, DummyRequest
15
+ >>> from pyramid.testing import setUp, tearDown
16
+ >>> from pyams_utils.testing import DummyRequest
16
17
  >>> config = setUp(hook_zca=True)
17
18
  >>> config.registry.settings['zodbconn.uri'] = 'memory://'
18
19
 
@@ -29,8 +30,6 @@ on the request, removing other layers interfaces which could have been applied p
29
30
  >>> include_utils(config)
30
31
  >>> from pyams_site import includeme as include_site
31
32
  >>> include_site(config)
32
- >>> from pyams_security import includeme as include_security
33
- >>> include_security(config)
34
33
  >>> from pyams_layer import includeme as include_layer
35
34
  >>> include_layer(config)
36
35
 
@@ -205,7 +204,7 @@ the *custom_stylesheet* attribute allows to define a custom CSS file:
205
204
  True
206
205
  >>> subcontent.inherit_skin = True
207
206
 
208
- The *editor_stylesheet* attribute allows to define a custom stylesheet which will available in
207
+ The *editor_stylesheet* attribute allows to define a custom stylesheet which will be available in
209
208
  HTML editor:
210
209
 
211
210
  >>> content.editor_stylesheet is None
@@ -15,15 +15,19 @@
15
15
  This module is used for Pyramid integration
16
16
  """
17
17
 
18
- from pyams_layer.interfaces import MANAGE_SKIN_PERMISSION
18
+ import sys
19
+
20
+ from pyams_layer.interfaces import MANAGE_SKIN_PERMISSION, SYSTEM_ADMIN_ROLE
19
21
  from pyams_layer.skin import UserSkinnableContentMixin, apply_skin, get_skin
20
- from pyams_security.interfaces.names import SYSTEM_ADMIN_ROLE
21
22
  from pyams_site.site import BaseSiteRoot
22
23
 
23
24
 
24
25
  __docformat__ = 'restructuredtext'
25
26
 
26
27
 
28
+ TEST_MODE = sys.argv[-1].endswith('/test')
29
+
30
+
27
31
  def include_package(config):
28
32
  """Pyramid package include"""
29
33
 
@@ -35,10 +39,11 @@ def include_package(config):
35
39
  config.add_request_method(get_skin, 'get_skin')
36
40
 
37
41
  # upgrade admin role
38
- config.upgrade_role(SYSTEM_ADMIN_ROLE,
39
- permissions={
40
- MANAGE_SKIN_PERMISSION
41
- })
42
+ if not TEST_MODE:
43
+ config.upgrade_role(SYSTEM_ADMIN_ROLE,
44
+ permissions={
45
+ MANAGE_SKIN_PERMISSION
46
+ })
42
47
 
43
48
  # add skin support to site root
44
49
  if UserSkinnableContentMixin not in BaseSiteRoot.__bases__:
@@ -23,12 +23,15 @@ from zope.schema import Bool, Choice, TextLine
23
23
 
24
24
  from pyams_file.schema import FileField
25
25
 
26
-
27
26
  __docformat__ = 'restructuredtext'
28
27
 
29
28
  from pyams_layer import _
30
29
 
31
30
 
31
+ SYSTEM_ADMIN_ROLE = 'system.Manager'
32
+ '''System manager role ID; copied from PyAMS_security to avoid cyclic dependencies'''
33
+
34
+
32
35
  MANAGE_SKIN_PERMISSION = 'pyams.ManageSkin'
33
36
  '''Permission required to manage rendering skin'''
34
37
 
@@ -101,12 +104,12 @@ class ISkinnable(Interface):
101
104
 
102
105
  inherit_skin = Bool(title=_("Inherit parent skin?"),
103
106
  description=_("Should we reuse parent skin?"),
104
- required=True,
107
+ required=False,
105
108
  default=False)
106
109
 
107
110
  override_skin = Bool(title=_("Don't inherit parent skin?"),
108
111
  description=_("Should we override parent skin?"),
109
- required=True,
112
+ required=False,
110
113
  default=True)
111
114
 
112
115
  skin_parent = Attribute("Skin parent (local or inherited)")
@@ -18,6 +18,7 @@ which are associated with skins.
18
18
 
19
19
  from datetime import datetime, timezone
20
20
 
21
+ from fanstatic.core import UnknownResourceError
21
22
  from pyramid.interfaces import IRequest
22
23
  from zope.dublincore.interfaces import IZopeDublinCore
23
24
  from zope.interface import Interface
@@ -1,132 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: pyams_layer
3
- Version: 2.2.0
4
- Summary: PyAMS base layers management
5
- Home-page: https://pyams.readthedocs.io
6
- Author: Thierry Florac
7
- Author-email: tflorac@ulthar.net
8
- License: ZPL
9
- Keywords: Pyramid PyAMS
10
- Classifier: License :: OSI Approved :: Zope Public License
11
- Classifier: Development Status :: 4 - Beta
12
- Classifier: Programming Language :: Python
13
- Classifier: Framework :: Pyramid
14
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
15
- Requires-Python: >=3.5
16
- Provides-Extra: test
17
- License-File: LICENSE
18
-
19
- ===================
20
- PyAMS_layer package
21
- ===================
22
-
23
- .. contents::
24
-
25
-
26
- What is PyAMS?
27
- ==============
28
-
29
- PyAMS (Pyramid Application Management Suite) is a small suite of packages written for applications
30
- and content management with the Pyramid framework.
31
-
32
- **PyAMS** is actually mainly used to manage web sites through content management applications (CMS,
33
- see PyAMS_content package), but many features are generic and can be used inside any kind of web
34
- application.
35
-
36
- All PyAMS documentation is available on `ReadTheDocs <https://pyams.readthedocs.io>`_; source code
37
- is available on `Gitlab <https://gitlab.com/pyams>`_ and pushed to `Github
38
- <https://github.com/py-ams>`_.
39
-
40
-
41
- What is PyAMS_layer?
42
- ====================
43
-
44
- PyAMS_layer is adding the concept of 'skin layers' to Pyramid.
45
-
46
- A layer is a marker interface which will be used to tag a Request object; this tagging will allow
47
- you to register templates, views or pagelets for only specific layers.
48
-
49
- Skins are global utilities which have a "layer" attribute; when a skin is associated with a
50
- context, the request is marked during traversal with this layer (removing all other layers
51
- interfaces).
52
-
53
-
54
- Changelog
55
- =========
56
-
57
- 2.2.0
58
- -----
59
- - removed skins with empty label from user's skins vocabulary
60
-
61
- 2.1.1
62
- -----
63
- - replaced datetime.utcnow() with datetime.now(timezone.utc)
64
- - reduced method complexity
65
-
66
- 2.1.0
67
- -----
68
- - added deleters to files properties
69
- - added support for Python 3.11 and 3.12
70
-
71
- 2.0.0
72
- -----
73
- - migrated to Pyramid 2.0
74
-
75
- 1.3.1
76
- -----
77
- - small updates in resources management
78
- - *PyAMS_security* package interfaces refactoring
79
- - added support for Python 3.10
80
-
81
- 1.3.0
82
- -----
83
- - renamed "container_class" TALES extension to "skin_container_extension"
84
- - removed default 'container' class on custom skin container CSS class (default value should
85
- be handled by layout template)
86
-
87
- 1.2.2
88
- -----
89
- - updated translation
90
-
91
- 1.2.1
92
- -----
93
- - check base classes before patching BaseSiteRoot
94
-
95
- 1.2.0
96
- -----
97
- - added skin management permission
98
- - added container class to skin properties
99
- - added default resources adapter
100
-
101
- 1.1.1
102
- -----
103
- - packaging mismatch
104
-
105
- 1.1.0
106
- -----
107
- - removed support for Python < 3.5
108
-
109
- 1.0.5
110
- -----
111
- - updated Gitlab-CI configuration
112
-
113
- 1.0.4
114
- -----
115
- - updated Gitlab-CI configuration
116
- - removed Travis-CI configuration
117
-
118
- 1.0.3
119
- -----
120
- - updated "adapter_config" decorator arguments names
121
-
122
- 1.0.2
123
- -----
124
- - updated doctests
125
-
126
- 1.0.1
127
- -----
128
- - small update in code used to apply a skin
129
-
130
- 1.0.0
131
- -----
132
- - initial release
@@ -1,4 +0,0 @@
1
- [egg_info]
2
- tag_build =
3
- tag_date = 0
4
-
@@ -1,77 +0,0 @@
1
- #
2
- # Copyright (c) 2015-2019 Thierry Florac <tflorac AT ulthar.net>
3
- # All Rights Reserved.
4
- #
5
- # This software is subject to the provisions of the Zope Public License,
6
- # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
7
- # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
8
- # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
9
- # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
10
- # FOR A PARTICULAR PURPOSE.
11
- #
12
-
13
- """
14
- This module contains PyAMS_layer package
15
- """
16
- import os
17
- from setuptools import setup, find_packages
18
-
19
-
20
- DOCS = os.path.join(os.path.dirname(__file__),
21
- 'docs')
22
-
23
- README = os.path.join(DOCS, 'README.rst')
24
- HISTORY = os.path.join(DOCS, 'HISTORY.rst')
25
-
26
- version = '2.2.0'
27
- long_description = open(README).read() + '\n\n' + open(HISTORY).read()
28
-
29
- tests_require = [
30
- 'pyramid_zcml',
31
- 'zope.exceptions'
32
- ]
33
-
34
- setup(name='pyams_layer',
35
- version=version,
36
- description="PyAMS base layers management",
37
- long_description=long_description,
38
- classifiers=[
39
- "License :: OSI Approved :: Zope Public License",
40
- "Development Status :: 4 - Beta",
41
- "Programming Language :: Python",
42
- "Framework :: Pyramid",
43
- "Topic :: Software Development :: Libraries :: Python Modules",
44
- ],
45
- keywords='Pyramid PyAMS',
46
- author='Thierry Florac',
47
- author_email='tflorac@ulthar.net',
48
- url='https://pyams.readthedocs.io',
49
- license='ZPL',
50
- packages=find_packages('src'),
51
- package_dir={'': 'src'},
52
- namespace_packages=[],
53
- include_package_data=True,
54
- package_data={'': ['*.zcml', '*.txt', '*.pt', '*.pot', '*.po', '*.mo',
55
- '*.png', '*.gif', '*.jpeg', '*.jpg', '*.css', '*.js']},
56
- zip_safe=False,
57
- python_requires='>=3.5',
58
- # uncomment this to be able to run tests with setup.py
59
- test_suite="pyams_layer.tests.test_utilsdocs.test_suite",
60
- tests_require=tests_require,
61
- extras_require=dict(test=tests_require),
62
- install_requires=[
63
- 'setuptools',
64
- # -*- Extra requirements: -*-
65
- 'pyams_file',
66
- 'pyams_security',
67
- 'pyams_site',
68
- 'pyams_utils',
69
- 'pyramid >= 2.0.0',
70
- 'zope.componentvocabulary',
71
- 'zope.configuration',
72
- 'zope.dublincore',
73
- 'zope.interface',
74
- 'zope.schema',
75
- 'zope.traversing'
76
- ],
77
- entry_points="")
@@ -1,132 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: pyams-layer
3
- Version: 2.2.0
4
- Summary: PyAMS base layers management
5
- Home-page: https://pyams.readthedocs.io
6
- Author: Thierry Florac
7
- Author-email: tflorac@ulthar.net
8
- License: ZPL
9
- Keywords: Pyramid PyAMS
10
- Classifier: License :: OSI Approved :: Zope Public License
11
- Classifier: Development Status :: 4 - Beta
12
- Classifier: Programming Language :: Python
13
- Classifier: Framework :: Pyramid
14
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
15
- Requires-Python: >=3.5
16
- Provides-Extra: test
17
- License-File: LICENSE
18
-
19
- ===================
20
- PyAMS_layer package
21
- ===================
22
-
23
- .. contents::
24
-
25
-
26
- What is PyAMS?
27
- ==============
28
-
29
- PyAMS (Pyramid Application Management Suite) is a small suite of packages written for applications
30
- and content management with the Pyramid framework.
31
-
32
- **PyAMS** is actually mainly used to manage web sites through content management applications (CMS,
33
- see PyAMS_content package), but many features are generic and can be used inside any kind of web
34
- application.
35
-
36
- All PyAMS documentation is available on `ReadTheDocs <https://pyams.readthedocs.io>`_; source code
37
- is available on `Gitlab <https://gitlab.com/pyams>`_ and pushed to `Github
38
- <https://github.com/py-ams>`_.
39
-
40
-
41
- What is PyAMS_layer?
42
- ====================
43
-
44
- PyAMS_layer is adding the concept of 'skin layers' to Pyramid.
45
-
46
- A layer is a marker interface which will be used to tag a Request object; this tagging will allow
47
- you to register templates, views or pagelets for only specific layers.
48
-
49
- Skins are global utilities which have a "layer" attribute; when a skin is associated with a
50
- context, the request is marked during traversal with this layer (removing all other layers
51
- interfaces).
52
-
53
-
54
- Changelog
55
- =========
56
-
57
- 2.2.0
58
- -----
59
- - removed skins with empty label from user's skins vocabulary
60
-
61
- 2.1.1
62
- -----
63
- - replaced datetime.utcnow() with datetime.now(timezone.utc)
64
- - reduced method complexity
65
-
66
- 2.1.0
67
- -----
68
- - added deleters to files properties
69
- - added support for Python 3.11 and 3.12
70
-
71
- 2.0.0
72
- -----
73
- - migrated to Pyramid 2.0
74
-
75
- 1.3.1
76
- -----
77
- - small updates in resources management
78
- - *PyAMS_security* package interfaces refactoring
79
- - added support for Python 3.10
80
-
81
- 1.3.0
82
- -----
83
- - renamed "container_class" TALES extension to "skin_container_extension"
84
- - removed default 'container' class on custom skin container CSS class (default value should
85
- be handled by layout template)
86
-
87
- 1.2.2
88
- -----
89
- - updated translation
90
-
91
- 1.2.1
92
- -----
93
- - check base classes before patching BaseSiteRoot
94
-
95
- 1.2.0
96
- -----
97
- - added skin management permission
98
- - added container class to skin properties
99
- - added default resources adapter
100
-
101
- 1.1.1
102
- -----
103
- - packaging mismatch
104
-
105
- 1.1.0
106
- -----
107
- - removed support for Python < 3.5
108
-
109
- 1.0.5
110
- -----
111
- - updated Gitlab-CI configuration
112
-
113
- 1.0.4
114
- -----
115
- - updated Gitlab-CI configuration
116
- - removed Travis-CI configuration
117
-
118
- 1.0.3
119
- -----
120
- - updated "adapter_config" decorator arguments names
121
-
122
- 1.0.2
123
- -----
124
- - updated doctests
125
-
126
- 1.0.1
127
- -----
128
- - small update in code used to apply a skin
129
-
130
- 1.0.0
131
- -----
132
- - initial release
@@ -1,27 +0,0 @@
1
- LICENSE
2
- MANIFEST.in
3
- setup.py
4
- docs/HISTORY.rst
5
- docs/PyAMS layers.puml
6
- docs/PyAMS_layers.png
7
- docs/README.rst
8
- src/pyams_layer/__init__.py
9
- src/pyams_layer/include.py
10
- src/pyams_layer/interfaces.py
11
- src/pyams_layer/resources.py
12
- src/pyams_layer/skin.py
13
- src/pyams_layer/vocabulary.py
14
- src/pyams_layer.egg-info/PKG-INFO
15
- src/pyams_layer.egg-info/SOURCES.txt
16
- src/pyams_layer.egg-info/dependency_links.txt
17
- src/pyams_layer.egg-info/namespace_packages.txt
18
- src/pyams_layer.egg-info/not-zip-safe
19
- src/pyams_layer.egg-info/requires.txt
20
- src/pyams_layer.egg-info/top_level.txt
21
- src/pyams_layer/doctests/README.rst
22
- src/pyams_layer/locales/pyams_layer.pot
23
- src/pyams_layer/locales/fr/LC_MESSAGES/pyams_layer.mo
24
- src/pyams_layer/locales/fr/LC_MESSAGES/pyams_layer.po
25
- src/pyams_layer/tests/__init__.py
26
- src/pyams_layer/tests/test_utilsdocs.py
27
- src/pyams_layer/tests/test_utilsdocstrings.py
@@ -1,16 +0,0 @@
1
- setuptools
2
- pyams_file
3
- pyams_security
4
- pyams_site
5
- pyams_utils
6
- pyramid>=2.0.0
7
- zope.componentvocabulary
8
- zope.configuration
9
- zope.dublincore
10
- zope.interface
11
- zope.schema
12
- zope.traversing
13
-
14
- [test]
15
- pyramid_zcml
16
- zope.exceptions
@@ -1 +0,0 @@
1
- pyams_layer
File without changes
File without changes
File without changes