mediagoblin.git
12 years ago"initial" reprocessing subcommand now works!
Christopher Allan Webber [Fri, 9 Aug 2013 17:13:53 +0000 (12:13 -0500)]
"initial" reprocessing subcommand now works!

We are on our way now to a working reprocessing system under this
redesign!

This commit sponsored by Bjarni Rúnar Einarsson.  Thank you!

12 years agoMore progress towards the new reprocessing infrastructure: args updating
Christopher Allan Webber [Fri, 9 Aug 2013 16:20:21 +0000 (11:20 -0500)]
More progress towards the new reprocessing infrastructure: args updating

This commit sponsored by Elizabeth Webber.  Thanks, sis!

12 years agoMore steps towards a working reprocessing system.
Christopher Allan Webber [Thu, 8 Aug 2013 18:53:28 +0000 (13:53 -0500)]
More steps towards a working reprocessing system.

Fleshing out the base classes and setting up some docstrings.  Not
everything is totally clear yet, but I think it's on a good track, and
getting clearer.

This commit sponsored by Ben Finney, on behalf of Free Software Melbourne.
Thank you all!

12 years agoDocumentation for the MediaProcessor
Christopher Allan Webber [Wed, 7 Aug 2013 22:07:19 +0000 (17:07 -0500)]
Documentation for the MediaProcessor

12 years agostarted coding basics of new processing code
Christopher Allan Webber [Wed, 7 Aug 2013 20:01:46 +0000 (15:01 -0500)]
started coding basics of new processing code

12 years agofix storage paramater in get_orig_filename(), fix __init__ for ProceessImage, better...
Rodney Ewing [Tue, 6 Aug 2013 17:48:26 +0000 (10:48 -0700)]
fix storage paramater in get_orig_filename(), fix __init__ for ProceessImage, better description for --size flag

12 years agoRefactor processing/reprocessing functions into ProcessImage class
Rodney Ewing [Tue, 6 Aug 2013 16:47:09 +0000 (09:47 -0700)]
Refactor processing/reprocessing functions into ProcessImage class

12 years agoforgot to change to a class from a function after the refactor
Rodney Ewing [Tue, 6 Aug 2013 16:17:37 +0000 (09:17 -0700)]
forgot to change to a class from a function after the refactor

12 years agochange get_queued_filename to get_orig_filename and modified function
Rodney Ewing [Fri, 2 Aug 2013 22:20:59 +0000 (15:20 -0700)]
change get_queued_filename to get_orig_filename and modified function

12 years agoadded comments and did a little refactoring. not sure if it is actually any clearer...
Rodney Ewing [Fri, 2 Aug 2013 22:12:07 +0000 (15:12 -0700)]
added comments and did a little refactoring. not sure if it is actually any clearer though

12 years agovery rough working version of image reprocessing
Rodney Ewing [Fri, 2 Aug 2013 20:18:35 +0000 (13:18 -0700)]
very rough working version of image reprocessing

12 years agoadd option to not run eagerly
Rodney Ewing [Fri, 2 Aug 2013 19:06:50 +0000 (12:06 -0700)]
add option to not run eagerly

12 years agoadded image reprocessing
Rodney Ewing [Fri, 2 Aug 2013 18:40:41 +0000 (11:40 -0700)]
added image reprocessing

12 years agoadded a check_eligible function to image reprocessing
Rodney Ewing [Fri, 2 Aug 2013 15:02:14 +0000 (08:02 -0700)]
added a check_eligible function to image reprocessing

12 years agoadded a parser for the image media_type reprocessing
Rodney Ewing [Fri, 2 Aug 2013 14:44:03 +0000 (07:44 -0700)]
added a parser for the image media_type reprocessing

12 years agoend of day commit
Rodney Ewing [Thu, 1 Aug 2013 22:58:57 +0000 (15:58 -0700)]
end of day commit

12 years agopep 8
Rodney Ewing [Thu, 1 Aug 2013 22:58:25 +0000 (15:58 -0700)]
pep 8

12 years agoadd command option for regenerating all thumbnails
Rodney Ewing [Thu, 1 Aug 2013 22:55:39 +0000 (15:55 -0700)]
add command option for regenerating all thumbnails

12 years agomake media_id an optional argument
Rodney Ewing [Thu, 1 Aug 2013 22:40:26 +0000 (15:40 -0700)]
make media_id an optional argument

12 years agorefactored _run_reprocessing
Rodney Ewing [Thu, 1 Aug 2013 22:24:34 +0000 (15:24 -0700)]
refactored _run_reprocessing

12 years agoadded a set_media_state function. removed the --all flag (just don't enter any media_...
Rodney Ewing [Thu, 1 Aug 2013 21:47:24 +0000 (14:47 -0700)]
added a set_media_state function. removed the --all flag (just don't enter any media_ids to process all media). slight refactor

12 years agoPep 8
Rodney Ewing [Thu, 1 Aug 2013 20:53:20 +0000 (13:53 -0700)]
Pep 8

12 years agoJust raise standard exception. Pass print statement to gettext
Rodney Ewing [Thu, 1 Aug 2013 20:51:36 +0000 (13:51 -0700)]
Just raise standard exception. Pass print statement to gettext

12 years agoadded a _run_reprocessing function which handles the hook calls
Rodney Ewing [Thu, 1 Aug 2013 20:47:44 +0000 (13:47 -0700)]
added a _run_reprocessing function which handles the hook calls

12 years agoadd reprocess_all function. still need to add code to reprocess all failed entries
Rodney Ewing [Thu, 1 Aug 2013 20:23:40 +0000 (13:23 -0700)]
add reprocess_all function. still need to add code to reprocess all failed entries

12 years agoAdded a set_media_type function that has checks to only reprocess one media_type...
Rodney Ewing [Thu, 1 Aug 2013 19:35:49 +0000 (12:35 -0700)]
Added a set_media_type function that has checks to only reprocess one media_type at a time

12 years agoBeginnings of a reprocess command
Rodney Ewing [Thu, 1 Aug 2013 19:32:49 +0000 (12:32 -0700)]
Beginnings of a reprocess command

12 years agoThrow an error if there are unrecognized arguments
Rodney Ewing [Thu, 1 Aug 2013 18:11:04 +0000 (11:11 -0700)]
Throw an error if there are unrecognized arguments

12 years agouse parser.parse_known_args() instead of parser.parse_args()
Rodney Ewing [Thu, 1 Aug 2013 17:23:37 +0000 (10:23 -0700)]
use parser.parse_known_args() instead of parser.parse_args()

12 years agoload js at the end of the page
Rodney Ewing [Fri, 16 Aug 2013 18:49:33 +0000 (11:49 -0700)]
load js at the end of the page

12 years agouse urlgen
Rodney Ewing [Fri, 16 Aug 2013 18:48:03 +0000 (11:48 -0700)]
use urlgen

12 years agoMerge branch 'auth_docs'
Rodney Ewing [Fri, 16 Aug 2013 17:24:41 +0000 (10:24 -0700)]
Merge branch 'auth_docs'

Conflicts:
docs/source/index.rst

12 years agofix persona tests by using a correct query
Rodney Ewing [Fri, 16 Aug 2013 00:36:56 +0000 (17:36 -0700)]
fix persona tests by using a correct query

12 years agoRemoving PyPump as we aren't using it yet and there's a dependency conflict ;|
Christopher Allan Webber [Thu, 15 Aug 2013 23:29:35 +0000 (18:29 -0500)]
Removing PyPump as we aren't using it yet and there's a dependency conflict ;|

12 years agoMerge branch 'persona_resquash'
Christopher Allan Webber [Thu, 15 Aug 2013 22:07:14 +0000 (17:07 -0500)]
Merge branch 'persona_resquash'

12 years agoRemoving the whitespace betwetween action= and its value
Christopher Allan Webber [Thu, 15 Aug 2013 20:17:02 +0000 (15:17 -0500)]
Removing the whitespace betwetween action= and its value

12 years agoMerge remote-tracking branch 'refs/remotes/tsyesika/master'
Christopher Allan Webber [Thu, 15 Aug 2013 15:34:20 +0000 (10:34 -0500)]
Merge remote-tracking branch 'refs/remotes/tsyesika/master'

New oauth tools!  Heck yeah!

12 years agoFix notifications, which I broke.
Christopher Allan Webber [Wed, 14 Aug 2013 20:57:58 +0000 (15:57 -0500)]
Fix notifications, which I broke.

This commit sponsored by Denver Gingerich.  Thank you!

12 years agoAvoiding the celery warnings that we seem to be confusing people lately.
Christopher Allan Webber [Wed, 14 Aug 2013 20:08:49 +0000 (15:08 -0500)]
Avoiding the celery warnings that we seem to be confusing people lately.

Basically, it's shuffling around the notifications stuff.

This commit sponsored by Günter Kraft.  Thank you!

12 years agoFix import errors when running tests
Jessica Tallon [Tue, 13 Aug 2013 09:45:09 +0000 (10:45 +0100)]
Fix import errors when running tests

12 years agochange dropdown button to <a> from <div> so that it is tabbable
Rodney Ewing [Fri, 9 Aug 2013 18:38:55 +0000 (11:38 -0700)]
change dropdown button to <a> from <div> so that it is tabbable

12 years agoRevert "slugs are now generated during processing"
Rodney Ewing [Thu, 8 Aug 2013 22:49:51 +0000 (15:49 -0700)]
Revert "slugs are now generated during processing"

This reverts commit 9da4e8049f2de900f7aa12f2fed8c60d6749ff0b.

12 years agoRevert "Leave slug empty until we are sure media processing was successful."
Rodney Ewing [Thu, 8 Aug 2013 22:49:33 +0000 (15:49 -0700)]
Revert "Leave slug empty until we are sure media processing was successful."

This reverts commit f67611fb485b5a84cedc62b73beb1e551e8cb934.

For some reason, generating a slug here throws an integrity error during
a query when there is a duplicate slug.

12 years agoSwitching the MediaGoblin homepage image over to using the "official" gavroche style
Christopher Allan Webber [Thu, 8 Aug 2013 19:15:23 +0000 (14:15 -0500)]
Switching the MediaGoblin homepage image over to using the "official" gavroche style

12 years agoAdd ?next= when trying to add a comment when not logged in
Rodney Ewing [Thu, 8 Aug 2013 18:07:12 +0000 (11:07 -0700)]
Add ?next= when trying to add a comment when not logged in

12 years agoRender 404 if not ajax request
Rodney Ewing [Thu, 8 Aug 2013 00:13:38 +0000 (17:13 -0700)]
Render 404 if not ajax request

12 years agochange interval to 1000ms
Rodney Ewing [Wed, 7 Aug 2013 23:58:06 +0000 (16:58 -0700)]
change interval to 1000ms

12 years agoChanged how the comment was encoded/read.
Emily O'Leary [Tue, 6 Aug 2013 22:22:51 +0000 (18:22 -0400)]
Changed how the comment was encoded/read.
Fixed CSRF + Post with comment preview.
Merged with latest master

12 years agoChanged the target of the markdown links for opening in a new tab as suggested by...
Emily O'Leary [Mon, 25 Mar 2013 18:13:09 +0000 (14:13 -0400)]
Changed the target of the markdown links for opening in a new tab as suggested by joar.

12 years agoAdded i18n to my javascript changes as per trac #417
Emily O'Leary [Mon, 25 Mar 2013 02:16:12 +0000 (22:16 -0400)]
Added i18n to my javascript changes as per trac #417

12 years agoAdded comment preview functionality to user pages. It works by passing the comment...
Emily O'Leary [Mon, 25 Mar 2013 01:42:42 +0000 (21:42 -0400)]
Added comment preview functionality to user pages. It works by passing the comment's value as a JSON string to a new handler that lives at /ajax/comment/preview. The query string is decoded, unquoted, and has its leading and trailing quotes removed to match the input that cleaned_markdown_conversion expects.

It does this in real time with a 500ms lag by using a timer. Initially I tried the onChange handler but you need to lose focus for that to process. The javascript timer is only invoked if the add comment button is pressed. A request is only sent if the comment box is not empty and the current value is not the same as the last value.

12 years agoslugs are now generated during processing
Rodney Ewing [Wed, 7 Aug 2013 23:19:57 +0000 (16:19 -0700)]
slugs are now generated during processing

12 years agoLeave slug empty until we are sure media processing was successful.
Rodney Ewing [Wed, 7 Aug 2013 23:15:27 +0000 (16:15 -0700)]
Leave slug empty until we are sure media processing was successful.

Patch submitted by LotusEcho

12 years ago * create config option for optional jinja2 extensions
Kenneth Dombrowski [Sat, 11 May 2013 21:30:43 +0000 (17:30 -0400)]
 * create config option for optional jinja2 extensions
 * add comments & clarify code for jinja2 extensions

Conflicts:
mediagoblin/config_spec.ini

12 years agoUse the workbench for video processing.
Rodney Ewing [Wed, 7 Aug 2013 22:31:40 +0000 (15:31 -0700)]
Use the workbench for video processing.
Patch submitted by Kushal

12 years agoautoplay is now by default False for videos.
Christopher Allan Webber [Wed, 7 Aug 2013 20:03:37 +0000 (15:03 -0500)]
autoplay is now by default False for videos.

This commit sponsored by Vasili Sviridov.  Thank you!

12 years agoMerge branch 'merge-pyconfigure'
Christopher Allan Webber [Wed, 7 Aug 2013 16:57:12 +0000 (11:57 -0500)]
Merge branch 'merge-pyconfigure'

Conflicts:
docs/source/siteadmin/deploying.rst

12 years agotypo fix in foundations branch
Rodney Ewing [Fri, 2 Aug 2013 14:31:09 +0000 (07:31 -0700)]
typo fix in foundations branch

12 years agoMerge remote-tracking branch 'tilly-q/ticket-679'
Rodney Ewing [Fri, 2 Aug 2013 14:28:35 +0000 (07:28 -0700)]
Merge remote-tracking branch 'tilly-q/ticket-679'

12 years agoI added a few more unitests in this commit. It now confirms that even after mi-
tilly-Q [Thu, 1 Aug 2013 00:50:38 +0000 (20:50 -0400)]
I added a few more unitests in this commit. It now confirms that even after mi-
-gration, there is only one of each Foundation object.

12 years agoMerge branch 'ticket-679' of gitorious.org:~npigeon/mediagoblin/npigeons-mediagoblin
tilly-Q [Thu, 1 Aug 2013 00:49:07 +0000 (20:49 -0400)]
Merge branch 'ticket-679' of gitorious.org:~npigeon/mediagoblin/npigeons-mediagoblin

12 years agoIn this commit I added a few unittests to account for Foundations. There were
tilly-Q [Tue, 30 Jul 2013 23:42:26 +0000 (19:42 -0400)]
In this commit I added a few unittests to account for Foundations. There were
only a few tests I had to add to mediagoblin/tests/test_sql_migrations.py beca-
-use the foundation creation only happens at database initialization.

12 years agoMerge commit 'refs/merge-requests/55' of git://gitorious.org/mediagoblin/mediagoblin...
Rodney Ewing [Wed, 31 Jul 2013 22:27:22 +0000 (15:27 -0700)]
Merge commit 'refs/merge-requests/55' of git://gitorious.org/mediagoblin/mediagoblin into 55

Conflicts:
docs/source/siteadmin/relnotes.rst

12 years agominor styling updates to docs
Rodney Ewing [Wed, 31 Jul 2013 22:16:52 +0000 (15:16 -0700)]
minor styling updates to docs

12 years agoMerge commit 'refs/merge-requests/59' of git://gitorious.org/mediagoblin/mediagoblin...
Rodney Ewing [Wed, 31 Jul 2013 22:07:44 +0000 (15:07 -0700)]
Merge commit 'refs/merge-requests/59' of git://gitorious.org/mediagoblin/mediagoblin into merge-requests/59

12 years agoStarting to write unit tests...
tilly-Q [Tue, 30 Jul 2013 23:06:26 +0000 (19:06 -0400)]
Starting to write unit tests...

12 years agoWhy isn't .ogg in this list? A comment explains... it's detected by sniffing!
Christopher Allan Webber [Mon, 29 Jul 2013 21:50:29 +0000 (16:50 -0500)]
Why isn't .ogg in this list?  A comment explains... it's detected by sniffing!

This commit sponsored by Tom Marble.  Thanks Tom!

12 years agoI actually had to do a bit more work than I thought, because I needed to account
tilly-Q [Mon, 29 Jul 2013 21:15:29 +0000 (17:15 -0400)]
I actually had to do a bit more work than I thought, because I needed to account
for plugins. In this commit I changed the MigrationManager and DatabaseData ob-
jects to account for FOUNDATIONS in any plugin's (or main program's) models.py
file.

12 years agoThis was a very simple ticket actually. I created a list called FOUNDATIONS in
tilly-Q [Mon, 29 Jul 2013 20:36:06 +0000 (16:36 -0400)]
This was a very simple ticket actually. I created a list called FOUNDATIONS in
mediagoblin/db/models.py. This list holds all of the information about rows that
should be created at database initialization. Read the documentation near the
FOUNDATIONS list to understand the proper format for this list.

All of the work is done through a new method on MigrationManager in
mediagoblin/db/migrations_tools.py. This method, `populate_table_foundations`
parses the FOUNDATIONS list and creates the foundations based on the data incl-
uded. This only ever happens when the database is initialized. Migrations to
releases with new Foundations should be very easy just using the basic
database functionality.

12 years agobabel 1.0 doesn't have a localedata.list() method, so updated setup.py.
Rodney Ewing [Mon, 29 Jul 2013 18:25:34 +0000 (11:25 -0700)]
babel 1.0 doesn't have a localedata.list() method, so updated setup.py.

made "import crypto" fully qualified

12 years agoFix problem causing exception when invalid Authentication header provided
xray7224 [Mon, 29 Jul 2013 16:48:53 +0000 (17:48 +0100)]
Fix problem causing exception when invalid Authentication header provided

12 years agoFix problem with routing to oauth
xray7224 [Mon, 29 Jul 2013 16:28:50 +0000 (17:28 +0100)]
Fix problem with routing to oauth

12 years agoFixes problem with headers pointing to old federation dir
xray7224 [Mon, 29 Jul 2013 16:25:10 +0000 (17:25 +0100)]
Fixes problem with headers pointing to old federation dir

12 years agoSet up in-package virtualenv via make
Christopher Allan Webber [Thu, 25 Jul 2013 20:15:49 +0000 (15:15 -0500)]
Set up in-package virtualenv via make

12 years agoRemoving aclocal.m4, which is autogenerated
Christopher Allan Webber [Thu, 25 Jul 2013 19:56:08 +0000 (14:56 -0500)]
Removing aclocal.m4, which is autogenerated

12 years agoAdding .gitignore for pyconfigure/automake generated files
Christopher Allan Webber [Thu, 25 Jul 2013 19:53:18 +0000 (14:53 -0500)]
Adding .gitignore for pyconfigure/automake generated files

12 years agoMoving setup.py.in back to setup.py
Christopher Allan Webber [Thu, 25 Jul 2013 19:34:48 +0000 (14:34 -0500)]
Moving setup.py.in back to setup.py

12 years agoMerge remote-tracking branch 'refs/remotes/brandoninvergo/pyconfigure' into merge...
Christopher Allan Webber [Thu, 25 Jul 2013 19:29:30 +0000 (14:29 -0500)]
Merge remote-tracking branch 'refs/remotes/brandoninvergo/pyconfigure' into merge-pyconfigure

12 years agoMore up to date README
Christopher Allan Webber [Thu, 25 Jul 2013 19:05:50 +0000 (14:05 -0500)]
More up to date README

12 years agoMove the "cd mediagoblin" to the right line. Thanks usrnix!
Christopher Allan Webber [Wed, 24 Jul 2013 01:24:30 +0000 (20:24 -0500)]
Move the "cd mediagoblin" to the right line.  Thanks usrnix!

This commit sponsored by Kenneth Dombrowski.  Thanks!

12 years agoRenames OAuth1 code to federation
xray7224 [Mon, 22 Jul 2013 16:06:00 +0000 (17:06 +0100)]
Renames OAuth1 code to federation

12 years agoRefactor WTFormData
xray7224 [Mon, 22 Jul 2013 15:56:22 +0000 (16:56 +0100)]
Refactor WTFormData

12 years agoFix problem with migration - OAuth
Jessica Tallon [Mon, 22 Jul 2013 16:17:01 +0000 (17:17 +0100)]
Fix problem with migration - OAuth

12 years agoFixes some typo's and removes unused imports
Jessica Tallon [Sat, 20 Jul 2013 18:08:02 +0000 (19:08 +0100)]
Fixes some typo's and removes unused imports

12 years agoMoves first versions of the the models to migrations
xray7224 [Thu, 18 Jul 2013 19:39:15 +0000 (20:39 +0100)]
Moves first versions of the the models to migrations

12 years agoAdds migration for OAuth1 tables
xray7224 [Thu, 18 Jul 2013 19:21:35 +0000 (20:21 +0100)]
Adds migration for OAuth1 tables

12 years agoAdds test for request_tokens
xray7224 [Thu, 18 Jul 2013 18:15:05 +0000 (19:15 +0100)]
Adds test for request_tokens

12 years agoAdds some tests for the OAuth and some docs
xray7224 [Tue, 16 Jul 2013 18:19:49 +0000 (19:19 +0100)]
Adds some tests for the OAuth and some docs

12 years agoFixing docs: git submodule update, not git submodule fetch!
Christopher Allan Webber [Mon, 15 Jul 2013 02:05:01 +0000 (21:05 -0500)]
Fixing docs: git submodule update, not git submodule fetch!

This commit sponsored by Charles Combs.  Thank you!

12 years agoFixes tests
xray7224 [Sun, 14 Jul 2013 18:00:52 +0000 (19:00 +0100)]
Fixes tests

12 years agoMerge branch 'master' of git://gitorious.org/mediagoblin/mediagoblin
xray7224 [Sun, 14 Jul 2013 16:31:03 +0000 (17:31 +0100)]
Merge branch 'master' of git://gitorious.org/mediagoblin/mediagoblin

12 years agoSkip the openid tests if the openid module is not installed.
Christopher Allan Webber [Sun, 14 Jul 2013 16:23:52 +0000 (11:23 -0500)]
Skip the openid tests if the openid module is not installed.

This commit sponsored by Brandon Smith.  Thank you!

12 years agoUsing nonce now, preventing OAuth replay attacks
xray7224 [Sun, 14 Jul 2013 15:24:04 +0000 (16:24 +0100)]
Using nonce now, preventing OAuth replay attacks

12 years agoMerge branch 'master' of git://gitorious.org/mediagoblin/mediagoblin
xray7224 [Sun, 14 Jul 2013 14:27:52 +0000 (15:27 +0100)]
Merge branch 'master' of git://gitorious.org/mediagoblin/mediagoblin

12 years agoDocumenting the media_manager fetching hook
Christopher Allan Webber [Fri, 12 Jul 2013 22:13:48 +0000 (17:13 -0500)]
Documenting the media_manager fetching hook

This commit sponsored by Christian Corrodi.  Thank you!

12 years agoSwitching the hook 'get_media_manager' to a more "directed" tuple-hook
Christopher Allan Webber [Fri, 12 Jul 2013 22:04:08 +0000 (17:04 -0500)]
Switching the hook 'get_media_manager' to a more "directed" tuple-hook

By switching this to a tuple that includes the media type in the key
itself, this requires iteration and execution of functions that
"check" that they are the right type.

This commit sponsored by Greg Grossmeier.  Thanks buddy! :)

12 years agodocumenting the new media_type plugins and available hooks
Rodney Ewing [Fri, 12 Jul 2013 18:57:16 +0000 (11:57 -0700)]
documenting the new media_type plugins and available hooks

12 years agoMerge branch 'rodney757-media_plugins'
Christopher Allan Webber [Fri, 12 Jul 2013 21:24:36 +0000 (16:24 -0500)]
Merge branch 'rodney757-media_plugins'

Conflicts:
mediagoblin.ini
mediagoblin/tests/test_mgoblin_app.ini

12 years agoFix the last bit preventing all the unit tests from passing in media types->plugins
Christopher Allan Webber [Fri, 12 Jul 2013 20:52:20 +0000 (15:52 -0500)]
Fix the last bit preventing all the unit tests from passing in media types->plugins

The last commit was also small, so Jeff Moe gets... two!  Two sponsored commits!
Ah ah ah. </count_voice>

12 years agoSwitch the import of the image media manager over to the new class
Christopher Allan Webber [Fri, 12 Jul 2013 19:53:10 +0000 (14:53 -0500)]
Switch the import of the image media manager over to the new class

This helps resolve one of the remaining issues with the tests for the
media type pluginification.

This commit sponsored by Jeffrey Moe.  Thanks Jeff!  Lulzbot rocks!