aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | Merge branch 'pre-auth' into basic_authRodney Ewing2013-05-273-40/+61
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: mediagoblin/auth/tools.py mediagoblin/auth/views.py mediagoblin/plugins/basic_auth/tools.py
| | * | | | | moved fp_verification_email to auth/toolsRodney Ewing2013-05-272-34/+30
| | | | | | |
| | * | | | | created a check_login_simple functionRodney Ewing2013-05-275-33/+32
| | | | | | |
| | * | | | | added a register_user functionRodney Ewing2013-05-272-33/+55
| | | | | | |
| | * | | | | moved email_debug_message to gmg/tools/mailRodney Ewing2013-05-272-13/+15
| | | | | | |
| | * | | | | moved send_verification_email to auth/toolsRodney Ewing2013-05-273-39/+41
| | | | | | |
| | * | | | | removed unused importRodney Ewing2013-05-271-1/+0
| | | | | | |
| | * | | | | changed User model pw_hash field to nullable and added migrationsRodney Ewing2013-05-272-1/+12
| | | | | | |
| * | | | | | no need for check_login with the new check_login_simple functionRodney Ewing2013-05-274-22/+6
| | | | | | |
| * | | | | | renamed lib to toolsRodney Ewing2013-05-274-17/+16
| | | | | | |
| * | | | | | cleanup after mergeRodney Ewing2013-05-274-20/+14
| | | | | | |
| * | | | | | Merge branch 'pre-auth' into basic_authRodney Ewing2013-05-276-73/+90
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: mediagoblin/auth/tools.py mediagoblin/auth/views.py mediagoblin/db/migrations.py mediagoblin/plugins/basic_auth/lib.py mediagoblin/plugins/httpapiauth/__init__.py mediagoblin/plugins/piwigo/views.py
| | * | | | | | created a check_login_simple functionRodney Ewing2013-05-255-33/+32
| | | | | | | |
| | * | | | | | added a register_user functionRodney Ewing2013-05-242-33/+55
| | | | | | | |
| | * | | | | | moved email_debug_message to gmg/tools/mailRodney Ewing2013-05-242-13/+15
| | | | | | | |
| | * | | | | | moved send_verification_email to auth/toolsRodney Ewing2013-05-243-39/+41
| | | | | | | |
| | * | | | | | removed unused importRodney Ewing2013-05-241-1/+0
| | | | | | | |
| | * | | | | | changed User model pw_hash field to nullable and added migrationsRodney Ewing2013-05-242-1/+12
| | | |_|_|_|/ | | |/| | | |
| * | | | | | moving forgot_password views back to gmg/auth and cleanupRodney Ewing2013-05-2415-477/+144
| | | | | | |
| * | | | | | fixed failing tests after rebaseRodney Ewing2013-05-245-19/+18
| | | | | | |
| * | | | | | added gen_password_hash and check_password functions to auth/__init__Rodney Ewing2013-05-243-3/+13
| | | | | | |
| * | | | | | added focus to form inputRodney Ewing2013-05-245-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: mediagoblin/auth/views.py mediagoblin/plugins/openid/views.py
| * | | | | | modified basic_auth.check_login to check that the user has a pw_hash firstRodney Ewing2013-05-241-3/+4
| | | | | | |
| * | | | | | changed occurances of form.data['whatever'] to form.whatever.dataRodney Ewing2013-05-242-11/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: mediagoblin/plugins/basic_auth/__init__.py mediagoblin/plugins/openid/__init__.py
| * | | | | | check if password field present in basic_auth create_userRodney Ewing2013-05-241-1/+1
| | | | | | |
| * | | | | | added a register_user function to be able to use in a plugin's register ↵Rodney Ewing2013-05-242-28/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | view, and modified auth/views.register to redirect to openid/register if appropriate.
| * | | | | | Modified basic_auth plugin to work with modified auth plugin hooks. Added ↵Rodney Ewing2013-05-242-32/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | context variables. Removed basic_auth/tools which was previously renamed to basic_auth/lib.
| * | | | | | modified auth/__init__ hooks to work better with multiple plugins. Removed ↵Rodney Ewing2013-05-243-96/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | auth/lib.py. And added a basic_extra_verification function that all plugins will use.
| * | | | | | removed check_login from db mixinRodney Ewing2013-05-243-9/+4
| | | | | | |
| * | | | | | added Copyright header to basic_auth/forms.pyRodney Ewing2013-05-241-0/+15
| | | | | | |
| * | | | | | moved fake_login_attempt to pluginsRodney Ewing2013-05-246-27/+166
| | | | | | |
| * | | | | | log a previously logged in user when switched to no_auth modeRodney Ewing2013-05-242-1/+10
| | | | | | |
| * | | | | | added tests for no_auth featureRodney Ewing2013-05-246-4/+138
| | | | | | |
| * | | | | | changed from sys.exit() to raise AuthError for handling no_auth=false in ↵Rodney Ewing2013-05-241-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | config and no auth plugin present
| * | | | | | existing test all passing nowRodney Ewing2013-05-243-121/+194
| | | | | | |
| * | | | | | modified test .ini files and changed tests to use basic_auth bcryptRodney Ewing2013-05-245-3/+11
| | | | | | |
| * | | | | | renamed hook as to no conflict with existing hook namesRodney Ewing2013-05-242-2/+2
| | | | | | |
| * | | | | | renamed basic_auth/tools to basic_auth/libRodney Ewing2013-05-242-4/+103
| | | | | | |
| * | | | | | modified check_login function to return None instead of False to be able to ↵Rodney Ewing2013-05-242-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | have multiple plugins check_login
| * | | | | | moved bcrypt_gen_password_hash to basic_auth/tools and added ↵Rodney Ewing2013-05-245-22/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | gen_password_hash function to auth/__init__
| * | | | | | moved bcrypt_check_password to basic_auth/tools from auth/libRodney Ewing2013-05-246-40/+9
| | | | | | |
| * | | | | | add a check for authentication plugin on startup and respond according to ↵Rodney Ewing2013-05-248-19/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | no_auth config option. allows instance to be run w/o authentication
| * | | | | | changed User model pw_hash field to nullable and added migrationsRodney Ewing2013-05-242-1/+10
| | | | | | |
| * | | | | | moved normalize_user_or_email_field to auth/tools.py from auth/forms.pyRodney Ewing2013-05-241-1/+1
| | | | | | |
| * | | | | | moved forgot pw views to basic_auth pluginRodney Ewing2013-05-249-152/+272
| | | | | | |
| * | | | | | added login.html template hook and basic_auth login templateRodney Ewing2013-05-241-3/+0
| | | | | | |
| * | | | | | basic_auth v0 plugin workingRodney Ewing2013-05-245-58/+161
| |/ / / / /
* | | | | | This is a very small commit. All that I have done here is to clean up my codetilly-Q2013-07-296-81/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a bit. I made it so that mediagoblin.user_pages.report recieves the report form as part of it's context. I also made sure I used {% trans %} tags effect- -ively.
* | | | | | This commit had some important milestones in it. The major update is that now Itilly-Q2013-07-2713-205/+490
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | have mostly completed the moderator punishment and resolution of reports. Along with this, I have also added one last table to the database: one that holds ar- -chived (or resolved) reports. This is some of the primary functionality of my whole update, so this is a big step! The other changes I made this update are primarily organizational. I refactored some of my code into functions and I cl- eaned up many of my templates. --\ mediagoblin/db/models.py --| Created the new ArchivedReport table --| Removed columns from BaseReport table that are only necessary for Archived | reports --\ mediagoblin/db/migrations.py --| Created the new ArchivedReport table --| Removed columns from BaseReport table that are only necessary for Archived | reports --\ mediagoblin/db/util.py --| Created the user_privileges_to_dictionary function. This is useful for | accessing a user's permissions from within a template. --\ mediagoblin/moderation/forms.py --| Expanded the disciplinary actions a moderator can take --| Allowed the moderator to choose more than one disciplinary action at a time | (It's now managed with a list of checkboxes rather than radio buttons) ----| Pulled a MultiCheckBox class from a wtforms tutorial --| Added various other form inputs for details of the moderator's disciplinary | actions --| Tried to ensure that every string is unicode and translated --\ mediagoblin/moderation/tools.py --| Created this file for holding useful moderation tools --| Moved the penalizing code from views to the function take_punitive_actions --| Added many more types of punitive actions --| Added the archiving of old reports --\ mediagoblin/moderation/views.py --| Used the privileges_to_dictionary function for the Users Detail view to | allow for different actions available to a moderator and an admin. --| Added in functionality for ArchivedReports to the reports_detail and | reports_panel views --| Moved the punishments of repots_detail to tools.py (as mentioned above) --\ mediagoblin/static/css/base.css --| Added new styling for the User Detail page --\ mediagoblin/static/images/icon_clipboard_alert.png --| Added this image to represent unresolved reports --\ mediagoblin/templates/mediagoblin/moderation/report.html --| Added 'Return to Reports Panel' button --| Fixed the spacing to be less that 80 columns wide --| Added in display for Archived Reports --\ mediagoblin/templates/mediagoblin/moderation/reports_panel.html --| Changed the placement and columns of the tables --| Fixed the spacing to be less that 80 columns wide --| Added in display for Archived Reports --\ mediagoblin/templates/mediagoblin/moderation/user.html --| Fixed the spacing to be less that 80 columns wide --| Took away the moderator's ability to add and remove privileges at will. | Only the admin has this power now. --\ mediagoblin/templates/mediagoblin/moderation/users_panel.html --| Fixed the spacing to be less that 80 columns wide --\ mediagoblin/tools/response.py --| Added in code to remove a UserBan from a User if that user logs in after | the expiration date
* | | | | | Whew. This is a big update. I did some significant keeping work. I moved all oftilly-Q2013-07-1723-189/+509
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the folders and enpoints labeled 'admin' to the more accurate term of 'moderat- ion.' I also created the ability for admins and moderators to add or remove pr- ivileges or to ban a user in response to a report. This also meant implementing the UserBan class in various places. I also had to add a column called result to the ReportBase table. This allows the moderator/admin to leave comments when they respond to a report, allowing for archiving of what responses they do/n't take. --\ mediagoblin/db/migrations.py --| Added result column to ReportBase --\ mediagoblin/db/models.py --| Added result column to ReportBase --| Added documentation to tables I had made previously --\ mediagoblin/decorators.py --| Editted the user_has_privilege decorator to check whether a user has been | banned or not --| Created a seperate user_not_banned decorator to prevent banned users from | accessing any pages --| Changed require_admin_login into require_admin_or_moderator login --\ mediagoblin/gmg_commands/users.py --| Made the gmg command `adduser` create a user w/ the appropriate privileges --\ mediagoblin/moderation/routing.py << formerly mediagoblin/admin/routing.py --| Renamed all of the routes from admin -> moderation --\ mediagoblin/routing.py --| Renamed all of the routes from admin -> moderation --\ mediagoblin/moderation/views.py << formerly mediagoblin/admin/views.py --| Renamed all of the routes & functions from admin -> moderation --| Expanded greatly on the moderation_reports_detail view and functionality --| Added in the give_or_take_away_privilege form, however this might be a use- | -less function which I could remove (because privilege changes should happe- | n in response to a report so they can be archived and visible) --\ mediagoblin/static/css/base.css --| Added in a style for the reports_detail page --\ mediagoblin/templates/mediagoblin/base.html --| Renamed all of the routes from admin -> moderation --\ mediagoblin/templates/mediagoblin/moderation/report.html --| Added form to allow moderators and admins to respond to reports. --\ mediagoblin/templates/mediagoblin/moderation/reports_panel.html --| Fixed the table for closed reports --\ mediagoblin/templates/mediagoblin/moderation/user.html --| Added in a table w/ all of the user's privileges and the option to add or | remove them. Again, this is probably vestigial --| Renamed all of the routes from admin -> moderation --\ mediagoblin/templates/mediagoblin/moderation/user_panel.html --| Renamed all of the routes from admin -> moderation --\ mediagoblin/tools/response.py --| Added function render_user_banned, this is the view function for the redir- | -ect that happens when a user tries to access the site whilst banned --\ mediagoblin/user_pages/forms.py --| Added important translate function where I had text --\ mediagoblin/user_pages/lib.py --| Renamed functiion for clarity --\ mediagoblin/user_pages/views.py --| Added the user_not_banned decorator to every view --\ mediagoblin/views.py --| Added the user_not_banned decorator --\ mediagoblin/moderation/forms.py --| Created this new file --\ mediagoblin/templates/mediagoblin/banned.html --| Created this new file --| This is the page which people are redirected to when they access the site | while banned