3618 Commits

Author SHA1 Message Date
Christopher Allan Webber
6a7e4b431c Updated AUTHORS for v0.5.0 2013-09-03 11:38:50 -05:00
tilly-Q
dc31cd1b65 I've moved on to one of the last phases of my work! Now I'm just checking off
items from my last to-do list. The biggest change in this commit is that I made
the moderation reports panel sortable via get request. I also added in page nu-
mbers so that more than 10 reports can be viewed. I'm hoping to go from here to
make a search page. Aside from that, there were only a few other changes I made
this time. I fixed two bugs in my code. I copy-ed and pasted function
mediagoblin.user_pages.views:media_preview_comment which I must've deleted ear-
-lier in a merge. And I moved some of the javascript I was using in the modera-
-tion templates into it's own seperate .js file.

===============================================================================
    Made the moderation reports panel view sortable
===============================================================================
--\ mediagoblin/moderation/forms.py
--\ mediagoblin/moderation/views.py
--\ mediagoblin/templates/mediagoblin/moderation/report_panel.html
--\ mediagoblin/templates/mediagoblin/moderation/user.html
--|  Made `<user> report history` into a link that automatically shows all open
  | and closed reports on <user>.

===============================================================================
    Grabbed some code from master that I accidentally deleted in a merge
===============================================================================
--\ mediagoblin/user_pages/views.py

===============================================================================
    Moved javascript away from templates into its own file
===============================================================================
--\ mediagoblin/static/js/setup_report_forms.js
--\ mediagoblin/templates/mediagoblin/moderation/report.html
--\ mediagoblin/templates/mediagoblin/moderation/user.html

===============================================================================
    Cleared trailing white space
===============================================================================
--\ mediagoblin/templates/mediagoblin/moderation/media_panel.html
--\ mediagoblin/moderation/tools.py
--\ mediagoblin/templates/mediagoblin/meta/terms_of_service.html
--\ mediagoblin/templates/mediagoblin/moderation/report_panel.html
--\ mediagoblin/templates/mediagoblin/user_pages/media.html
--\ mediagoblin/tests/test_modelmethods.py

===============================================================================
    Small fixes
===============================================================================
--\ mediagoblin/templates/mediagoblin/moderation/report.html
--|  Fixed a link so that it points to the correct user page

--\ mediagoblin/templates/mediagoblin/user_pages/media.html
--|  Fixed a bug that crashed this page when a guest visitted it (because
  | request.user is None)
2013-09-03 11:57:10 -04:00
Sebastian Spaeth
51b4318079 Simplify non-active user page
Currently, the logic of whether a user account has been activated is in
the main user.html template. This is not good as: doing that check for all
users from template code is probably not great for performance, but more
severly, the template logic is rather difficult and convoluted.

Split this in a user.html and a user_nonactive.html where user.html is
used for active users and user_nonactive displays all the "you still need
to be activated" blurbs. This makes the templates much easier on the eyes.
2013-09-03 17:52:28 +02:00
Rodney Ewing
6375cf735c should use public_store.file_exists to check if the file copied correctly 2013-09-02 12:09:55 -07:00
Rodney Ewing
dd57c6c5e5 didn't remove form.new_email when change email was moved to its own view 2013-08-31 13:45:58 -07:00
Christopher Allan Webber
6b61a51e45 We're presently tied to a very specific version of oauthlib... 2013-08-30 16:27:39 -05:00
tilly-Q
1bb367f613 This is a quick commit. I gave admins the ability to ban or unban users
straight from the moderation.users_detail page. I also changed the
UserBan.expiration_date type from DateTime into Date. I also began work on the
Terms of Service, pulled from another website (which will be cited clearly
before I'm done). I added new tests as well for the ban/unbanning. Lastly,
I added a few `user_not_banned` decorators to relevant views, so banned users
cannot access any pages.
2013-08-29 17:31:19 -04:00
tilly-Q
dfd66b789c This was a big commit! I included lots of documentation below, but generally I
did a few things. I wrote many many many new tests, either in old test files or
in the three new test files I made. I also did some code-keeping work, deleting
trailing whitespace and deleting vestigial code. Lastly, I fixed the parts of
the code which I realized were broken thru the process of running tests.

===============================================================================
 Deleted trailing whitespace:
===============================================================================
--\  mediagoblin/decorators.py
--\  mediagoblin/auth/tools.py
--\  mediagoblin/db/migrations.py
--\  mediagoblin/db/models.py
--\  mediagoblin/gmg_commands/users.py
--\  mediagoblin/moderation/forms.py
--\  mediagoblin/moderation/tools.py
--\  mediagoblin/moderation/views.py
--\  mediagoblin/templates/mediagoblin/moderation/media_panel.html
--\  mediagoblin/templates/mediagoblin/moderation/report.html
--\  mediagoblin/templates/mediagoblin/moderation/report_panel.html
--\  mediagoblin/templates/mediagoblin/moderation/user.html
--\  mediagoblin/templates/mediagoblin/moderation/user_panel.html
--\  mediagoblin/templates/mediagoblin/user_pages/report.html
--\  mediagoblin/templates/mediagoblin/utils/report.html
--\  mediagoblin/user_pages/lib.py
--\  mediagoblin/user_pages/views.py
===============================================================================
 Deleted Vestigial Code
===============================================================================
--\  mediagoblin/db/util.py
--\  mediagoblin/tests/test_notifications.py
===============================================================================
 Modified the Code:
===============================================================================
--\  mediagoblin/moderation/tools.py
--| Encapsulated the code around giving/taking away privileges into two
  | funtions.

--\  mediagoblin/moderation/views.py
--| Imported and used the give/take away privilege functions
--| Replaced 'require_admin_or_moderator_login' with
  |'user_has_privilege(u"admin")' for adding/taking away privileges, only
  | admins are allowed to do this.

--\  mediagoblin/templates/mediagoblin/banned.html
--| Added relevant translation tags
--| Added ability to display indefinite banning

--\  mediagoblin/templates/mediagoblin/user_pages/media.html
--| Made sure the add comments button was only visible for users with the
  | `commenter` privilege

--\  mediagoblin/tests/test_submission.py
--| Paroneayea fixed a DetachedInstanceError I was having with the our_user
  | function

--\  mediagoblin/tests/tools.py
--| Added a fixture_add_comment_report function for testing.

--\  mediagoblin/tools/response.py
--| Fixed a minor error where a necessary return statement was missing
--| Fit the code within 80 columns

--\  mediagoblin/user_pages/views.py
--| Added a necessary decorator to ensure that only users with the 'commenter'
  | privilege can post comments
===============================================================================
 Wrote new tests for an old test file:
===============================================================================
--\  mediagoblin/tests/test_auth.py
--| Added a new test to make sure privilege granting on registration happens
  | correctly

--\  mediagoblin/tests/test_modelmethods.py*
--| Added a test to ensure the User method has_privilege works properly
===============================================================================
 Wrote entirely new files full of tests:
===============================================================================
--\  mediagoblin/tests/test_moderation.py
--\  mediagoblin/tests/test_privileges.py
--\  mediagoblin/tests/test_reporting.py
===============================================================================
===============================================================================
NOTE: Any files I've marked with a * in this commit report, were actually subm-
itted in my last commit. I made that committ to fix an error I was having, so
they weren't properly documented in that report.
===============================================================================
===============================================================================
2013-08-29 13:47:50 -04:00
Rodney Ewing
3f59518463 pdf media_type now have their own config_spec.ini 2013-08-29 08:22:16 -07:00
Rodney Ewing
738cc49926 ascii media_type now have their own config_spec.ini 2013-08-29 08:22:16 -07:00
Rodney Ewing
9ff68c224e audio media_type now have their own config_spec.ini 2013-08-29 08:22:16 -07:00
Rodney Ewing
9a6741d7bf video media_type now have their own config_spec.ini 2013-08-29 08:22:16 -07:00
Rodney Ewing
93874d0a66 image media_type now have their own config_spec.ini 2013-08-29 08:22:16 -07:00
Christopher Allan Webber
6a01fafc98 Explicitly require a newer celery 2013-08-29 09:36:34 -05:00
Christopher Allan Webber
b33feb18a7 Fix failing to build docs 2013-08-28 11:11:41 -05:00
Christopher Allan Webber
9dfca6b3ce double colon here was killing the build 2013-08-28 11:06:07 -05:00
Christopher Allan Webber
7904402750 Should fix Beuc's bug with video thumbnail width... I think! 2013-08-28 09:15:47 -05:00
Rodney Ewing
a126ef4d89 0.5.0 release notes 2013-08-27 14:24:24 -07:00
Christopher Allan Webber
fea0e4e4ea Committing extracted and compiled translations 2013-08-26 17:39:53 -05:00
Christopher Allan Webber
85572ade58 Committing present MediaGoblin translations before pushing extracted messages 2013-08-26 17:38:50 -05:00
Christopher Allan Webber
1847a482c1 Fixing another typo, thanks to Laura Arjona (again!) 2013-08-26 17:35:54 -05:00
Christopher Allan Webber
6db375b522 Fixing typo. Thanks larjona! 2013-08-26 17:28:51 -05:00
Christopher Allan Webber
3b8251f329 Switch docs back over to using old virtualenv setup while we resolve issue #755 2013-08-26 15:50:47 -05:00
Christopher Allan Webber
567c09f02c Committing extracted and compiled translations 2013-08-26 14:19:44 -05:00
Christopher Allan Webber
3bc2bb1bc7 Committing present MediaGoblin translations before pushing extracted messages 2013-08-26 14:18:04 -05:00
Christopher Allan Webber
e9e57e144e transifex.net->transifex.com 2013-08-26 14:17:34 -05:00
Rodney Ewing
0b95003cd4 use media.get_uploader and fix typo 2013-08-26 06:33:30 -07:00
Rodney Ewing
2188925bab javascript limit validation 2013-08-26 06:33:30 -07:00
Rodney Ewing
a80ea74702 fix after rebase 2013-08-26 06:33:30 -07:00
Rodney Ewing
e1ad18cc6d duplicate 2013-08-26 06:33:30 -07:00
Rodney Ewing
7707172e39 copying.txt 2013-08-26 06:33:30 -07:00
Rodney Ewing
53cf5b4556 added tests 2013-08-26 06:33:30 -07:00
Rodney Ewing
1cb84a3632 fixed tests and defaults 2013-08-26 06:33:30 -07:00
Rodney Ewing
ecb4512822 max file size 2013-08-26 06:33:30 -07:00
Rodney Ewing
2f74de492e fixed tests 2013-08-26 06:33:30 -07:00
Rodney Ewing
cc4457f407 fixed tests and defaults 2013-08-26 06:33:29 -07:00
Rodney Ewing
001a50a850 fixed tests and defaults 2013-08-26 06:33:29 -07:00
Rodney Ewing
91a52878cf made no upload limit the default 2013-08-26 06:33:29 -07:00
Rodney Ewing
150bee3f8f typos 2013-08-26 06:33:28 -07:00
Rodney Ewing
c3cce7564a added tests 2013-08-26 06:33:28 -07:00
Rodney Ewing
bdd2242155 added user upload limits 2013-08-26 06:33:28 -07:00
Christopher Allan Webber
7b12cbd98b Removing unnecessary "setup_plugin()" calls, as pointed out by Velmont. 2013-08-25 13:59:34 -05:00
Christopher Allan Webber
6c3d383bbb Merge remote-tracking branch 'refs/remotes/rodney757/email' 2013-08-25 13:23:27 -05:00
tilly-Q
e46fb71c1d pushing so paroneayea can help me resolve a conflict within the tests. 2013-08-23 16:14:36 -04:00
Christopher Allan Webber
e8eec575f3 Not sure why there wasn't a .commit() at the end of add_new_notification_tables()
... but it seems like there should be and it wouldn't hurt.

This commit sponsored by Julio Claudio Matus Ramirez.  Thank you!
2013-08-22 16:04:19 -05:00
Rodney Ewing
fd9e4af272 skip ascii thumb resizing if necessary 2013-08-21 16:03:34 -07:00
Rodney Ewing
e2b5634549 skip image resizing if possible 2013-08-21 14:44:18 -07:00
Rodney Ewing
e002452f91 get and set metadata for a MediaFile 2013-08-21 14:44:13 -07:00
Christopher Allan Webber
2c79dbc5ff Merge remote-tracking branch 'refs/remotes/rodney757/notifications' 2013-08-21 16:00:48 -05:00
Rodney Ewing
0cdebda7fc only use the width for video thumbnails to keep the correct scaling 2013-08-21 12:38:12 -07:00