
paroneayea's request, which was to make to possible to turn off user's ability to file reports through a mediagoblin.ini setting. Aside from this, I had to make it possible for the Moderation User Panel to display more than 10 users. And aside from that, I just had to fix some errors which cropped up with my most recent additions. I also fixed some tests that were broken because I had changed the checks for whether or not a user is active. Nearing the end! =============================================================================== Made it possible to turn off reports through a mediagoblin.ini setting =============================================================================== --\ mediagoblin.ini --\ mediagoblin/config_spec.ini --\ mediagoblin/decorators.py --\ mediagoblin/moderation/views.py --\ mediagoblin/templates/mediagoblin/user_pages/media.html --\ mediagoblin/user_pages/views.py =============================================================================== Made User Panel capable of showing more than 1 page of users =============================================================================== --\ mediagoblin/moderation/forms.py --\ mediagoblin/moderation/views.py --\ mediagoblin/templates/mediagoblin/moderation/user_panel.html =============================================================================== Fixed Broken Tests =============================================================================== --\ mediagoblin/tests/test_notifications.py --\ mediagoblin/tests/test_openid.py --\ mediagoblin/tests/test_persona.py --\ mediagoblin/tests/test_reporting.py =============================================================================== Fixed errors in code =============================================================================== --\ mediagoblin/db/migrations.py --| Set nullable to True for MediaReports' and CommentReports' content foreign |keys --\ mediagoblin/db/models.py --| Got rid of cascading rules for MediaReports' and CommentReports' content |foreign keys. This makes it possible for the Reports to continue to exist |after the content is deleted. --\ mediagoblin/moderation/tools.py --| Fixed formatting of Report Resolution Methods --| Took out pieces of code used in debugging --\ mediagoblin/templates/mediagoblin/base.html --\ mediagoblin/templates/mediagoblin/moderation/report.html --| Made reports details page able to tell what is a deleted archived report. --\ mediagoblin/templates/mediagoblin/moderation/report_panel.html --\ mediagoblin/templates/mediagoblin/utils/report.html
51 lines
1.7 KiB
INI
51 lines
1.7 KiB
INI
# If you want to make changes to this file, first copy it to
|
||
# mediagoblin_local.ini, then make the changes there.
|
||
#
|
||
# If you don't see what you need here, have a look at mediagoblin/config_spec.ini
|
||
# It defines types and defaults so it’s a good place to look for documentation
|
||
# or to find hidden options that we didn’t tell you about. :)
|
||
|
||
[mediagoblin]
|
||
direct_remote_path = /mgoblin_static/
|
||
email_sender_address = "notice@mediagoblin.example.org"
|
||
|
||
## Uncomment and change to your DB's appropiate setting.
|
||
## Default is a local sqlite db "mediagoblin.db".
|
||
## Don't forget to run `./bin/gmg dbupdate` after having changed it.
|
||
# sql_engine = postgresql:///mediagoblin
|
||
|
||
# Set to false to enable sending notices
|
||
email_debug_mode = true
|
||
|
||
# Set to false to disable registrations
|
||
allow_registration = true
|
||
|
||
# Set to false to disable the ability for users to report offensive content
|
||
allow_reporting = true
|
||
|
||
## Uncomment this to put some user-overriding templates here
|
||
# local_templates = %(here)s/user_dev/templates/
|
||
|
||
## You can set your theme by specifying this (not specifying it will
|
||
## use the default theme). Run `gmg theme assetlink` to apply the change.
|
||
## The airy theme comes with GMG; please see the theming docs on how to
|
||
## install other themes.
|
||
# theme = airy
|
||
|
||
[storage:queuestore]
|
||
base_dir = %(here)s/user_dev/media/queue
|
||
|
||
[storage:publicstore]
|
||
base_dir = %(here)s/user_dev/media/public
|
||
base_url = /mgoblin_media/
|
||
|
||
[celery]
|
||
# Put celery stuff here
|
||
|
||
# Place plugins here, each in their own subsection of [plugins].
|
||
# See http://docs.mediagoblin.org/siteadmin/plugins.html for details.
|
||
[plugins]
|
||
[[mediagoblin.plugins.geolocation]]
|
||
[[mediagoblin.plugins.basic_auth]]
|
||
[[mediagoblin.media_types.image]]
|