pyams-security 2.6.3__tar.gz → 2.7.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.
- {pyams_security-2.6.3 → pyams_security-2.7.0}/PKG-INFO +6 -1
- {pyams_security-2.6.3 → pyams_security-2.7.0}/docs/HISTORY.rst +5 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/setup.py +2 -2
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/doctests/manager.rst +3 -1
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/doctests/notifications.rst +3 -1
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/doctests/passwords.rst +2 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/doctests/policy.rst +3 -1
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/doctests/principals.rst +5 -1
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/doctests/profiles.rst +3 -1
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/doctests/rest.rst +3 -1
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/doctests/roles.rst +3 -1
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/doctests/security.rst +3 -1
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/doctests/users.rst +3 -1
- pyams_security-2.7.0/src/pyams_security/monitor.py +34 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/plugin/userfolder.py +7 -4
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security.egg-info/PKG-INFO +6 -1
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security.egg-info/SOURCES.txt +1 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security.egg-info/requires.txt +1 -1
- {pyams_security-2.6.3 → pyams_security-2.7.0}/LICENSE +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/MANIFEST.in +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/docs/README.rst +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/setup.cfg +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/__init__.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/api/__init__.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/credential.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/doctests/README.rst +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/doctests/credentials.rst +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/doctests/plugins.rst +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/generations/__init__.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/generations/evolve1.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/include.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/index.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/interfaces/__init__.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/interfaces/base.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/interfaces/names.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/interfaces/notification.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/interfaces/plugin.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/interfaces/profile.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/interfaces/rest.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/interfaces/site.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/locales/fr/LC_MESSAGES/pyams_security.mo +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/locales/fr/LC_MESSAGES/pyams_security.po +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/locales/pyams_security.pot +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/notification.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/password.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/permission.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/plugin/__init__.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/plugin/admin.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/plugin/group.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/plugin/templates/password-reset.pt +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/plugin/templates/register-body.pt +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/plugin/templates/register-info.pt +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/plugin/templates/register-message.pt +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/policy.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/principal.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/profile.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/property.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/rest.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/role.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/schema.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/security.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/site.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/tests/__init__.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/tests/test_utilsdocs.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/tests/test_utilsdocstrings.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/utility.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/vocabulary.py +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security.egg-info/dependency_links.txt +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security.egg-info/entry_points.txt +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security.egg-info/namespace_packages.txt +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security.egg-info/not-zip-safe +0 -0
- {pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyams_security
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.7.0
|
|
4
4
|
Summary: PyAMS security management package
|
|
5
5
|
Home-page: https://pyams.readthedocs.io
|
|
6
6
|
Author: Thierry Florac
|
|
@@ -54,6 +54,11 @@ store roles assigned to principals.
|
|
|
54
54
|
Changelog
|
|
55
55
|
=========
|
|
56
56
|
|
|
57
|
+
2.7.0
|
|
58
|
+
-----
|
|
59
|
+
- added PyAMS monitoring extension
|
|
60
|
+
- added checks when getting user registration views adapter
|
|
61
|
+
|
|
57
62
|
2.6.3
|
|
58
63
|
-----
|
|
59
64
|
- packaging issue
|
|
@@ -23,7 +23,7 @@ DOCS = os.path.join(os.path.dirname(__file__),
|
|
|
23
23
|
README = os.path.join(DOCS, 'README.rst')
|
|
24
24
|
HISTORY = os.path.join(DOCS, 'HISTORY.rst')
|
|
25
25
|
|
|
26
|
-
version = '2.
|
|
26
|
+
version = '2.7.0'
|
|
27
27
|
long_description = open(README).read() + '\n\n' + open(HISTORY).read()
|
|
28
28
|
|
|
29
29
|
tests_require = [
|
|
@@ -72,7 +72,7 @@ setup(name='pyams_security',
|
|
|
72
72
|
'pyams_i18n',
|
|
73
73
|
'pyams_mail',
|
|
74
74
|
'pyams_site',
|
|
75
|
-
'pyams_utils >= 2.
|
|
75
|
+
'pyams_utils >= 2.8.0',
|
|
76
76
|
'pyramid >= 2.0.0',
|
|
77
77
|
'pyramid_chameleon',
|
|
78
78
|
'pyramid_mailer',
|
|
@@ -24,6 +24,8 @@ and can handle several plug-in types, which can be used to:
|
|
|
24
24
|
>>> include_zodbconn(config)
|
|
25
25
|
>>> from cornice import includeme as include_cornice
|
|
26
26
|
>>> include_cornice(config)
|
|
27
|
+
>>> from cornice_swagger import includeme as include_swagger
|
|
28
|
+
>>> include_swagger(config)
|
|
27
29
|
>>> from pyams_utils import includeme as include_utils
|
|
28
30
|
>>> include_utils(config)
|
|
29
31
|
>>> from pyams_mail import includeme as include_mail
|
|
@@ -44,7 +46,7 @@ An ISecurityManager instance is created automatically on instance upgrade:
|
|
|
44
46
|
>>> app = upgrade_site(request)
|
|
45
47
|
Upgrading PyAMS timezone to generation 1...
|
|
46
48
|
Upgrading PyAMS catalog to generation 1...
|
|
47
|
-
Upgrading PyAMS file to generation
|
|
49
|
+
Upgrading PyAMS file to generation 4...
|
|
48
50
|
Upgrading PyAMS security to generation 2...
|
|
49
51
|
|
|
50
52
|
>>> from zope.traversing.interfaces import BeforeTraverseEvent
|
|
@@ -14,6 +14,8 @@ PyAMS_security package relies on the "notification" module to handle mail notifi
|
|
|
14
14
|
>>> include_zodbconn(config)
|
|
15
15
|
>>> from cornice import includeme as include_cornice
|
|
16
16
|
>>> include_cornice(config)
|
|
17
|
+
>>> from cornice_swagger import includeme as include_swagger
|
|
18
|
+
>>> include_swagger(config)
|
|
17
19
|
>>> from pyams_utils import includeme as include_utils
|
|
18
20
|
>>> include_utils(config)
|
|
19
21
|
>>> from pyams_mail import includeme as include_mail
|
|
@@ -32,7 +34,7 @@ PyAMS_security package relies on the "notification" module to handle mail notifi
|
|
|
32
34
|
>>> app = upgrade_site(request)
|
|
33
35
|
Upgrading PyAMS timezone to generation 1...
|
|
34
36
|
Upgrading PyAMS catalog to generation 1...
|
|
35
|
-
Upgrading PyAMS file to generation
|
|
37
|
+
Upgrading PyAMS file to generation 4...
|
|
36
38
|
Upgrading PyAMS security to generation 2...
|
|
37
39
|
|
|
38
40
|
>>> from pyams_security.interfaces.notification import INotificationSettings
|
|
@@ -15,6 +15,8 @@ PyAMS provides several password managers, which can be used to encrypt users pas
|
|
|
15
15
|
>>> include_zodbconn(config)
|
|
16
16
|
>>> from cornice import includeme as include_cornice
|
|
17
17
|
>>> include_cornice(config)
|
|
18
|
+
>>> from cornice_swagger import includeme as include_swagger
|
|
19
|
+
>>> include_swagger(config)
|
|
18
20
|
>>> from pyams_utils import includeme as include_utils
|
|
19
21
|
>>> include_utils(config)
|
|
20
22
|
>>> from pyams_mail import includeme as include_mail
|
|
@@ -20,6 +20,8 @@ Associated utilities also provides support for role-based authorizations.
|
|
|
20
20
|
>>> include_zodbconn(config)
|
|
21
21
|
>>> from cornice import includeme as include_cornice
|
|
22
22
|
>>> include_cornice(config)
|
|
23
|
+
>>> from cornice_swagger import includeme as include_swagger
|
|
24
|
+
>>> include_swagger(config)
|
|
23
25
|
>>> from pyams_utils import includeme as include_utils
|
|
24
26
|
>>> include_utils(config)
|
|
25
27
|
>>> from pyams_mail import includeme as include_mail
|
|
@@ -38,7 +40,7 @@ Associated utilities also provides support for role-based authorizations.
|
|
|
38
40
|
>>> app = upgrade_site(request)
|
|
39
41
|
Upgrading PyAMS timezone to generation 1...
|
|
40
42
|
Upgrading PyAMS catalog to generation 1...
|
|
41
|
-
Upgrading PyAMS file to generation
|
|
43
|
+
Upgrading PyAMS file to generation 4...
|
|
42
44
|
Upgrading PyAMS security to generation 2...
|
|
43
45
|
|
|
44
46
|
>>> from zope.traversing.interfaces import BeforeTraverseEvent
|
|
@@ -38,6 +38,8 @@ token which will be used in every request after authentication.
|
|
|
38
38
|
>>> include_zodbconn(config)
|
|
39
39
|
>>> from cornice import includeme as include_cornice
|
|
40
40
|
>>> include_cornice(config)
|
|
41
|
+
>>> from cornice_swagger import includeme as include_swagger
|
|
42
|
+
>>> include_swagger(config)
|
|
41
43
|
>>> from pyams_utils import includeme as include_utils
|
|
42
44
|
>>> include_utils(config)
|
|
43
45
|
>>> from pyams_mail import includeme as include_mail
|
|
@@ -109,6 +111,8 @@ information was extraced:
|
|
|
109
111
|
>>> include_zodbconn(config)
|
|
110
112
|
>>> from cornice import includeme as include_cornice
|
|
111
113
|
>>> include_cornice(config)
|
|
114
|
+
>>> from cornice_swagger import includeme as include_swagger
|
|
115
|
+
>>> include_swagger(config)
|
|
112
116
|
>>> from pyams_utils import includeme as include_utils
|
|
113
117
|
>>> include_utils(config)
|
|
114
118
|
>>> from pyams_mail import includeme as include_mail
|
|
@@ -133,7 +137,7 @@ information was extraced:
|
|
|
133
137
|
>>> app = upgrade_site(request)
|
|
134
138
|
Upgrading PyAMS timezone to generation 1...
|
|
135
139
|
Upgrading PyAMS catalog to generation 1...
|
|
136
|
-
Upgrading PyAMS file to generation
|
|
140
|
+
Upgrading PyAMS file to generation 4...
|
|
137
141
|
Upgrading PyAMS security to generation 2...
|
|
138
142
|
|
|
139
143
|
>>> from zope.traversing.interfaces import BeforeTraverseEvent
|
|
@@ -17,6 +17,8 @@ PyAMS provides a few features to help manage users profiles:
|
|
|
17
17
|
>>> include_zodbconn(config)
|
|
18
18
|
>>> from cornice import includeme as include_cornice
|
|
19
19
|
>>> include_cornice(config)
|
|
20
|
+
>>> from cornice_swagger import includeme as include_swagger
|
|
21
|
+
>>> include_swagger(config)
|
|
20
22
|
>>> from pyams_utils import includeme as include_utils
|
|
21
23
|
>>> include_utils(config)
|
|
22
24
|
>>> from pyams_mail import includeme as include_mail
|
|
@@ -37,7 +39,7 @@ PyAMS provides a few features to help manage users profiles:
|
|
|
37
39
|
>>> app = upgrade_site(request)
|
|
38
40
|
Upgrading PyAMS timezone to generation 1...
|
|
39
41
|
Upgrading PyAMS catalog to generation 1...
|
|
40
|
-
Upgrading PyAMS file to generation
|
|
42
|
+
Upgrading PyAMS file to generation 4...
|
|
41
43
|
Upgrading PyAMS security to generation 2...
|
|
42
44
|
|
|
43
45
|
>>> request.root = app
|
|
@@ -18,6 +18,8 @@ actually concerning CORS requests.
|
|
|
18
18
|
>>> include_zodbconn(config)
|
|
19
19
|
>>> from cornice import includeme as include_cornice
|
|
20
20
|
>>> include_cornice(config)
|
|
21
|
+
>>> from cornice_swagger import includeme as include_swagger
|
|
22
|
+
>>> include_swagger(config)
|
|
21
23
|
>>> from pyams_utils import includeme as include_utils
|
|
22
24
|
>>> include_utils(config)
|
|
23
25
|
>>> from pyams_mail import includeme as include_mail
|
|
@@ -37,7 +39,7 @@ actually concerning CORS requests.
|
|
|
37
39
|
>>> app = upgrade_site(request)
|
|
38
40
|
Upgrading PyAMS timezone to generation 1...
|
|
39
41
|
Upgrading PyAMS catalog to generation 1...
|
|
40
|
-
Upgrading PyAMS file to generation
|
|
42
|
+
Upgrading PyAMS file to generation 4...
|
|
41
43
|
Upgrading PyAMS security to generation 2...
|
|
42
44
|
|
|
43
45
|
>>> from zope.traversing.interfaces import BeforeTraverseEvent
|
|
@@ -20,6 +20,8 @@ permissions which are automatically granted to principals to whose the role is a
|
|
|
20
20
|
>>> include_zodbconn(config)
|
|
21
21
|
>>> from cornice import includeme as include_cornice
|
|
22
22
|
>>> include_cornice(config)
|
|
23
|
+
>>> from cornice_swagger import includeme as include_swagger
|
|
24
|
+
>>> include_swagger(config)
|
|
23
25
|
>>> from pyams_utils import includeme as include_utils
|
|
24
26
|
>>> include_utils(config)
|
|
25
27
|
>>> from pyams_mail import includeme as include_mail
|
|
@@ -38,7 +40,7 @@ permissions which are automatically granted to principals to whose the role is a
|
|
|
38
40
|
>>> app = upgrade_site(request)
|
|
39
41
|
Upgrading PyAMS timezone to generation 1...
|
|
40
42
|
Upgrading PyAMS catalog to generation 1...
|
|
41
|
-
Upgrading PyAMS file to generation
|
|
43
|
+
Upgrading PyAMS file to generation 4...
|
|
42
44
|
Upgrading PyAMS security to generation 2...
|
|
43
45
|
|
|
44
46
|
|
|
@@ -18,6 +18,8 @@ This includes classes to grant roles to principal, using dedicated schema fields
|
|
|
18
18
|
>>> include_zodbconn(config)
|
|
19
19
|
>>> from cornice import includeme as include_cornice
|
|
20
20
|
>>> include_cornice(config)
|
|
21
|
+
>>> from cornice_swagger import includeme as include_swagger
|
|
22
|
+
>>> include_swagger(config)
|
|
21
23
|
>>> from pyams_utils import includeme as include_utils
|
|
22
24
|
>>> include_utils(config)
|
|
23
25
|
>>> from pyams_mail import includeme as include_mail
|
|
@@ -37,7 +39,7 @@ This includes classes to grant roles to principal, using dedicated schema fields
|
|
|
37
39
|
>>> app = upgrade_site(request)
|
|
38
40
|
Upgrading PyAMS timezone to generation 1...
|
|
39
41
|
Upgrading PyAMS catalog to generation 1...
|
|
40
|
-
Upgrading PyAMS file to generation
|
|
42
|
+
Upgrading PyAMS file to generation 4...
|
|
41
43
|
Upgrading PyAMS security to generation 2...
|
|
42
44
|
|
|
43
45
|
>>> from zope.traversing.interfaces import BeforeTraverseEvent
|
|
@@ -14,6 +14,8 @@ Managing users with PyAMS security package
|
|
|
14
14
|
>>> include_zodbconn(config)
|
|
15
15
|
>>> from cornice import includeme as include_cornice
|
|
16
16
|
>>> include_cornice(config)
|
|
17
|
+
>>> from cornice_swagger import includeme as include_swagger
|
|
18
|
+
>>> include_swagger(config)
|
|
17
19
|
>>> from pyams_utils import includeme as include_utils
|
|
18
20
|
>>> include_utils(config)
|
|
19
21
|
>>> from pyams_mail import includeme as include_mail
|
|
@@ -36,7 +38,7 @@ Managing users with PyAMS security package
|
|
|
36
38
|
>>> app = upgrade_site(request)
|
|
37
39
|
Upgrading PyAMS timezone to generation 1...
|
|
38
40
|
Upgrading PyAMS catalog to generation 1...
|
|
39
|
-
Upgrading PyAMS file to generation
|
|
41
|
+
Upgrading PyAMS file to generation 4...
|
|
40
42
|
Upgrading PyAMS security to generation 2...
|
|
41
43
|
|
|
42
44
|
>>> request.root = app
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# All Rights Reserved.
|
|
2
|
+
#
|
|
3
|
+
# This software is subject to the provisions of the Zope Public License,
|
|
4
|
+
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
|
|
5
|
+
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
|
|
6
|
+
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
7
|
+
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
|
|
8
|
+
# FOR A PARTICULAR PURPOSE.
|
|
9
|
+
#
|
|
10
|
+
|
|
11
|
+
from pyams_security.interfaces import ISecurityManager
|
|
12
|
+
from pyams_utils.factory import create_object
|
|
13
|
+
from pyams_utils.interfaces.monitor import IMonitorExtension, IMonitorExtensionStatus
|
|
14
|
+
from pyams_utils.registry import query_utility, utility_config
|
|
15
|
+
|
|
16
|
+
__docformat__ = 'restructuredtext'
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
@utility_config(name='pyams_security.monitor',
|
|
20
|
+
provides=IMonitorExtension)
|
|
21
|
+
class SecurityMonitor:
|
|
22
|
+
"""Security manager monitor utility"""
|
|
23
|
+
|
|
24
|
+
def get_status(self, request):
|
|
25
|
+
sm = query_utility(ISecurityManager)
|
|
26
|
+
if sm is None:
|
|
27
|
+
yield create_object(IMonitorExtensionStatus,
|
|
28
|
+
handler='pyams_security.monitor:manager',
|
|
29
|
+
status='DOWN',
|
|
30
|
+
message='Missing security manager')
|
|
31
|
+
else:
|
|
32
|
+
yield create_object(IMonitorExtensionStatus,
|
|
33
|
+
handler='pyams_security.monitor:manager',
|
|
34
|
+
status='UP')
|
|
@@ -259,8 +259,10 @@ def notify_user_activation(user, request=None):
|
|
|
259
259
|
'settings': settings
|
|
260
260
|
})
|
|
261
261
|
registry = get_pyramid_registry()
|
|
262
|
+
views = None
|
|
262
263
|
if hasattr(request, 'root'):
|
|
263
|
-
views = registry.
|
|
264
|
+
views = registry.queryMultiAdapter((request.root, request), IUserRegistrationViews)
|
|
265
|
+
if views is not None:
|
|
264
266
|
send_message(_("Please confirm registration"), 'templates/register-body.pt', user, request,
|
|
265
267
|
message=message_text,
|
|
266
268
|
confirm_url=views.register_confirm_view,
|
|
@@ -277,9 +279,10 @@ def notify_password_reset(user, request=None):
|
|
|
277
279
|
if request is None:
|
|
278
280
|
request = check_request()
|
|
279
281
|
registry = get_pyramid_registry()
|
|
280
|
-
views = registry.
|
|
281
|
-
|
|
282
|
-
|
|
282
|
+
views = registry.queryMultiAdapter((request.root, request), IUserRegistrationViews)
|
|
283
|
+
if views is not None:
|
|
284
|
+
send_message(_("Password reset"), 'templates/password-reset.pt', user, request,
|
|
285
|
+
change_url=views.password_change_view)
|
|
283
286
|
|
|
284
287
|
|
|
285
288
|
@factory_config(ILocalUser)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyams-security
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.7.0
|
|
4
4
|
Summary: PyAMS security management package
|
|
5
5
|
Home-page: https://pyams.readthedocs.io
|
|
6
6
|
Author: Thierry Florac
|
|
@@ -54,6 +54,11 @@ store roles assigned to principals.
|
|
|
54
54
|
Changelog
|
|
55
55
|
=========
|
|
56
56
|
|
|
57
|
+
2.7.0
|
|
58
|
+
-----
|
|
59
|
+
- added PyAMS monitoring extension
|
|
60
|
+
- added checks when getting user registration views adapter
|
|
61
|
+
|
|
57
62
|
2.6.3
|
|
58
63
|
-----
|
|
59
64
|
- packaging issue
|
|
@@ -7,6 +7,7 @@ src/pyams_security/__init__.py
|
|
|
7
7
|
src/pyams_security/credential.py
|
|
8
8
|
src/pyams_security/include.py
|
|
9
9
|
src/pyams_security/index.py
|
|
10
|
+
src/pyams_security/monitor.py
|
|
10
11
|
src/pyams_security/notification.py
|
|
11
12
|
src/pyams_security/password.py
|
|
12
13
|
src/pyams_security/permission.py
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/plugin/templates/password-reset.pt
RENAMED
|
File without changes
|
{pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/plugin/templates/register-body.pt
RENAMED
|
File without changes
|
{pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/plugin/templates/register-info.pt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security/tests/test_utilsdocstrings.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
{pyams_security-2.6.3 → pyams_security-2.7.0}/src/pyams_security.egg-info/namespace_packages.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|