diff options
author | tilly-Q <nattilypigeonfowl@gmail.com> | 2013-09-08 18:26:37 -0400 |
---|---|---|
committer | tilly-Q <nattilypigeonfowl@gmail.com> | 2013-09-08 18:26:37 -0400 |
commit | 25625107b6c7805b474ad7da976171991b259e58 (patch) | |
tree | d1c408eb9e3eb77593a13193d8fcb3fc5b6c4380 /mediagoblin/tests/test_auth.py | |
parent | 8e91df87349b91611a4dfcf3f2640cb540307144 (diff) | |
download | mediagoblin-25625107b6c7805b474ad7da976171991b259e58.tar.lz mediagoblin-25625107b6c7805b474ad7da976171991b259e58.tar.xz mediagoblin-25625107b6c7805b474ad7da976171991b259e58.zip |
This was a quick update, I mostly worked on the transition from using the old
User table columns (is_admin, status, email_verified) and making sure that
their functionality is instead completely handled by privileges. I also worked
on the meta pages which I hope to finish soon. I set up migrations to ensure
the default privileges are given to users that should have them. Lastly, I made
it so that banned users can log out.
===============================================================================
Made Sure the Vestigial Columns of the User Table were not being Used
===============================================================================
--\ mediagoblin/auth/views.py
--\ mediagoblin/db/models.py
--\ mediagoblin/templates/mediagoblin/base.html
--\ mediagoblin/templates/mediagoblin/moderation/user.html
--\ mediagoblin/templates/mediagoblin/user_pages/collection_lis$
--\ mediagoblin/templates/mediagoblin/user_pages/user.html
--\ mediagoblin/tests/test_auth.py
--\ mediagoblin/tests/test_persona.py
--\ mediagoblin/user_pages/views.py
===============================================================================
Wrote the Migrations to Set up the Default Privileges
===============================================================================
--\ mediagoblin/db/migrations.py
--\ mediagoblin/gmg_commands/users.py
===============================================================================
Work on the Meta Pages
===============================================================================
--\ mediagoblin/meta/routing.py
--\ mediagoblin/meta/views.py
--\ mediagoblin/static/css/base.css
--\ mediagoblin/templates/mediagoblin/meta/terms_of_service.html
===============================================================================
Small Changes
===============================================================================
--\ mediagoblin/templates/mediagoblin/base.html
--| Benevolently made it so that banned users can log out
===============================================================================
X X X X X X X X X X X X X X X X X X X X
===============================================================================
Diffstat (limited to 'mediagoblin/tests/test_auth.py')
-rw-r--r-- | mediagoblin/tests/test_auth.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/mediagoblin/tests/test_auth.py b/mediagoblin/tests/test_auth.py index edbd27ee..63c12682 100644 --- a/mediagoblin/tests/test_auth.py +++ b/mediagoblin/tests/test_auth.py @@ -96,8 +96,6 @@ def test_register_views(test_app): new_user = mg_globals.database.User.query.filter_by( username=u'angrygirl').first() assert new_user - assert new_user.status == u'needs_email_verification' - assert new_user.email_verified == False ## Make sure that the proper privileges are granted on registration @@ -137,8 +135,6 @@ def test_register_views(test_app): new_user = mg_globals.database.User.query.filter_by( username=u'angrygirl').first() assert new_user - assert new_user.status == u'needs_email_verification' - assert new_user.email_verified == False ## Verify the email activation works template.clear_test_template_context() @@ -151,8 +147,6 @@ def test_register_views(test_app): new_user = mg_globals.database.User.query.filter_by( username=u'angrygirl').first() assert new_user - assert new_user.status == u'active' - assert new_user.email_verified == True # Uniqueness checks # ----------------- |