pyams-security 2.4.4__tar.gz → 2.5.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.4.4 → pyams_security-2.5.0}/PKG-INFO +10 -1
- {pyams_security-2.4.4 → pyams_security-2.5.0}/docs/HISTORY.rst +9 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/setup.py +1 -1
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/locales/fr/LC_MESSAGES/pyams_security.po +4 -5
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/locales/pyams_security.pot +4 -5
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/plugin/templates/register-body.pt +0 -1
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/principal.py +17 -1
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/security.py +3 -3
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security.egg-info/PKG-INFO +10 -1
- {pyams_security-2.4.4 → pyams_security-2.5.0}/LICENSE +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/MANIFEST.in +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/docs/README.rst +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/setup.cfg +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/__init__.py +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/api/__init__.py +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/credential.py +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/doctests/README.rst +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/doctests/credentials.rst +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/doctests/manager.rst +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/doctests/notifications.rst +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/doctests/passwords.rst +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/doctests/plugins.rst +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/doctests/policy.rst +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/doctests/principals.rst +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/doctests/profiles.rst +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/doctests/rest.rst +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/doctests/roles.rst +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/doctests/security.rst +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/doctests/users.rst +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/generations/__init__.py +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/generations/evolve1.py +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/include.py +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/index.py +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/interfaces/__init__.py +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/interfaces/base.py +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/interfaces/names.py +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/interfaces/notification.py +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/interfaces/plugin.py +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/interfaces/profile.py +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/interfaces/rest.py +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/interfaces/site.py +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/locales/fr/LC_MESSAGES/pyams_security.mo +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/notification.py +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/password.py +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/permission.py +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/plugin/__init__.py +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/plugin/admin.py +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/plugin/group.py +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/plugin/templates/password-reset.pt +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/plugin/templates/register-info.pt +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/plugin/templates/register-message.pt +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/plugin/userfolder.py +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/policy.py +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/profile.py +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/property.py +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/rest.py +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/role.py +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/schema.py +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/site.py +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/tests/__init__.py +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/tests/test_utilsdocs.py +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/tests/test_utilsdocstrings.py +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/utility.py +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/vocabulary.py +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security.egg-info/SOURCES.txt +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security.egg-info/dependency_links.txt +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security.egg-info/entry_points.txt +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security.egg-info/namespace_packages.txt +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security.egg-info/not-zip-safe +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security.egg-info/requires.txt +0 -0
- {pyams_security-2.4.4 → pyams_security-2.5.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.5.0
|
|
4
4
|
Summary: PyAMS security management package
|
|
5
5
|
Home-page: https://pyams.readthedocs.io
|
|
6
6
|
Author: Thierry Florac
|
|
@@ -54,6 +54,15 @@ store roles assigned to principals.
|
|
|
54
54
|
Changelog
|
|
55
55
|
=========
|
|
56
56
|
|
|
57
|
+
2.5.0
|
|
58
|
+
-----
|
|
59
|
+
- added principal annotations utility sublocations adapter
|
|
60
|
+
- replaced deprecated PersistentDict class with PersistentMapping
|
|
61
|
+
|
|
62
|
+
2.4.5
|
|
63
|
+
-----
|
|
64
|
+
- removed duplicated information in user profile registration message
|
|
65
|
+
|
|
57
66
|
2.4.4
|
|
58
67
|
-----
|
|
59
68
|
- updated user profile confirmation delay management
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
=========
|
|
3
3
|
|
|
4
|
+
2.5.0
|
|
5
|
+
-----
|
|
6
|
+
- added principal annotations utility sublocations adapter
|
|
7
|
+
- replaced deprecated PersistentDict class with PersistentMapping
|
|
8
|
+
|
|
9
|
+
2.4.5
|
|
10
|
+
-----
|
|
11
|
+
- removed duplicated information in user profile registration message
|
|
12
|
+
|
|
4
13
|
2.4.4
|
|
5
14
|
-----
|
|
6
15
|
- updated user profile confirmation delay management
|
|
@@ -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.5.0'
|
|
27
27
|
long_description = open(README).read() + '\n\n' + open(HISTORY).read()
|
|
28
28
|
|
|
29
29
|
tests_require = [
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
msgid ""
|
|
6
6
|
msgstr ""
|
|
7
7
|
"Project-Id-Version: PyAMS_security 1.0\n"
|
|
8
|
-
"POT-Creation-Date: 2024-09-
|
|
8
|
+
"POT-Creation-Date: 2024-09-18 18:42+0200\n"
|
|
9
9
|
"PO-Revision-Date: 2019-12-21 22:19+0100\n"
|
|
10
10
|
"Last-Translator: Thierry Florac <tflorac@ulthar.net>\n"
|
|
11
11
|
"Language-Team: French\n"
|
|
@@ -643,7 +643,6 @@ msgstr ""
|
|
|
643
643
|
"messagerie, que vous devez confirmer avant de pouvoir utiliser ce service."
|
|
644
644
|
|
|
645
645
|
#: src/pyams_security/plugin/templates/register-info.pt:7
|
|
646
|
-
#: src/pyams_security/plugin/templates/register-body.pt:12
|
|
647
646
|
msgid "The login that was given to your account is: ${login}."
|
|
648
647
|
msgstr ""
|
|
649
648
|
"L'identifiant de connexion qui a été fourni pour votre compte est : ${login}."
|
|
@@ -677,7 +676,7 @@ msgstr ""
|
|
|
677
676
|
"réinitialisation de votre mot de passe."
|
|
678
677
|
|
|
679
678
|
#: src/pyams_security/plugin/templates/password-reset.pt:22
|
|
680
|
-
#: src/pyams_security/plugin/templates/register-body.pt:
|
|
679
|
+
#: src/pyams_security/plugin/templates/register-body.pt:19
|
|
681
680
|
msgid "Thank you for using our services."
|
|
682
681
|
msgstr "Merci d'utiliser nos services."
|
|
683
682
|
|
|
@@ -693,7 +692,7 @@ msgstr ""
|
|
|
693
692
|
msgid "${header} Registration notice"
|
|
694
693
|
msgstr "${header} Inscription effectuée"
|
|
695
694
|
|
|
696
|
-
#: src/pyams_security/plugin/templates/register-body.pt:
|
|
695
|
+
#: src/pyams_security/plugin/templates/register-body.pt:12
|
|
697
696
|
msgid ""
|
|
698
697
|
"To confirm your registration, please click on the following link, re-enter "
|
|
699
698
|
"your login and set a new password:"
|
|
@@ -701,7 +700,7 @@ msgstr ""
|
|
|
701
700
|
"Pour confirmer cette inscription, veuillez cliquer sur le lien ci-dessous, "
|
|
702
701
|
"indiquer votre identifiant de connexion et fournir un nouveau mot de passe."
|
|
703
702
|
|
|
704
|
-
#: src/pyams_security/plugin/templates/register-body.pt:
|
|
703
|
+
#: src/pyams_security/plugin/templates/register-body.pt:17
|
|
705
704
|
msgid ""
|
|
706
705
|
"If you don't want to confirm this registration, please just ignore this "
|
|
707
706
|
"message and your registration information will be deleted within ${delay} "
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
msgid ""
|
|
7
7
|
msgstr ""
|
|
8
8
|
"Project-Id-Version: PACKAGE 1.0\n"
|
|
9
|
-
"POT-Creation-Date: 2024-09-
|
|
9
|
+
"POT-Creation-Date: 2024-09-18 18:42+0200\n"
|
|
10
10
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
|
11
11
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
12
12
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
@@ -569,7 +569,6 @@ msgid ""
|
|
|
569
569
|
msgstr ""
|
|
570
570
|
|
|
571
571
|
#: ./src/pyams_security/plugin/templates/register-info.pt:7
|
|
572
|
-
#: ./src/pyams_security/plugin/templates/register-body.pt:12
|
|
573
572
|
msgid "The login that was given to your account is: ${login}."
|
|
574
573
|
msgstr ""
|
|
575
574
|
|
|
@@ -594,7 +593,7 @@ msgid ""
|
|
|
594
593
|
msgstr ""
|
|
595
594
|
|
|
596
595
|
#: ./src/pyams_security/plugin/templates/password-reset.pt:22
|
|
597
|
-
#: ./src/pyams_security/plugin/templates/register-body.pt:
|
|
596
|
+
#: ./src/pyams_security/plugin/templates/register-body.pt:19
|
|
598
597
|
msgid "Thank you for using our services."
|
|
599
598
|
msgstr ""
|
|
600
599
|
|
|
@@ -608,13 +607,13 @@ msgstr ""
|
|
|
608
607
|
msgid "${header} Registration notice"
|
|
609
608
|
msgstr ""
|
|
610
609
|
|
|
611
|
-
#: ./src/pyams_security/plugin/templates/register-body.pt:
|
|
610
|
+
#: ./src/pyams_security/plugin/templates/register-body.pt:12
|
|
612
611
|
msgid ""
|
|
613
612
|
"To confirm your registration, please click on the following link, re-enter "
|
|
614
613
|
"your login and set a new password:"
|
|
615
614
|
msgstr ""
|
|
616
615
|
|
|
617
|
-
#: ./src/pyams_security/plugin/templates/register-body.pt:
|
|
616
|
+
#: ./src/pyams_security/plugin/templates/register-body.pt:17
|
|
618
617
|
msgid ""
|
|
619
618
|
"If you don't want to confirm this registration, please just ignore this "
|
|
620
619
|
"message and your registration information will be deleted within ${delay} "
|
{pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/plugin/templates/register-body.pt
RENAMED
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
|
11
11
|
${structure:message}
|
|
12
|
-
<p i18n:translate="">The login that was given to your account is: <tal:var content="user.login" i18n:name="login" />.</p>
|
|
13
12
|
<p><span i18n:translate="">To confirm your registration, please click on the following link, re-enter your login and
|
|
14
13
|
set a new password:</span><br />
|
|
15
14
|
<a tal:define="href string:${confirm_url or '--'}?hash=${user.activation_hash}"
|
|
@@ -17,13 +17,15 @@ This module provides principal related classes.
|
|
|
17
17
|
|
|
18
18
|
from zope.annotation.interfaces import IAnnotations
|
|
19
19
|
from zope.interface import implementer
|
|
20
|
+
from zope.location.interfaces import ISublocations
|
|
20
21
|
from zope.principalannotation.interfaces import IPrincipalAnnotationUtility
|
|
21
22
|
from zope.schema.fieldproperty import FieldProperty
|
|
22
23
|
|
|
23
24
|
from pyams_security.interfaces.base import IMissingPrincipalInfo, IPrincipalInfo, IUnavailablePrincipalInfo, \
|
|
24
25
|
IUnknownPrincipalInfo
|
|
25
26
|
from pyams_security.interfaces.names import UNKNOWN_PRINCIPAL_ID
|
|
26
|
-
from
|
|
27
|
+
from pyams_site.interfaces import ISiteRoot
|
|
28
|
+
from pyams_utils.adapter import ContextAdapter, adapter_config
|
|
27
29
|
from pyams_utils.registry import query_utility
|
|
28
30
|
|
|
29
31
|
|
|
@@ -98,3 +100,17 @@ def get_principal_annotations(principal):
|
|
|
98
100
|
def unavailable_principal_annotations(principal):
|
|
99
101
|
"""Unavailable principal annotations adapter"""
|
|
100
102
|
return None
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
@adapter_config(name='principal.annotations',
|
|
106
|
+
required=ISiteRoot,
|
|
107
|
+
provides=ISublocations)
|
|
108
|
+
class PrincipalAnnotationsSublocation(ContextAdapter):
|
|
109
|
+
"""Principal annotations utility sub-location adapter"""
|
|
110
|
+
|
|
111
|
+
def sublocations(self): # pylint: disable=no-self-use
|
|
112
|
+
"""Principal annotations utility sublocations"""
|
|
113
|
+
utility = query_utility(IPrincipalAnnotationUtility)
|
|
114
|
+
if utility is not None:
|
|
115
|
+
for annotation in utility.annotations.values():
|
|
116
|
+
yield from annotation.data.values()
|
|
@@ -21,7 +21,7 @@ views objects.
|
|
|
21
21
|
import logging
|
|
22
22
|
|
|
23
23
|
from persistent import Persistent
|
|
24
|
-
from persistent.
|
|
24
|
+
from persistent.mapping import PersistentMapping
|
|
25
25
|
from pyramid.authorization import ALL_PERMISSIONS, Allow, Authenticated, DENY_ALL, Deny, Everyone
|
|
26
26
|
from pyramid.decorator import reify
|
|
27
27
|
from pyramid.location import lineage
|
|
@@ -60,8 +60,8 @@ class RoleProtectedObject(Persistent, Contained):
|
|
|
60
60
|
inherit_parent_roles = FieldProperty(IRoleProtectedObject['inherit_parent_roles'])
|
|
61
61
|
|
|
62
62
|
def __init__(self):
|
|
63
|
-
self._principals_by_role =
|
|
64
|
-
self._roles_by_principal =
|
|
63
|
+
self._principals_by_role = PersistentMapping()
|
|
64
|
+
self._roles_by_principal = PersistentMapping()
|
|
65
65
|
|
|
66
66
|
def get_everyone_denied(self):
|
|
67
67
|
"""Get permissions denied to everyone"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyams-security
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.5.0
|
|
4
4
|
Summary: PyAMS security management package
|
|
5
5
|
Home-page: https://pyams.readthedocs.io
|
|
6
6
|
Author: Thierry Florac
|
|
@@ -54,6 +54,15 @@ store roles assigned to principals.
|
|
|
54
54
|
Changelog
|
|
55
55
|
=========
|
|
56
56
|
|
|
57
|
+
2.5.0
|
|
58
|
+
-----
|
|
59
|
+
- added principal annotations utility sublocations adapter
|
|
60
|
+
- replaced deprecated PersistentDict class with PersistentMapping
|
|
61
|
+
|
|
62
|
+
2.4.5
|
|
63
|
+
-----
|
|
64
|
+
- removed duplicated information in user profile registration message
|
|
65
|
+
|
|
57
66
|
2.4.4
|
|
58
67
|
-----
|
|
59
68
|
- updated user profile confirmation delay management
|
|
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
|
|
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.4.4 → pyams_security-2.5.0}/src/pyams_security/plugin/templates/password-reset.pt
RENAMED
|
File without changes
|
{pyams_security-2.4.4 → pyams_security-2.5.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
|
{pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security/tests/test_utilsdocstrings.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
{pyams_security-2.4.4 → pyams_security-2.5.0}/src/pyams_security.egg-info/namespace_packages.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|