208 Commits

Author SHA1 Message Date
Christopher Allan Webber
55a10fef0a gmg reprocess available --action-help now tells you processor arguments!
Every reprocessing action possible can inform you of its command line
argument stuff!  Is that awesome or what?
2013-08-16 15:30:15 -07:00
Christopher Allan Webber
85ead8ac3c "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!
2013-08-16 15:30:15 -07:00
Christopher Allan Webber
58bacb33ac More progress towards the new reprocessing infrastructure: args updating
This commit sponsored by Elizabeth Webber.  Thanks, sis!
2013-08-16 15:30:15 -07:00
Rodney Ewing
c541fb71f7 fix storage paramater in get_orig_filename(), fix __init__ for ProceessImage, better description for --size flag 2013-08-16 15:30:15 -07:00
Rodney Ewing
7ac66a3dd0 Refactor processing/reprocessing functions into ProcessImage class 2013-08-16 15:30:15 -07:00
Rodney Ewing
3988c9d66d forgot to change to a class from a function after the refactor 2013-08-16 15:30:15 -07:00
Rodney Ewing
45b20dce1a change get_queued_filename to get_orig_filename and modified function 2013-08-16 15:30:14 -07:00
Rodney Ewing
3e9faf85da added comments and did a little refactoring. not sure if it is actually any clearer though 2013-08-16 15:30:14 -07:00
Rodney Ewing
49db778579 very rough working version of image reprocessing 2013-08-16 15:30:14 -07:00
Rodney Ewing
9a2c66ca9e added image reprocessing 2013-08-16 15:30:14 -07:00
Rodney Ewing
273c79513d added a check_eligible function to image reprocessing 2013-08-16 15:30:14 -07:00
Rodney Ewing
663b378b25 added a parser for the image media_type reprocessing 2013-08-16 15:30:14 -07:00
Rodney Ewing
e36b9f035f end of day commit 2013-08-16 15:30:14 -07:00
Rodney Ewing
2ed6afb048 Use the workbench for video processing.
Patch submitted by Kushal
2013-08-07 15:31:40 -07:00
Christopher Allan Webber
a1e299d60e Why isn't .ogg in this list? A comment explains... it's detected by sniffing!
This commit sponsored by Tom Marble.  Thanks Tom!
2013-07-29 16:50:51 -05:00
Christopher Allan Webber
6403bc928b 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! :)
2013-07-12 17:04:08 -05:00
Christopher Allan Webber
5305fee13b Merge branch 'rodney757-media_plugins'
Conflicts:
	mediagoblin.ini
	mediagoblin/tests/test_mgoblin_app.ini
2013-07-12 16:24:36 -05:00
Christopher Allan Webber
2ae78574b3 Merge branch 'release-0.4.1'
Conflicts:
	mediagoblin/_version.py
2013-07-10 17:40:57 -05:00
Christopher Allan Webber
2d7a6789be Fixing bug that effectively broke document support in 0.4.0.. how embarassing :(
This fix sponsored by Christophe Drevet.  Thank you!
2013-07-10 08:45:18 -05:00
Rodney Ewing
c81186dd2e added a warning for old media types 2013-07-02 09:26:12 -07:00
Rodney Ewing
cbac4a7fc9 converted video media_type to plugin 2013-07-02 09:00:57 -07:00
Rodney Ewing
239296b004 converted stl media_type to plugin 2013-07-02 09:00:57 -07:00
Rodney Ewing
51e4e43504 converted pdf media_type to plugin 2013-07-02 09:00:57 -07:00
Rodney Ewing
df68438a34 converted audio media_type to plugin 2013-07-02 09:00:57 -07:00
Rodney Ewing
b1a763f61e typo in image supported_filetypes 2013-07-02 09:00:57 -07:00
Rodney Ewing
2293081231 converted ascii media_type to plugin 2013-07-02 09:00:50 -07:00
Rodney Ewing
e699197258 fixed some typos and enabled media_type plugins in tests 2013-07-02 08:06:39 -07:00
Rodney Ewing
2d9a452c3a removed sniff_handler from Imange Media Manager class 2013-07-02 07:22:02 -07:00
Rodney Ewing
90b7b6e878 removed CompatMediaManager() since all core media_types are classes 2013-07-02 07:22:02 -07:00
Rodney Ewing
58a947578c modified gmg to use plugin media_types and converted image media_type to new plugin style 2013-07-02 07:21:44 -07:00
Joar Wandborg
2d7b6bdef9 New notifications
- Added request.notifications
- Email configuration fixes
  - Set config_spec default SMTP port to `0` and switch to SSL/non-SSL
    default if `port == 0`
  - Added email_smtp_use_ssl configuration setting
- Added migrations for notification tables
- Added __repr__ to MediaComment(Mixin)
- Added MediaComment.get_entry => MediaEntry
- Added CommentSubscription, CommentNotification, Notification,
  ProcessingNotification tables
- Added notifications.task to celery init
- Fixed a bug in the video transcoder where pygst would hijack the
  --help argument.
- Added notifications
  - views
    - silence
    - subscribe
  - routes
  - utility methods
  - celery task
- Added half-hearted .active comment CSS style
- Added quick JS to show header_dropdown
- Added fragment template to show notifications in header_dropdown
- Added fragment template to show subscribe/unsubscribe buttons on
  media/comment pages
- Updated celery setup tests with notifications.task
- Tried to fix test_misc tests that I broke
- Added notification tests
- Added and extended tests.tools fixtures
- Integrated new notifications into media_home, media_post_comment views
- Bumped SQLAlchemy dependency to >= 0.8.0 since we need polymorphic for
  the notifications to work
2013-06-09 21:18:37 +02:00
Christopher Allan Webber
33ddf4b1ef Moving the get_original_date method over to the MediaManager.
This fixes a bug so that it doesn't explode if the media_data doesn't
exist.

This commit sponsored by Ole-Morten Duesund.  Thank you!
2013-05-11 17:02:26 -05:00
Christopher Allan Webber
058226d0d2 Merge remote-tracking branch 'refs/remotes/tryggvib/532-exif-creation-date'
Conflicts:
	mediagoblin/config_spec.ini
	mediagoblin/templates/mediagoblin/user_pages/media.html
2013-05-11 13:48:42 -05:00
Elrond
d13cd99483 Fix typo in new stl MEDIA_MANAGER. 2013-05-02 23:38:07 +02:00
Elrond
7eec77ca90 Fix media manager reference in video.
An uninstantiated bare media manager doesn't any more
support ["something"]. You need to do .something.
Fixed for .source_type().
2013-04-30 23:44:56 +02:00
Praveen Kumar
761389507d Make all media types use the new MediaManager classes. 2013-04-30 22:09:25 +02:00
Elrond
8f88b1f6dc Rewrite resize_image to use proc_state.store_public.
This hopefully makes the code nicer and easier to change.
2013-04-27 17:25:39 +02:00
Elrond
3b359dddc7 image resizing: Refactor some decisions into resize_tool.
Loading the thumb/medium sizes from the config, saving
things to the db, and loading the image is now all done by
resize_tool. It still calls resize_image for the actual
work.
2013-04-27 17:19:50 +02:00
Elrond
c82a8ba54f resize_image: Change calling style a bit.
- entry: not used, removed.
- proc_state: going to be used, added.
- size_limits: not used, removed.
2013-04-24 15:20:32 +02:00
Elrond
dc1ec36eb9 resize_image: Refactor config loading a small bit.
Well, get the config into a local variable, for easier access.
2013-04-21 19:26:57 +02:00
dunkyp
35f6d6a750 image quality can be set in config file
(cherry-picked from
 https://gitorious.org/~dunkyp/mediagoblin/dunkyps-mediagoblin/commits/image_quality)
2013-04-20 10:54:13 -05:00
Elrond
4c7b9420ab stl:blender_render() - Remove useless arg_string. 2013-04-17 22:08:10 +02:00
Elrond
f84425c0c1 Turning image's media manager into a new style class.
images are the first media type to use the new style class
based media manager.
2013-04-17 12:09:30 +02:00
Elrond
95dab599da Add sniff_handler method to mediamanagers.
The MediaManagerBase gets a fallback "return False" one.
The Compat-Manager checks in the dict and calls that one or
returns False.
2013-04-17 12:09:30 +02:00
Elrond
6d37733a3f Add MediaManagerBase class.
This is the base class for all new style class based media
managers.
2013-04-17 12:08:53 +02:00
Elrond
e8676fa383 MediaManager: Use .foo instead of ['foo'].
To make .media_fetch_order work, create a property.
2013-04-17 12:08:53 +02:00
Elrond
2077d6ed93 First step towards a MediaManager class: Compat one.
To get us moving towards a MediaManager class, the first
idea is to create a class that wraps our current dict based
manager and makes all users happy.
2013-04-17 12:08:52 +02:00
Alon Levy
d0e9f843e2 PIL: Support systems with Pillow and without
Fixes for systems with Pillow, but leaves a "try: except ImportError" to
support anything that doesn't have a PIL top level import.

Signed-off-by: Alon Levy <alon@pobox.com>
2013-04-17 12:54:54 +03:00
Alon Levy
519bcfb0e6 pdf/processing.py: don't use check_output, only in python>=2.7
Signed-off-by: Alon Levy <alon@pobox.com>
2013-04-17 12:47:28 +03:00
Christopher Allan Webber
1d1276be79 Removing unused imports and an unused media_files dict reference 2013-04-15 15:31:22 -05:00