mediagoblin.git
10 years agoThis was a quick update to clean up some of my templates and fix the formatting
tilly-Q [Tue, 8 Oct 2013 22:42:59 +0000 (18:42 -0400)]
This was a quick update to clean up some of my templates and fix the formatting
in some of my other bits of code. In migrations.py, I clarified the comments &
fixed the code to stay within 80 columns. In each of the templates, I fixed the
spacing as well to stay within 80 columns and I also corrected my improper uses
of the trans tag to ensure that these pages can be translated correctly.

10 years agoThis was a very important update where I fixed a few small but fatal bugs in my
tilly-Q [Thu, 3 Oct 2013 21:07:11 +0000 (17:07 -0400)]
This was a very important update where I fixed a few small but fatal bugs in my
code. I had removed the import of Privilege in mediagoblin.db.migrations, and
this was still necessary and was causing errors. I also made it so that media
deletion by moderators, through reports, actually fully deleted the media,
rather than just deleting the database representation of the media. Lastly, I
fixed a bug in migration that caused a fatal error on login because the UserBan
user_id column was improperly named in it's creation by migration.

10 years agoIn this commit, I mostly did work on the migrations. Firstly, I droppped the
tilly-Q [Thu, 3 Oct 2013 20:13:12 +0000 (16:13 -0400)]
In this commit, I mostly did work on the migrations. Firstly, I droppped the
vestigial columns from the User table (ie. status, email_verified, is_admin).
Otherwise, I did a lot of work converting my existing migrations from high-
level ORM commands to low-level SQL commands to ensure that the migrating will
work regardless of what stage their instance is working in. I also re-integrated
my two registered migrations into one. Because the migration became very long, I
also added a lot of clarifying documentation.

10 years agoThis commit was solely to remove unused imports in the code that I have written
tilly-Q [Mon, 23 Sep 2013 18:10:11 +0000 (14:10 -0400)]
This commit was solely to remove unused imports in the code that I have written

10 years agoAt this point, I am very close to done with this code! I made one big change at
tilly-Q [Mon, 23 Sep 2013 17:20:18 +0000 (13:20 -0400)]
At this point, I am very close to done with this code! I made one big change at
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

10 years agoMerge branch 'master' into OPW-Moderation-Update
tilly-Q [Thu, 12 Sep 2013 22:58:04 +0000 (18:58 -0400)]
Merge branch 'master' into OPW-Moderation-Update

Conflicts:
mediagoblin/db/migrations.py

10 years agoIn this next small update, I made a few changes to protect against XXS attacks
tilly-Q [Thu, 12 Sep 2013 22:16:25 +0000 (18:16 -0400)]
In this next small update, I made a few changes to protect against XXS attacks
in the moderation panel.

10 years agoIn this commit, I'm deleting the ArchivedReports object, at paroneyea's recom-
tilly-Q [Wed, 11 Sep 2013 21:09:21 +0000 (17:09 -0400)]
In this commit, I'm deleting the ArchivedReports object, at paroneyea's recom-
-mendation. Instead, all of its functionality will be in the ReportBase object.

10 years agoThis should be my final code update before I am ready for review! Basically, in
tilly-Q [Tue, 10 Sep 2013 17:16:22 +0000 (13:16 -0400)]
This should be my final code update before I am ready for review! Basically, in
this update I finished the search/sort function on the Reports Panel. I also
finished the Terms of Service and made the decision to remove the meta portion
of the site I had planned to create. I decided that the features involved were
just unnecessary at this point. I also dropped the User status column and added
a migration to establish default privileges (and create the privilege foundat-
-ions. I fixed a few small errors that were left over as well, in the implemen-
tation and in the tests. Next, I just need to await code review and work on the
documentation for these new features. I also need to supervise a new merge to
master.

===============================================================================
    Dropped the vestigial 'status' column
===============================================================================
--\ mediagoblin/db/migrations.py
--\ mediagoblin/db/models.py
--| Also added in comments describing the current situation with the `is_admin`
  | and `email_verified` columns, where they are 100% vestigial but cannot be
  | dropped.

===============================================================================
            Wrote necessary migrations to set up Privilege
    foundations and give users the necessary privileges on an older
     implementation of mediagoblin that is migrating into this update
===============================================================================
--\ mediagoblin/db/migrations.py

===============================================================================
    Deleted the meta pages
===============================================================================
--\ Deleted mediagoblin/meta/__init__.py
--\ Deleted mediagoblin/meta/routing.py
--\ Deleted mediagoblin/meta/views.py
--\ Deleted mediagoblin/templates/mediagoblin/meta/code_of_conduct.html
--\ Deleted mediagoblin/templates/mediagoblin/meta/reports_details.html
--\ Deleted mediagoblin/templates/mediagoblin/meta/reports_panel.html
    ----------------------------------------------------------------
        Moved the terms of service to /terms_of_service
    ----------------------------------------------------------------
    --\ Moved mediagoblin/templates/mediagoblin/meta/terms_of_service.html
        -> mediagoblin/templates/mediagoblin/terms_of_service.html
    --| I decided that terms of service were really the only necessary part of my
      | planned "meta" pages, so I moved it instead to its own singular page
    --\ mediagoblin/routing.py
    --\ mediagoblin/static/css/base.css
    --\ mediagoblin/templates/mediagoblin/base.html
    --\ mediagoblin/views.py

===============================================================================
          Simplified & Finished the Reports Panel Searching
===============================================================================
--\ mediagoblin/moderation/forms.py
--\ mediagoblin/moderation/tools.py
--\ mediagoblin/moderation/views.py
--\ mediagoblin/templates/mediagoblin/moderation/report_panel.html
--\ mediagoblin/templates/mediagoblin/moderation/user.html

===============================================================================
                  Fixed Small Errors
===============================================================================
--\ mediagoblin/templates/mediagoblin/user_pages/user.html
--\ mediagoblin/tests/test_moderation.py
--\ mediagoblin/tests/tools.py

===============================================================================

10 years agoSupport python 2.6 again! Thanks to julianoliver for catching this.
Christopher Allan Webber [Mon, 9 Sep 2013 15:01:56 +0000 (10:01 -0500)]
Support python 2.6 again!  Thanks to julianoliver for catching this.

This commit sponsored by Sam Clegg.  Thank you!

10 years agoThis was a quick update, I mostly worked on the transition from using the old
tilly-Q [Sun, 8 Sep 2013 22:26:37 +0000 (18:26 -0400)]
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
===============================================================================

10 years agotypo. conversions not convirsions
Rodney Ewing [Fri, 6 Sep 2013 21:27:55 +0000 (14:27 -0700)]
typo. conversions not convirsions

thanks to saul for pointing this out.

10 years agoreword persona edit link
Rodney Ewing [Thu, 5 Sep 2013 16:04:23 +0000 (09:04 -0700)]
reword persona edit link

10 years agoRevert "Temporarily switching git:// to http://"
Christopher Allan Webber [Thu, 5 Sep 2013 14:51:22 +0000 (09:51 -0500)]
Revert "Temporarily switching git:// to http://"

This reverts commit 18922af5830f4a7686ec3b3ff11dc309a5a9cca6.

10 years agoTemporarily switching git:// to http://
Christopher Allan Webber [Thu, 5 Sep 2013 14:37:08 +0000 (09:37 -0500)]
Temporarily switching git:// to http://

10 years agoIn the v0.6.0 cycle now
Christopher Allan Webber [Thu, 5 Sep 2013 14:34:48 +0000 (09:34 -0500)]
In the v0.6.0 cycle now

10 years agoMediaGoblin v0.5.0!
Christopher Allan Webber [Wed, 4 Sep 2013 21:25:12 +0000 (16:25 -0500)]
MediaGoblin v0.5.0!

10 years agoCommitting extracted and compiled translations
Christopher Allan Webber [Wed, 4 Sep 2013 21:07:37 +0000 (16:07 -0500)]
Committing extracted and compiled translations

10 years agoCommitting present MediaGoblin translations before pushing extracted messages
Christopher Allan Webber [Wed, 4 Sep 2013 21:07:12 +0000 (16:07 -0500)]
Committing present MediaGoblin translations before pushing extracted messages

10 years agoCommitting extracted and compiled translations
Christopher Allan Webber [Wed, 4 Sep 2013 21:03:57 +0000 (16:03 -0500)]
Committing extracted and compiled translations

10 years agoCommitting present MediaGoblin translations before pushing extracted messages
Christopher Allan Webber [Wed, 4 Sep 2013 21:02:48 +0000 (16:02 -0500)]
Committing present MediaGoblin translations before pushing extracted messages

10 years agoFixing tyop. Thanks for catching, tryggvib :)
Christopher Allan Webber [Wed, 4 Sep 2013 21:01:21 +0000 (16:01 -0500)]
Fixing tyop.  Thanks for catching, tryggvib :)

10 years agoCaution about the API in the release notes
Christopher Allan Webber [Wed, 4 Sep 2013 19:25:40 +0000 (14:25 -0500)]
Caution about the API in the release notes

10 years agoneed to send the users email to persona if the user logged in with persona.
Rodney Ewing [Wed, 4 Sep 2013 15:35:30 +0000 (08:35 -0700)]
need to send the users email to persona if the user logged in with persona.

Thanks callahad for pointing this out.

10 years agoThanking Dan Callahan as a contributor. Thanks for helping with the persona stuff! :)
Christopher Allan Webber [Wed, 4 Sep 2013 14:23:02 +0000 (09:23 -0500)]
Thanking Dan Callahan as a contributor.  Thanks for helping with the persona stuff! :)

10 years agoImprove checkbox description
Sebastian Spaeth [Wed, 4 Sep 2013 12:54:00 +0000 (14:54 +0200)]
Improve checkbox description

Do not Enable/Disable next to a checkbox. So what does an enabled checkbox do then?

10 years agoMerge remote-tracking branch 'refs/remotes/spaetz/fix_docs'
Christopher Allan Webber [Wed, 4 Sep 2013 12:41:56 +0000 (07:41 -0500)]
Merge remote-tracking branch 'refs/remotes/spaetz/fix_docs'

10 years agoFix plugin documentation
Sebastian Spaeth [Wed, 4 Sep 2013 09:35:39 +0000 (11:35 +0200)]
Fix plugin documentation

The docs suggest to use {% template_hook "media_sidebar" %}. This
will break Mediagoblin in mysterious ways, and the docs need a fix.

10 years agoAdd site name, logo, and background for Persona
Dan Callahan [Tue, 3 Sep 2013 20:31:28 +0000 (15:31 -0500)]
Add site name, logo, and background for Persona

10 years agoI did some more code-keeping in this commit. I added a lot of documentation, so
tilly-Q [Tue, 3 Sep 2013 20:19:07 +0000 (16:19 -0400)]
I did some more code-keeping in this commit. I added a lot of documentation, so
that most of my functions do indeed have effective docstrings. I also changed
the decorators so that they imply eachother in a logical way. I also modified
the one decorator get_media_comment_by_id to be more usable with the variable
urls of mediagoblin.user_pages.views:file_a_report. I also noticed a few tests
had broken, so I went through them and fixed them up, finding that mostly there
were problems in my actual writing of the tests. I also did a few other small
tasks such as creating a new User method to check whether or not a User is ban-
-ned.

===============================================================================
    Added in documentation
===============================================================================
--\  mediagoblin/db/models.py
--\  mediagoblin/decorators.py
--\  mediagoblin/moderation/forms.py
--\  mediagoblin/moderation/tools.py
--\  mediagoblin/moderation/views.py
--\  mediagoblin/user_pages/lib.py

===============================================================================
    Rearranged decorators to be more efficient
===============================================================================
--\  mediagoblin/decorators.py
--| Made it so that user_not_banned is encapsulated in require_active_login
--| Made it so that require_active_login is encapsulated in user_has_privilege
--| Changed get_media_comment_by_id into get_optional_media_comment_by_id. It
  | now returns valid code if the MediaComment id is absent. This makes it pos-
  | -sible to use this decorator for the function:
  |         mediagoblin.user_pages.views:file_a_report

--\  mediagoblin/user_pages/views.py
--| Replaced the mediagoblin.user_pages.views:file_a_comment_report with the
  | decorator mentioned above

--\  mediagoblin/user_pages/routing.py

        -----------------------------------------------------------
        |     took out unnecessary @user_not_banned decorators    |
        -----------------------------------------------------------
--\  mediagoblin/submit/views.py
--\  mediagoblin/user_pages/views.py

===============================================================================
    Fixed broken tests
===============================================================================
--\  mediagoblin/tests/test_auth.py
--\  mediagoblin/tests/test_privileges.py
--\  mediagoblin/tests/test_submission.py

===============================================================================
    Fixed broken code
===============================================================================
--\  mediagoblin/tools/response.py

===============================================================================
    Other Tasks
===============================================================================
--\  mediagoblin/db/models.py
--| Added in User.is_banned() method
--\  mediagoblin/decorators.py
--| Utitilized User.is_banned() method in the user_not_banned decorator

--\  mediagoblin/moderation/views.py
--| Made it impossible for an admin to ban themself.
--| Got rid of a vestigial print statement

--\  mediagoblin/templates/mediagoblin/base.html
--| Made it so the top panel does not show up for users that are banned.

--\  mediagoblin/templates/mediagoblin/moderation/user.html
--| Rearranged the javascript slightly

===============================================================================

10 years agoUpdated AUTHORS for v0.5.0
Christopher Allan Webber [Mon, 2 Sep 2013 21:28:35 +0000 (16:28 -0500)]
Updated AUTHORS for v0.5.0

10 years agoI've moved on to one of the last phases of my work! Now I'm just checking off
tilly-Q [Tue, 3 Sep 2013 15:57:10 +0000 (11:57 -0400)]
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)

10 years agoshould use public_store.file_exists to check if the file copied correctly
Rodney Ewing [Mon, 2 Sep 2013 19:09:55 +0000 (12:09 -0700)]
should use public_store.file_exists to check if the file copied correctly

10 years agodidn't remove form.new_email when change email was moved to its own view
Rodney Ewing [Sat, 31 Aug 2013 20:45:58 +0000 (13:45 -0700)]
didn't remove form.new_email when change email was moved to its own view

10 years agoWe're presently tied to a very specific version of oauthlib...
Christopher Allan Webber [Fri, 30 Aug 2013 21:27:22 +0000 (16:27 -0500)]
We're presently tied to a very specific version of oauthlib...

10 years agoThis is a quick commit. I gave admins the ability to ban or unban users
tilly-Q [Thu, 29 Aug 2013 21:31:19 +0000 (17:31 -0400)]
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.

10 years agoThis was a big commit! I included lots of documentation below, but generally I
tilly-Q [Thu, 29 Aug 2013 17:47:50 +0000 (13:47 -0400)]
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.
===============================================================================
===============================================================================

10 years agopdf media_type now have their own config_spec.ini
Rodney Ewing [Wed, 28 Aug 2013 15:21:20 +0000 (08:21 -0700)]
pdf media_type now have their own config_spec.ini

10 years agoascii media_type now have their own config_spec.ini
Rodney Ewing [Wed, 28 Aug 2013 15:14:26 +0000 (08:14 -0700)]
ascii media_type now have their own config_spec.ini

10 years agoaudio media_type now have their own config_spec.ini
Rodney Ewing [Wed, 28 Aug 2013 15:12:43 +0000 (08:12 -0700)]
audio media_type now have their own config_spec.ini

10 years agovideo media_type now have their own config_spec.ini
Rodney Ewing [Wed, 28 Aug 2013 15:10:47 +0000 (08:10 -0700)]
video media_type now have their own config_spec.ini

10 years agoimage media_type now have their own config_spec.ini
Rodney Ewing [Wed, 28 Aug 2013 14:56:44 +0000 (07:56 -0700)]
image media_type now have their own config_spec.ini

10 years agoExplicitly require a newer celery
Christopher Allan Webber [Thu, 29 Aug 2013 14:36:34 +0000 (09:36 -0500)]
Explicitly require a newer celery

10 years agoFix failing to build docs
Christopher Allan Webber [Wed, 28 Aug 2013 16:11:41 +0000 (11:11 -0500)]
Fix failing to build docs

10 years agodouble colon here was killing the build
Christopher Allan Webber [Wed, 28 Aug 2013 16:06:07 +0000 (11:06 -0500)]
double colon here was killing the build

10 years agoShould fix Beuc's bug with video thumbnail width... I think!
Christopher Allan Webber [Wed, 28 Aug 2013 14:15:16 +0000 (09:15 -0500)]
Should fix Beuc's bug with video thumbnail width... I think!

10 years ago0.5.0 release notes
Rodney Ewing [Tue, 27 Aug 2013 21:24:24 +0000 (14:24 -0700)]
0.5.0 release notes

10 years agoCommitting extracted and compiled translations
Christopher Allan Webber [Mon, 26 Aug 2013 22:39:53 +0000 (17:39 -0500)]
Committing extracted and compiled translations

10 years agoCommitting present MediaGoblin translations before pushing extracted messages
Christopher Allan Webber [Mon, 26 Aug 2013 22:38:50 +0000 (17:38 -0500)]
Committing present MediaGoblin translations before pushing extracted messages

10 years agoFixing another typo, thanks to Laura Arjona (again!)
Christopher Allan Webber [Mon, 26 Aug 2013 22:35:54 +0000 (17:35 -0500)]
Fixing another typo, thanks to Laura Arjona (again!)

10 years agoFixing typo. Thanks larjona!
Christopher Allan Webber [Mon, 26 Aug 2013 22:28:51 +0000 (17:28 -0500)]
Fixing typo.  Thanks larjona!

10 years agoSwitch docs back over to using old virtualenv setup while we resolve issue #755
Christopher Allan Webber [Mon, 26 Aug 2013 20:50:47 +0000 (15:50 -0500)]
Switch docs back over to using old virtualenv setup while we resolve issue #755

10 years agoCommitting extracted and compiled translations
Christopher Allan Webber [Mon, 26 Aug 2013 19:19:44 +0000 (14:19 -0500)]
Committing extracted and compiled translations

10 years agoCommitting present MediaGoblin translations before pushing extracted messages
Christopher Allan Webber [Mon, 26 Aug 2013 19:18:04 +0000 (14:18 -0500)]
Committing present MediaGoblin translations before pushing extracted messages

10 years agotransifex.net->transifex.com
Christopher Allan Webber [Mon, 26 Aug 2013 19:17:34 +0000 (14:17 -0500)]
transifex.net->transifex.com

10 years agoRemoving unnecessary "setup_plugin()" calls, as pointed out by Velmont.
Christopher Allan Webber [Sun, 25 Aug 2013 18:59:34 +0000 (13:59 -0500)]
Removing unnecessary "setup_plugin()" calls, as pointed out by Velmont.

10 years agoMerge remote-tracking branch 'refs/remotes/rodney757/email'
Christopher Allan Webber [Sun, 25 Aug 2013 18:23:27 +0000 (13:23 -0500)]
Merge remote-tracking branch 'refs/remotes/rodney757/email'

10 years agopushing so paroneayea can help me resolve a conflict within the tests.
tilly-Q [Fri, 23 Aug 2013 20:14:36 +0000 (16:14 -0400)]
pushing so paroneayea can help me resolve a conflict within the tests.

10 years agoNot sure why there wasn't a .commit() at the end of add_new_notification_tables()
Christopher Allan Webber [Thu, 22 Aug 2013 21:04:19 +0000 (16:04 -0500)]
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!

10 years agoMerge remote-tracking branch 'refs/remotes/rodney757/notifications'
Christopher Allan Webber [Wed, 21 Aug 2013 21:00:48 +0000 (16:00 -0500)]
Merge remote-tracking branch 'refs/remotes/rodney757/notifications'

10 years agoonly use the width for video thumbnails to keep the correct scaling
Rodney Ewing [Wed, 21 Aug 2013 19:38:12 +0000 (12:38 -0700)]
only use the width for video thumbnails to keep the correct scaling

10 years agoFixing migration name. webm not wemb :)
Christopher Allan Webber [Wed, 21 Aug 2013 19:19:11 +0000 (14:19 -0500)]
Fixing migration name.  webm not wemb :)

10 years agoMerge remote-tracking branch 'refs/remotes/rodney757/reprocessing'
Christopher Allan Webber [Wed, 21 Aug 2013 17:39:31 +0000 (12:39 -0500)]
Merge remote-tracking branch 'refs/remotes/rodney757/reprocessing'

Conflicts:
mediagoblin/processing/task.py
mediagoblin/submit/lib.py

10 years agoThis commit was just to fix a few of the errors with the merging and to
tilly-Q [Tue, 20 Aug 2013 19:11:02 +0000 (15:11 -0400)]
This commit was just to fix a few of the errors with the merging and to
make sure that all of the previous tests work fine.

10 years agorename webm_640 to webm_video since it might be a different resolution
Rodney Ewing [Tue, 20 Aug 2013 17:29:38 +0000 (10:29 -0700)]
rename webm_640 to webm_video since it might be a different resolution

10 years agoMerge branch 'master' into OPW-Moderation-Update
tilly-Q [Tue, 20 Aug 2013 16:21:13 +0000 (12:21 -0400)]
Merge branch 'master' into OPW-Moderation-Update

Conflicts:
mediagoblin/db/models.py
mediagoblin/decorators.py
mediagoblin/routing.py
mediagoblin/user_pages/views.py

10 years agoThis was a very small update, I'm hoping to rebase after this to solve some
tilly-Q [Tue, 20 Aug 2013 16:02:20 +0000 (12:02 -0400)]
This was a very small update, I'm hoping to rebase after this to solve some
other problems. I started looking at the tests in this update. This update I
spent fixing the tests to work with my new code.

--\ mediagoblin/db/migration_tools.py
--| Merging from ticket 679

--\ mediagoblin/db/migrations.py
--| Added unique constraint to Privilege.privilege_name

--\ mediagoblin/db/models.py
--| Deleted vestigial Privilege.is_admin_or_moderator method

--\ mediagoblin/templates/mediagoblin/moderation/user.html
--| Add a `Ban User` / `UnBan User` for admin

--\ mediagoblin/test/test_api.py
--| Fixed test with my new changes

--\ mediagoblin/test/test_auth.py
--| Try to fix test, still having problems

--\ mediagoblin/test/test_modelmethods.py
--| Wrote my first test for the User.has_privilege method

--\ mediagoblin/test/test_modelmethods.py
--| Fixed test with my new changes

--\ mediagoblin/test/test_sqlmigrations.py
--| Merging from ticket 679

--\ mediagoblin/test/tools.py
--| Editted add_fixture_user to allow for privileges rather than active column

10 years agomove links to the bottom of the page until we have a tabbed UI
Rodney Ewing [Fri, 12 Jul 2013 20:07:36 +0000 (13:07 -0700)]
move links to the bottom of the page until we have a tabbed UI

10 years agofix tests to use new change_email view
Rodney Ewing [Fri, 12 Jul 2013 19:34:35 +0000 (12:34 -0700)]
fix tests to use new change_email view

10 years agocheck for form.password in the off chance that a user is logged in and the server...
Rodney Ewing [Fri, 12 Jul 2013 19:27:41 +0000 (12:27 -0700)]
check for form.password in the off chance that a user is logged in and the server switches the authentication method from basic_auth to openid.

10 years agomaybe have change password and email on same page
Rodney Ewing [Thu, 11 Jul 2013 23:16:41 +0000 (16:16 -0700)]
maybe have change password and email on same page

10 years agorequest object no longer contains notification functions
Rodney Ewing [Tue, 20 Aug 2013 15:25:26 +0000 (08:25 -0700)]
request object no longer contains notification functions

10 years agoadd user prefrence for insite notifications
Rodney Ewing [Thu, 8 Aug 2013 22:07:07 +0000 (15:07 -0700)]
add user prefrence for insite notifications

10 years agouse urlgen and store it in a variable
Rodney Ewing [Thu, 8 Aug 2013 18:23:16 +0000 (11:23 -0700)]
use urlgen and store it in a variable

10 years agoadded test for mark all comment notifications seen
Rodney Ewing [Wed, 7 Aug 2013 22:21:08 +0000 (15:21 -0700)]
added test for mark all comment notifications seen

10 years agoPep 8
Rodney Ewing [Wed, 7 Aug 2013 19:50:59 +0000 (12:50 -0700)]
Pep 8

10 years agoadd the ability to mark all notifications read.
Rodney Ewing [Wed, 7 Aug 2013 19:44:43 +0000 (12:44 -0700)]
add the ability to mark all notifications read.

10 years agoOops, this accidently slipped in there
Rodney Ewing [Tue, 20 Aug 2013 14:52:12 +0000 (07:52 -0700)]
Oops, this accidently slipped in there

Revert "This patch checks for libs instead of programs in configure.ac for sqlite3 and postgesql."

This reverts commit 26da3271f6e6a880c0418998d5a4e5e71081e1f7.

10 years agouse href='javascript:;' instead of href='#notifications', etc
Rodney Ewing [Tue, 20 Aug 2013 14:18:48 +0000 (07:18 -0700)]
use href='javascript:;' instead of href='#notifications', etc

10 years agoThis patch checks for libs instead of programs in configure.ac for sqlite3 and postgesql.
Rodney Ewing [Tue, 20 Aug 2013 14:03:55 +0000 (07:03 -0700)]
This patch checks for libs instead of programs in configure.ac for sqlite3 and postgesql.

Patch submitted by amirouche

10 years ago- need self.metadata with BaseProcessingFail
Rodney Ewing [Mon, 19 Aug 2013 21:57:00 +0000 (14:57 -0700)]
- need self.metadata with BaseProcessingFail
- pass feed_url into ProcessMedia run()

10 years ago -update to latest master
Rodney Ewing [Mon, 19 Aug 2013 19:58:00 +0000 (12:58 -0700)]
 -update to latest master
- have mg generate task_id

remove

10 years agoRemove specific celery version requirement
Sebastian Spaeth [Thu, 20 Dec 2012 13:09:02 +0000 (14:09 +0100)]
Remove specific celery version requirement

Any celery above 2.5 should work just fine.

10 years agoSwitch deprecated BROKER_HOST to new BROKER_URL
Sebastian Spaeth [Thu, 20 Dec 2012 13:03:16 +0000 (14:03 +0100)]
Switch deprecated BROKER_HOST to new BROKER_URL

People will need to switch that setting in their mediagoblin.ini too.
Make sure we RELEASE NOTE this.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
10 years agoTweak Celery Task
Sebastian Spaeth [Thu, 20 Dec 2012 12:42:37 +0000 (13:42 +0100)]
Tweak Celery Task

- Make sure Exceptions are pickleable (not sure if this was not the
  case but this is the pattern as documented in the celery docs.
- Don't create a task_id in the GMG code, but save the one
  implicitely created by celery.
- Don't create a task-id directory per upload. Just store queued uploads
  in a single directory (this is the most controversial change and might
  need discussion!!!)

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
10 years ago-skip persona test is requests is not installed
Rodney Ewing [Mon, 19 Aug 2013 21:33:07 +0000 (14:33 -0700)]
-skip persona test is requests is not installed
- should use request.urlgen for location

10 years agomedia_confirm_delete: redirect to next, then prev, then user home
Alon Levy [Fri, 16 Aug 2013 08:23:22 +0000 (11:23 +0300)]
media_confirm_delete: redirect to next, then prev, then user home

Instead of redirecting directly to user's home. Makes the flow for mass or just
a few deletions easier. For really large deletions it would still make sense to
have a dedicated view, but this is still way better then losing context by
jumping back to the home view.

Signed-off-by: Alon Levy <alon@pobox.com>
10 years agomake sure size is a tuple
Rodney Ewing [Fri, 16 Aug 2013 22:08:21 +0000 (15:08 -0700)]
make sure size is a tuple

10 years agoKeep the best quality file if there's no original
Rodney Ewing [Thu, 15 Aug 2013 19:40:19 +0000 (12:40 -0700)]
Keep the best quality file if there's no original

10 years agofor some reason, the minimum thumbnail size for videos is 100 x 100
Rodney Ewing [Thu, 15 Aug 2013 16:29:11 +0000 (09:29 -0700)]
for some reason, the minimum thumbnail size for videos is 100 x 100

10 years agorefactor get_orig_filename to return an acceptable filename to the processor.
Rodney Ewing [Thu, 15 Aug 2013 15:54:09 +0000 (08:54 -0700)]
refactor get_orig_filename to return an acceptable filename to the processor.

If there is an original video file and we skip transcoding, delete the webm_640 file

10 years agomake medium dimensions a tuple
Rodney Ewing [Thu, 15 Aug 2013 15:11:29 +0000 (08:11 -0700)]
make medium dimensions a tuple

10 years agocheck medium_size arg in skip_transcoding, not config
Rodney Ewing [Thu, 15 Aug 2013 15:10:00 +0000 (08:10 -0700)]
check medium_size arg in skip_transcoding, not config

10 years agoonly try and delete queue file if it exists
Rodney Ewing [Wed, 14 Aug 2013 23:39:01 +0000 (16:39 -0700)]
only try and delete queue file if it exists

10 years agouse thumb_size
Rodney Ewing [Wed, 14 Aug 2013 23:30:52 +0000 (16:30 -0700)]
use thumb_size

10 years agoinclude a thumb_size string with each Resizer to run gmg reprocess thumbs
Rodney Ewing [Wed, 14 Aug 2013 23:25:44 +0000 (16:25 -0700)]
include a thumb_size string with each Resizer to run gmg reprocess thumbs

10 years agotypos
Rodney Ewing [Wed, 14 Aug 2013 23:07:27 +0000 (16:07 -0700)]
typos

10 years agoadd quality and filter args to image processors
Rodney Ewing [Wed, 14 Aug 2013 23:06:14 +0000 (16:06 -0700)]
add quality and filter args to image processors

10 years agoforgot to add the ascii resizer to the list of processors
Rodney Ewing [Wed, 14 Aug 2013 22:11:03 +0000 (15:11 -0700)]
forgot to add the ascii resizer to the list of processors

10 years agocatch processing exceptions and if entry_orig_state is processed, then ignore the...
Rodney Ewing [Wed, 14 Aug 2013 21:54:10 +0000 (14:54 -0700)]
catch processing exceptions and if entry_orig_state is processed, then ignore the exception