pyramid-fullauth 0.4.0__py3.3.egg → 0.4.1__py3.3.egg
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.
- EGG-INFO/PKG-INFO +7 -1
- EGG-INFO/requires.txt +2 -2
- EGG-INFO/top_level.txt +1 -1
- pyramid_fullauth/__init__.py +1 -1
- pyramid_fullauth/__pycache__/__init__.cpython-33.pyc +0 -0
- pyramid_fullauth/__pycache__/auth.cpython-33.pyc +0 -0
- pyramid_fullauth/__pycache__/events.cpython-33.pyc +0 -0
- pyramid_fullauth/__pycache__/exceptions.cpython-33.pyc +0 -0
- pyramid_fullauth/__pycache__/request.cpython-33.pyc +0 -0
- pyramid_fullauth/__pycache__/tools.cpython-33.pyc +0 -0
- pyramid_fullauth/models/__pycache__/__init__.cpython-33.pyc +0 -0
- pyramid_fullauth/models/extensions/__pycache__/__init__.cpython-33.pyc +0 -0
- pyramid_fullauth/models/mixins/__pycache__/__init__.cpython-33.pyc +0 -0
- pyramid_fullauth/models/mixins/__pycache__/email.cpython-33.pyc +0 -0
- pyramid_fullauth/models/mixins/__pycache__/password.cpython-33.pyc +0 -0
- pyramid_fullauth/resources/locale/pyramid_fullauth.pot +23 -23
- pyramid_fullauth/routing/__pycache__/__init__.cpython-33.pyc +0 -0
- pyramid_fullauth/routing/__pycache__/predicates.cpython-33.pyc +0 -0
- pyramid_fullauth/views/__pycache__/__init__.cpython-33.pyc +0 -0
- pyramid_fullauth/views/__pycache__/social.cpython-33.pyc +0 -0
- pyramid_fullauth/views/basic/__pycache__/__init__.cpython-33.pyc +0 -0
- pyramid_fullauth/views/basic/__pycache__/activate.cpython-33.pyc +0 -0
- pyramid_fullauth/views/basic/__pycache__/forbidden.cpython-33.pyc +0 -0
- pyramid_fullauth/views/basic/__pycache__/login.cpython-33.pyc +0 -0
- pyramid_fullauth/views/basic/__pycache__/logout.cpython-33.pyc +0 -0
- pyramid_fullauth/views/basic/__pycache__/register.cpython-33.pyc +0 -0
- pyramid_fullauth/views/basic/profile/__pycache__/__init__.cpython-33.pyc +0 -0
- pyramid_fullauth/views/basic/profile/__pycache__/email.cpython-33.pyc +0 -0
- pyramid_fullauth/views/basic/profile/__pycache__/password.cpython-33.pyc +0 -0
- pyramid_fullauth/views/basic/profile/password.py +1 -1
- tests/__pycache__/__init__.cpython-33.pyc +0 -0
- tests/__pycache__/conftest.cpython-33.pyc +0 -0
- tests/__pycache__/tools.cpython-33.pyc +0 -0
- tests/conftest.py +2 -1
- tests/unit/__pycache__/test_default_settings.cpython-33.pyc +0 -0
- tests/unit/__pycache__/test_groupfinder.cpython-33.pyc +0 -0
- tests/unit/__pycache__/test_social_view.cpython-33.pyc +0 -0
- tests/unit/__pycache__/test_tools.cpython-33.pyc +0 -0
- tests/unit/__pycache__/test_user_active.cpython-33.pyc +0 -0
- tests/unit/__pycache__/test_user_admin.cpython-33.pyc +0 -0
- tests/unit/__pycache__/test_user_email.cpython-33.pyc +0 -0
- tests/unit/__pycache__/test_user_password.cpython-33.pyc +0 -0
- tests/unit/__pycache__/test_user_providers.cpython-33.pyc +0 -0
- tests/unit/__pycache__/test_user_repr.cpython-33.pyc +0 -0
- tests/unit/__pycache__/test_validators.cpython-33.pyc +0 -0
- tests/views/__pycache__/__init__.cpython-33.pyc +0 -0
- tests/views/__pycache__/conftest.cpython-33.pyc +0 -0
- tests/views/__pycache__/test_activation.cpython-33.pyc +0 -0
- tests/views/__pycache__/test_email.cpython-33.pyc +0 -0
- tests/views/__pycache__/test_events.cpython-33.pyc +0 -0
- tests/views/__pycache__/test_login.cpython-33.pyc +0 -0
- tests/views/__pycache__/test_login_social.cpython-33.pyc +0 -0
- tests/views/__pycache__/test_logout.cpython-33.pyc +0 -0
- tests/views/__pycache__/test_register.cpython-33.pyc +0 -0
- tests/views/__pycache__/test_reset.cpython-33.pyc +0 -0
- tests/views/test_reset.py +1 -1
EGG-INFO/PKG-INFO
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 1.1
|
|
2
2
|
Name: pyramid-fullauth
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.1
|
|
4
4
|
Summary: This package intends to provide full authentication / authorisation
|
|
5
5
|
implementation for pyramid applications
|
|
6
6
|
Home-page: https://github.com/fizyk/pyramid_fullauth
|
|
@@ -73,6 +73,12 @@ Description: pyramid_fullauth
|
|
|
73
73
|
CHANGELOG
|
|
74
74
|
=========
|
|
75
75
|
|
|
76
|
+
0.4.1
|
|
77
|
+
-------
|
|
78
|
+
|
|
79
|
+
- fixed spelling for error message when user does not exist while trying to reset password.
|
|
80
|
+
- require pyramid_basemodel at least version 0.3
|
|
81
|
+
|
|
76
82
|
0.4.0
|
|
77
83
|
-------
|
|
78
84
|
|
EGG-INFO/requires.txt
CHANGED
EGG-INFO/top_level.txt
CHANGED
pyramid_fullauth/__init__.py
CHANGED
|
@@ -17,7 +17,7 @@ from pyramid_fullauth.auth import groupfinder
|
|
|
17
17
|
from pyramid_fullauth.routing import predicates
|
|
18
18
|
from pyramid_fullauth.request import login_perform, logout, user
|
|
19
19
|
|
|
20
|
-
__version__ = '0.4.
|
|
20
|
+
__version__ = '0.4.1'
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
logger = logging.getLogger(__name__)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# Translations template for pyramid_fullauth.
|
|
2
|
-
# Copyright (C)
|
|
2
|
+
# Copyright (C) 2015 ORGANIZATION
|
|
3
3
|
# This file is distributed under the same license as the pyramid_fullauth
|
|
4
4
|
# project.
|
|
5
|
-
# FIRST AUTHOR <EMAIL@ADDRESS>,
|
|
5
|
+
# FIRST AUTHOR <EMAIL@ADDRESS>, 2015.
|
|
6
6
|
#
|
|
7
7
|
#, fuzzy
|
|
8
8
|
msgid ""
|
|
9
9
|
msgstr ""
|
|
10
|
-
"Project-Id-Version: pyramid_fullauth 0.
|
|
10
|
+
"Project-Id-Version: pyramid_fullauth 0.4.0\n"
|
|
11
11
|
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
|
12
|
-
"POT-Creation-Date:
|
|
12
|
+
"POT-Creation-Date: 2015-02-10 00:36+0100\n"
|
|
13
13
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
|
14
14
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
15
15
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
@@ -18,16 +18,16 @@ msgstr ""
|
|
|
18
18
|
"Content-Transfer-Encoding: 8bit\n"
|
|
19
19
|
"Generated-By: Babel 1.3\n"
|
|
20
20
|
|
|
21
|
-
#: pyramid_fullauth/tools.py:
|
|
21
|
+
#: pyramid_fullauth/tools.py:50
|
|
22
22
|
msgid "Please enter your password"
|
|
23
23
|
msgstr ""
|
|
24
24
|
|
|
25
|
-
#: pyramid_fullauth/tools.py:
|
|
25
|
+
#: pyramid_fullauth/tools.py:56
|
|
26
26
|
msgid "Password is too short"
|
|
27
27
|
msgstr ""
|
|
28
28
|
|
|
29
|
-
#: pyramid_fullauth/tools.py:
|
|
30
|
-
#: pyramid_fullauth/views/basic/profile/password.py:
|
|
29
|
+
#: pyramid_fullauth/tools.py:64
|
|
30
|
+
#: pyramid_fullauth/views/basic/profile/password.py:123
|
|
31
31
|
msgid "password-mismatch"
|
|
32
32
|
msgstr ""
|
|
33
33
|
|
|
@@ -100,7 +100,7 @@ msgid "Change your email"
|
|
|
100
100
|
msgstr ""
|
|
101
101
|
|
|
102
102
|
#: pyramid_fullauth/resources/templates/email_change.mako:15
|
|
103
|
-
#: pyramid_fullauth/resources/templates/login.mako:
|
|
103
|
+
#: pyramid_fullauth/resources/templates/login.mako:12
|
|
104
104
|
#: pyramid_fullauth/resources/templates/register.mako:13
|
|
105
105
|
#: pyramid_fullauth/resources/templates/reset.mako:15
|
|
106
106
|
#: pyramid_fullauth/resources/templates/reset.proceed.mako:14
|
|
@@ -120,7 +120,7 @@ msgstr ""
|
|
|
120
120
|
msgid "Welcome, to pyramid_fullauth!"
|
|
121
121
|
msgstr ""
|
|
122
122
|
|
|
123
|
-
#: pyramid_fullauth/resources/templates/login.mako:
|
|
123
|
+
#: pyramid_fullauth/resources/templates/login.mako:10
|
|
124
124
|
msgid "Please, log in"
|
|
125
125
|
msgstr ""
|
|
126
126
|
|
|
@@ -149,23 +149,23 @@ msgstr ""
|
|
|
149
149
|
msgid "Recover your password - choose new password"
|
|
150
150
|
msgstr ""
|
|
151
151
|
|
|
152
|
-
#: pyramid_fullauth/views/social.py:
|
|
152
|
+
#: pyramid_fullauth/views/social.py:139
|
|
153
153
|
msgid "Your account is already connected to other ${provider} account."
|
|
154
154
|
msgstr ""
|
|
155
155
|
|
|
156
|
-
#: pyramid_fullauth/views/social.py:
|
|
156
|
+
#: pyramid_fullauth/views/social.py:146
|
|
157
157
|
msgid "Your account has been connected to ${provider} account."
|
|
158
158
|
msgstr ""
|
|
159
159
|
|
|
160
|
-
#: pyramid_fullauth/views/social.py:
|
|
160
|
+
#: pyramid_fullauth/views/social.py:152
|
|
161
161
|
msgid "This ${provider} account is already connected with other account."
|
|
162
162
|
msgstr ""
|
|
163
163
|
|
|
164
|
-
#: pyramid_fullauth/views/basic/forbidden.py:
|
|
164
|
+
#: pyramid_fullauth/views/basic/forbidden.py:38
|
|
165
165
|
msgid "forbidden-notallowed"
|
|
166
166
|
msgstr ""
|
|
167
167
|
|
|
168
|
-
#: pyramid_fullauth/views/basic/forbidden.py:
|
|
168
|
+
#: pyramid_fullauth/views/basic/forbidden.py:43
|
|
169
169
|
msgid "forbidden-login"
|
|
170
170
|
msgstr ""
|
|
171
171
|
|
|
@@ -178,35 +178,35 @@ msgid "Already logged in!"
|
|
|
178
178
|
msgstr ""
|
|
179
179
|
|
|
180
180
|
#: pyramid_fullauth/views/basic/login.py:95
|
|
181
|
-
#: pyramid_fullauth/views/basic/login.py:
|
|
181
|
+
#: pyramid_fullauth/views/basic/login.py:126
|
|
182
182
|
msgid "Wrong e-mail or password."
|
|
183
183
|
msgstr ""
|
|
184
184
|
|
|
185
|
-
#: pyramid_fullauth/views/basic/register.py:
|
|
185
|
+
#: pyramid_fullauth/views/basic/register.py:39
|
|
186
186
|
msgid "You have an error in your registration form"
|
|
187
187
|
msgstr ""
|
|
188
188
|
|
|
189
|
-
#: pyramid_fullauth/views/basic/register.py:
|
|
189
|
+
#: pyramid_fullauth/views/basic/register.py:52
|
|
190
190
|
msgid "You have successfully registered"
|
|
191
191
|
msgstr ""
|
|
192
192
|
|
|
193
|
-
#: pyramid_fullauth/views/basic/register.py:
|
|
193
|
+
#: pyramid_fullauth/views/basic/register.py:76
|
|
194
194
|
msgid "User with given e-mail already exists!"
|
|
195
195
|
msgstr ""
|
|
196
196
|
|
|
197
|
-
#: pyramid_fullauth/views/basic/profile/email.py:
|
|
197
|
+
#: pyramid_fullauth/views/basic/profile/email.py:45
|
|
198
198
|
msgid "User with this email exists"
|
|
199
199
|
msgstr ""
|
|
200
200
|
|
|
201
|
-
#: pyramid_fullauth/views/basic/profile/email.py:
|
|
201
|
+
#: pyramid_fullauth/views/basic/profile/email.py:61
|
|
202
202
|
msgid "E-mail is empty"
|
|
203
203
|
msgstr ""
|
|
204
204
|
|
|
205
|
-
#: pyramid_fullauth/views/basic/profile/email.py:
|
|
205
|
+
#: pyramid_fullauth/views/basic/profile/email.py:67
|
|
206
206
|
msgid "Incorrect e-mail format"
|
|
207
207
|
msgstr ""
|
|
208
208
|
|
|
209
|
-
#: pyramid_fullauth/views/basic/profile/email.py:
|
|
209
|
+
#: pyramid_fullauth/views/basic/profile/email.py:74
|
|
210
210
|
msgid "We sent you email to activate your new email address"
|
|
211
211
|
msgstr ""
|
|
212
212
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -46,7 +46,7 @@ class PasswordResetView(BaseView):
|
|
|
46
46
|
except NoResultFound:
|
|
47
47
|
return {'status': False,
|
|
48
48
|
'msg': self.request._('user-not-exists',
|
|
49
|
-
default='User does not
|
|
49
|
+
default='User does not exist',
|
|
50
50
|
domain='pyramid_fullauth'),
|
|
51
51
|
'csrf_token': csrf_token}
|
|
52
52
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
tests/conftest.py
CHANGED
|
@@ -62,7 +62,8 @@ def db_session(request):
|
|
|
62
62
|
|
|
63
63
|
engine = create_engine(connection, echo=False, poolclass=NullPool)
|
|
64
64
|
pyramid_basemodel.Session = scoped_session(sessionmaker(extension=ZopeTransactionExtension()))
|
|
65
|
-
pyramid_basemodel.bind_engine(
|
|
65
|
+
pyramid_basemodel.bind_engine(
|
|
66
|
+
engine, pyramid_basemodel.Session, should_create=True, should_drop=True)
|
|
66
67
|
|
|
67
68
|
def destroy():
|
|
68
69
|
transaction.commit()
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
tests/views/test_reset.py
CHANGED
|
@@ -40,7 +40,7 @@ def test_reset_email_not_exists(user, db_session, default_app):
|
|
|
40
40
|
res = default_app.get('/password/reset')
|
|
41
41
|
res.form['email'] = text_type('wrong@example.com')
|
|
42
42
|
res = res.form.submit()
|
|
43
|
-
assert 'Error! User does not
|
|
43
|
+
assert 'Error! User does not exist' in res
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
def test_reset_proceed(user, db_session, default_app):
|