| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
| |
* implements installing, loading and setup for plugins
* codifies configuration
* has a sample plugin
* docs
* tests
|
|
|
|
|
| |
Use mediagoblin_local.ini as default conf file if it exists, else use
mediagoblin.ini, just like everything else.
|
|
|
|
|
|
| |
- Changed config files of test configs to use SQL
- Updated celery initialization tools, factored them to be able to
use the "big instance" application stuff
|
|
|
|
| |
So that celeryd also loads the task.
|
|
|
|
|
|
|
|
|
|
|
|
| |
So all models are ready when connecting to the db and so
our "db" object has all models listed on it, create a
function to load all models from the media_types, etc. Call
it in setup_database()
Problem: This gives celery warnings, because celery is
imported before being setup properly. No idea how to fix
this now. So media-type loading is excluded from
load_models for now.
|
|
|
|
| |
upper correctly
|
|
|
|
| |
when initialising the config as per issue #214
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
When initializing the database connection the current mongo
based setup checked for new migrations and warned about
them. This was mongo specific so factor'd it out into a
more generic check_db_migrations_current function in the
mongo backend.
Also created a dummy one in the sql backend.
|
|
|
|
| |
And change references.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Removed debug output from init/celery
- Moved process_media/__init__ to processing.py
- Centralized the processing.ProcessMedia task class
- Updated media managers to reference the processing function
instead of the ProcessMedia instance
- Updated new-style image processing to previous, newer old-style
image processing
- Updated video transcoding
- Changed method in progress output, sometimes
message.structure['percent'] raises KeyError
|
|\
| |
| |
| |
| |
| | |
Conflicts:
mediagoblin/db/migrations.py
mediagoblin/submit/views.py
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* DONE Initially testing with arista
** DONE Video display templates
*** TODO Multi-browser support
** TODO Video thumbnails
** TODO Link to original video
** TODO Video cropping
Also contains a lot of "debug" print's
|
| | |
|
|/
|
|
|
|
|
| |
* Removed trailing whitespace
* Line length < 80 where possible
* Honor conventions on number of blank lines
* Honor conventions about spaces around :, =
|
|\ |
|
| | |
|
|/ |
|
|
|
|
|
| |
Chris Webber says not to care about backward compatibility
at this stage. So drop the last bits.
|
|
|
|
|
| |
Chris Webber says "no backward compatibility for this".
So start removing the backward compat stuff.
|
|
|
|
|
|
|
|
|
|
| |
Instead of configuring storage X by parameters in the main
section "X_class = backend" and "X_param = value", use a
new section in the config: "[storage:X]" and use "class =
backend" and "param = value" there.
This is the beginning, it includes a try at being backward
compatible. But that try isn't really fully useful anyway.
|
| |
|
|
|
|
|
|
|
| |
Factoring out this one should be the last one needed to
rewrite the celery setup. The idea is to not setup the
whole app, but just call a bunch of individual setup_*
functions and be done.
|
|
|
|
|
|
| |
Setting up the database now involves checking the
migrations status and setting up the globals.
Moved all of that into init/__init__.py:setup_database().
|
|
|
|
|
|
|
| |
The default name of the database ("mediagoblin") was coded
in db/open.py and init/celery/__init__.py.
Instead use the new config system to have this as the
default for the "db_name" config option.
|
| |
|
|
|
|
|
|
| |
Let setup_global_and_app_config set the global and app
config in the mg_globals already. This way, the config is
available to everyone very early.
|
|
|
|
|
|
|
| |
Moving the config reading and error reporting from app.py
to init/__init__.py. Straight forward.
This also fixes the duplicated exceptions.
|
|
|
|
|
| |
This duplicates some exceptions, which will be fixed very
soon.
|
|
|
|
|
|
|
| |
Some simple changes needed to do that.
The interesting question left:
Should config_spec.ini also be moved?
|
| |
|
|
|
|
|
|
| |
As the first target of the new .init. submodule move
celery_setup there. Quite straight forward, just a lot of
places to change.
|
|
|