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.
Files changed (56) hide show
  1. EGG-INFO/PKG-INFO +7 -1
  2. EGG-INFO/requires.txt +2 -2
  3. EGG-INFO/top_level.txt +1 -1
  4. pyramid_fullauth/__init__.py +1 -1
  5. pyramid_fullauth/__pycache__/__init__.cpython-33.pyc +0 -0
  6. pyramid_fullauth/__pycache__/auth.cpython-33.pyc +0 -0
  7. pyramid_fullauth/__pycache__/events.cpython-33.pyc +0 -0
  8. pyramid_fullauth/__pycache__/exceptions.cpython-33.pyc +0 -0
  9. pyramid_fullauth/__pycache__/request.cpython-33.pyc +0 -0
  10. pyramid_fullauth/__pycache__/tools.cpython-33.pyc +0 -0
  11. pyramid_fullauth/models/__pycache__/__init__.cpython-33.pyc +0 -0
  12. pyramid_fullauth/models/extensions/__pycache__/__init__.cpython-33.pyc +0 -0
  13. pyramid_fullauth/models/mixins/__pycache__/__init__.cpython-33.pyc +0 -0
  14. pyramid_fullauth/models/mixins/__pycache__/email.cpython-33.pyc +0 -0
  15. pyramid_fullauth/models/mixins/__pycache__/password.cpython-33.pyc +0 -0
  16. pyramid_fullauth/resources/locale/pyramid_fullauth.pot +23 -23
  17. pyramid_fullauth/routing/__pycache__/__init__.cpython-33.pyc +0 -0
  18. pyramid_fullauth/routing/__pycache__/predicates.cpython-33.pyc +0 -0
  19. pyramid_fullauth/views/__pycache__/__init__.cpython-33.pyc +0 -0
  20. pyramid_fullauth/views/__pycache__/social.cpython-33.pyc +0 -0
  21. pyramid_fullauth/views/basic/__pycache__/__init__.cpython-33.pyc +0 -0
  22. pyramid_fullauth/views/basic/__pycache__/activate.cpython-33.pyc +0 -0
  23. pyramid_fullauth/views/basic/__pycache__/forbidden.cpython-33.pyc +0 -0
  24. pyramid_fullauth/views/basic/__pycache__/login.cpython-33.pyc +0 -0
  25. pyramid_fullauth/views/basic/__pycache__/logout.cpython-33.pyc +0 -0
  26. pyramid_fullauth/views/basic/__pycache__/register.cpython-33.pyc +0 -0
  27. pyramid_fullauth/views/basic/profile/__pycache__/__init__.cpython-33.pyc +0 -0
  28. pyramid_fullauth/views/basic/profile/__pycache__/email.cpython-33.pyc +0 -0
  29. pyramid_fullauth/views/basic/profile/__pycache__/password.cpython-33.pyc +0 -0
  30. pyramid_fullauth/views/basic/profile/password.py +1 -1
  31. tests/__pycache__/__init__.cpython-33.pyc +0 -0
  32. tests/__pycache__/conftest.cpython-33.pyc +0 -0
  33. tests/__pycache__/tools.cpython-33.pyc +0 -0
  34. tests/conftest.py +2 -1
  35. tests/unit/__pycache__/test_default_settings.cpython-33.pyc +0 -0
  36. tests/unit/__pycache__/test_groupfinder.cpython-33.pyc +0 -0
  37. tests/unit/__pycache__/test_social_view.cpython-33.pyc +0 -0
  38. tests/unit/__pycache__/test_tools.cpython-33.pyc +0 -0
  39. tests/unit/__pycache__/test_user_active.cpython-33.pyc +0 -0
  40. tests/unit/__pycache__/test_user_admin.cpython-33.pyc +0 -0
  41. tests/unit/__pycache__/test_user_email.cpython-33.pyc +0 -0
  42. tests/unit/__pycache__/test_user_password.cpython-33.pyc +0 -0
  43. tests/unit/__pycache__/test_user_providers.cpython-33.pyc +0 -0
  44. tests/unit/__pycache__/test_user_repr.cpython-33.pyc +0 -0
  45. tests/unit/__pycache__/test_validators.cpython-33.pyc +0 -0
  46. tests/views/__pycache__/__init__.cpython-33.pyc +0 -0
  47. tests/views/__pycache__/conftest.cpython-33.pyc +0 -0
  48. tests/views/__pycache__/test_activation.cpython-33.pyc +0 -0
  49. tests/views/__pycache__/test_email.cpython-33.pyc +0 -0
  50. tests/views/__pycache__/test_events.cpython-33.pyc +0 -0
  51. tests/views/__pycache__/test_login.cpython-33.pyc +0 -0
  52. tests/views/__pycache__/test_login_social.cpython-33.pyc +0 -0
  53. tests/views/__pycache__/test_logout.cpython-33.pyc +0 -0
  54. tests/views/__pycache__/test_register.cpython-33.pyc +0 -0
  55. tests/views/__pycache__/test_reset.cpython-33.pyc +0 -0
  56. 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.0
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
@@ -2,7 +2,7 @@ pyramid_localize
2
2
  pyramid >=1.4
3
3
  pyramid_mako
4
4
  tzf.pyramid_yml >=1.0
5
- pyramid_basemodel
5
+ pyramid_basemodel>=0.3
6
6
 
7
7
  [docs]
8
8
  sphinx
@@ -10,4 +10,4 @@ sphinx
10
10
  [tests]
11
11
  mock
12
12
  pytest_pyramid
13
- pytest-cov
13
+ pytest-cov
EGG-INFO/top_level.txt CHANGED
@@ -1,2 +1,2 @@
1
- tests
2
1
  pyramid_fullauth
2
+ tests
@@ -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.0'
20
+ __version__ = '0.4.1'
21
21
 
22
22
 
23
23
  logger = logging.getLogger(__name__)
@@ -1,15 +1,15 @@
1
1
  # Translations template for pyramid_fullauth.
2
- # Copyright (C) 2014 ORGANIZATION
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>, 2014.
5
+ # FIRST AUTHOR <EMAIL@ADDRESS>, 2015.
6
6
  #
7
7
  #, fuzzy
8
8
  msgid ""
9
9
  msgstr ""
10
- "Project-Id-Version: pyramid_fullauth 0.2.3\n"
10
+ "Project-Id-Version: pyramid_fullauth 0.4.0\n"
11
11
  "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
12
- "POT-Creation-Date: 2014-04-11 23:41+0200\n"
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:47
21
+ #: pyramid_fullauth/tools.py:50
22
22
  msgid "Please enter your password"
23
23
  msgstr ""
24
24
 
25
- #: pyramid_fullauth/tools.py:53
25
+ #: pyramid_fullauth/tools.py:56
26
26
  msgid "Password is too short"
27
27
  msgstr ""
28
28
 
29
- #: pyramid_fullauth/tools.py:61
30
- #: pyramid_fullauth/views/basic/profile/password.py:124
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:11
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:9
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:134
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:141
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:147
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:39
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:44
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:133
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:38
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:51
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:75
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:44
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:60
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:66
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:73
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
 
@@ -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 exists',
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(engine, pyramid_basemodel.Session, should_drop=True)
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()
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 exists' in res
43
+ assert 'Error! User does not exist' in res
44
44
 
45
45
 
46
46
  def test_reset_proceed(user, db_session, default_app):