ppss-auth 0.11.1.0__tar.gz → 0.11.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.
- {ppss_auth-0.11.1.0/ppss_auth.egg-info → ppss_auth-0.11.1.1}/PKG-INFO +1 -1
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/changelog.txt +3 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/editgroup.jinja2 +4 -4
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/editgroup.mako +4 -3
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/layouts/masterlayout.jinja2 +0 -1
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/layouts/masterlayout.mako +0 -1
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/layouts/midlayout.jinja2 +1 -1
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/layouts/midlayout.mako +0 -1
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/views/auth.py +4 -4
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1/ppss_auth.egg-info}/PKG-INFO +1 -1
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/setup.py +1 -1
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/MANIFEST.in +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/README.md +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/babel.ini +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/__init__.py +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/alembic/alembic.ini +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/alembic/env.py +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/alembic/script.py.mako +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/alembic/versions/20201026_52f4d4eefdfe_unique_permission_name.py +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/alembic/versions/20201120_6c9e84ab8280_unique_user_name.py +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/alembic/versions/20220329_44fde88fa438_creazione_colonne_per_login_history.py +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/alembic/versions/20220331_6190d529682d_result_reason.py +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/alembic/versions/20231016_3f4032dd2d1b_added_email_to_user.py +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/alembic/versions/20240110_4b95deb2d91c_tabella_reset_token.py +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/alembic/versions/20240209_7d2e85bbf831_add_otp_hash.py +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/alembic/versions/20240304_483944c8ff05_add_phone.py +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/alembic/versions/f724fac25359_creation.py +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/constants.py +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/locale/en/LC_MESSAGES/ppss_auth.mo +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/locale/fr/LC_MESSAGES/ppss_auth.mo +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/locale/it/LC_MESSAGES/ppss_auth.mo +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/models.py +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/ppss_auth_static/loader.js +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/ppss_auth_static/ppssauth.css +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/ppss_auth_static/ppssauth.js +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/ppss_auth_static/template.html +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/ppss_auth_utils/__init__.py +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/ppss_auth_utils/db.py +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/ppss_auth_utils/emailclient.py +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/ppss_auth_utils/i18n.py +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/ppss_auth_utils/password.py +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/ppss_auth_utils/scriptutils.py +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/routes.py +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/scripts/__init__.py +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/scripts/alchemyutils.py +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/scripts/cleanup_db.py +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/scripts/create_user.py +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/scripts/initialize_db.py +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/scripts/sayauth.py +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/scripts/upgrade_db.py +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/change.jinja2 +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/change.mako +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/confirm_email.jinja2 +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/confirm_email.mako +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/editperm.jinja2 +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/editperm.mako +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/edituser.jinja2 +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/edituser.mako +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/email/activation.jinja2 +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/email/activation.mako +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/email/recover.jinja2 +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/email/recover.mako +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/enable2fa.jinja2 +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/enable2fa.mako +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/layouts/public.jinja2 +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/layouts/public.mako +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/listgroup.jinja2 +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/listgroup.mako +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/listperm.jinja2 +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/listperm.mako +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/listuser.jinja2 +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/listuser.mako +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/login.jinja2 +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/login.mako +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/login_nogrid.jinja2 +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/login_nogrid.mako +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/partials/userblock.jinja2 +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/partials/userblock.mako +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/partials/usermanage.jinja2 +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/partials/usermanage.mako +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/recover.jinja2 +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/recover.mako +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/registeruser.jinja2 +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/registeruser.mako +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/reset.jinja2 +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/reset.mako +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/shared/bootstrapcss.html +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/verify2fa.jinja2 +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/templates/verify2fa.mako +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/views/__init__.py +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth.egg-info/SOURCES.txt +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth.egg-info/dependency_links.txt +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth.egg-info/entry_points.txt +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth.egg-info/requires.txt +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth.egg-info/top_level.txt +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/readme.txt +0 -0
- {ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/setup.cfg +0 -0
|
@@ -51,8 +51,9 @@
|
|
|
51
51
|
</div>
|
|
52
52
|
</div>
|
|
53
53
|
</div><!-- .row -->
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
{% endblock ppssauth_content %}
|
|
55
|
+
|
|
56
|
+
{% block ppssauth_footerjs %}
|
|
56
57
|
<script src="{{request.static_url('ppss_auth:ppss_auth_static/loader.js')}}"></script>
|
|
57
58
|
<script type="text/javascript">
|
|
58
59
|
var currentPermissions = [
|
|
@@ -89,5 +90,4 @@
|
|
|
89
90
|
}
|
|
90
91
|
</script>
|
|
91
92
|
<script src="{{request.static_url('ppss_auth:ppss_auth_static/ppssauth.js')}}"></script>
|
|
92
|
-
|
|
93
|
-
{% endblock ppssauth_content %}
|
|
93
|
+
{% endblock %}
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
</div>
|
|
50
50
|
</div>
|
|
51
51
|
</div><!-- .row -->
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
|
|
53
|
+
<%block name="ppssauth_footerjs">
|
|
54
54
|
<script src="${request.static_url('ppss_auth:ppss_auth_static/loader.js')}"></script>
|
|
55
55
|
<script type="text/javascript">
|
|
56
56
|
var currentPermissions = [
|
|
@@ -86,4 +86,5 @@
|
|
|
86
86
|
SEARCH_USER: "${request.route_url('ppss:user:search')}"
|
|
87
87
|
}
|
|
88
88
|
</script>
|
|
89
|
-
<script src="${request.static_url('ppss_auth:ppss_auth_static/ppssauth.js')}"></script>
|
|
89
|
+
<script src="${request.static_url('ppss_auth:ppss_auth_static/ppssauth.js')}"></script>
|
|
90
|
+
</%block>
|
|
@@ -23,7 +23,6 @@
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
{% block ppssauth_footerjs %}
|
|
26
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/4.5.3/js/bootstrap.min.js" integrity="sha512-8qmis31OQi6hIRgvkht0s6mCOittjMa9GMqtK9hes5iEQBQE/Ca6yGE5FsW36vyipGoWQswBj/QBm2JR086Rkw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
|
27
26
|
{% endblock %}
|
|
28
27
|
|
|
29
28
|
</body>
|
|
@@ -22,7 +22,6 @@ ${next.body()}
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
<%block name="ppssauth_footerjs">
|
|
25
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/4.5.3/js/bootstrap.min.js" integrity="sha512-8qmis31OQi6hIRgvkht0s6mCOittjMa9GMqtK9hes5iEQBQE/Ca6yGE5FsW36vyipGoWQswBj/QBm2JR086Rkw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
|
26
25
|
</%block>
|
|
27
26
|
|
|
28
27
|
</body>
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
{% block ppssauth_css %}
|
|
4
4
|
<link rel="stylesheet" href="{{ request.static_url('ppss_auth:ppss_auth_static/ppssauth.css') }}"/>
|
|
5
5
|
{% endblock %}
|
|
6
|
+
|
|
6
7
|
{% block ppssauth_footerjs %}
|
|
7
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/4.5.3/js/bootstrap.min.js" integrity="sha512-8qmis31OQi6hIRgvkht0s6mCOittjMa9GMqtK9hes5iEQBQE/Ca6yGE5FsW36vyipGoWQswBj/QBm2JR086Rkw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
|
8
8
|
{% endblock %}
|
|
9
9
|
|
|
10
10
|
{% block ppssauth_headerjs %}
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
</%block>
|
|
11
11
|
|
|
12
12
|
<%block name="ppssauth_footerjs">
|
|
13
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/4.5.3/js/bootstrap.min.js" integrity="sha512-8qmis31OQi6hIRgvkht0s6mCOittjMa9GMqtK9hes5iEQBQE/Ca6yGE5FsW36vyipGoWQswBj/QBm2JR086Rkw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
|
14
13
|
</%block>
|
|
15
14
|
|
|
16
15
|
|
|
@@ -666,10 +666,10 @@ class AuthController():
|
|
|
666
666
|
perm = PPSspermission.byId(int(self.request.matchdict.get('targetid',-1)),self.request.dbsession)
|
|
667
667
|
group = PPSsgroup.byId(int(self.request.matchdict.get('elementid',-1)),self.request.dbsession)
|
|
668
668
|
if not perm or not group:
|
|
669
|
-
return {'res':False,"msg":__("error in ids")}
|
|
669
|
+
return {'res':False,"msg":__(self.request,"error in ids")}
|
|
670
670
|
for i in group.permissions:
|
|
671
671
|
if i.id == perm.id:
|
|
672
|
-
return {'res':False,"msg":__("already present")}
|
|
672
|
+
return {'res':False,"msg":__(self.request,"already present")}
|
|
673
673
|
group.permissions.append(perm)
|
|
674
674
|
l.info(u"adding {perm} to {group}".format(perm=perm,group=group))
|
|
675
675
|
return {'res':True,"msg":"change_perm", "groupperm":group.permdict()}
|
|
@@ -712,8 +712,8 @@ class AuthController():
|
|
|
712
712
|
for i,p in enumerate(group.users):
|
|
713
713
|
if p.id == user.id:
|
|
714
714
|
group.users.pop(i)
|
|
715
|
-
return {'res':True,"msg":__("change_user"), "elements":group.userdict()}
|
|
716
|
-
return {'res':False,'msg':__("Can't remove this permission")}
|
|
715
|
+
return {'res':True,"msg":__(self.request,"change_user"), "elements":group.userdict()}
|
|
716
|
+
return {'res':False,'msg':__(self.request,"Can't remove this permission")}
|
|
717
717
|
|
|
718
718
|
def parseqstring(self,qparam):
|
|
719
719
|
if qparam == "" or qparam is None:
|
|
@@ -9,7 +9,7 @@ changelog = open(os.path.join(here, "README.md"), "r").read()
|
|
|
9
9
|
|
|
10
10
|
setup(
|
|
11
11
|
name="ppss_auth",
|
|
12
|
-
version="0.11.1.
|
|
12
|
+
version="0.11.1.1",
|
|
13
13
|
description="simple auth scheme for pyramid, based on Mako template and sqlalchemy backend",
|
|
14
14
|
long_description=readme + "\n\n\n" + changelog,
|
|
15
15
|
long_description_content_type="text/markdown",
|
|
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
|
{ppss_auth-0.11.1.0 → ppss_auth-0.11.1.1}/ppss_auth/alembic/versions/f724fac25359_creation.py
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
|
|
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
|
|
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
|