aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin
Commit message (Collapse)AuthorAgeFilesLines
* Converting the path to subtitle into a tuplesaksham11152016-07-193-1/+14
|
* Removing commented codesaksham11152016-07-191-2/+0
|
* Cleaning upsaksham11152016-07-194-37/+44
|
* Customizing Subs using Wtformssaksham11152016-07-195-3/+63
|
* Working for firefoxsaksham11152016-07-191-6/+9
|
* Loading subtitle files [Not working]saksham11152016-07-192-3/+37
|
* Path decoded and sent to html pagesaksham11152016-07-191-1/+9
|
* Made decorators views for Customize Interfacesaksham11152016-07-193-3/+35
|
* Customize Interface in progresssaksham11152016-07-193-2/+14
|
* Starting Customize Interfacesaksham11152016-07-191-0/+16
|
* Minor Changesaksham11152016-07-192-4/+4
|
* Subtitle built over attachments : workingsaksham11152016-07-199-5/+203
|
* Subtitle interface using attachmentssaksham11152016-07-192-1/+5
|
* Lightbox effect for imagessaksham11152016-07-193-1/+96
|
* Revert "Import messages in blog views"saksham11152016-07-191-1/+1
| | | | This reverts commit 41302ad2b622b340caeb13339338ab3a5d0f7e6b.
* Import messages in blog viewsAndrew Browning2016-04-031-1/+1
|
* Fix #5451 - add_message inconsistenciesAndrew Browning2016-04-027-83/+147
| | | | | Reformat add_message function calls for consistency and PEP8 line continuations.
* Replace raw_input with six.moves.inputBerker Peksag2016-04-021-1/+3
| | | | Fixes #5441
* Fix the blog_delete page for admins.宋文武2016-04-021-1/+1
| | | | * mediagoblin/media_types/blog/views.py: Import WARNING from mediagoblin.messages.
* tests: Fix migration tests; foundations are now installed separatelyChristopher Allan Webber2016-03-291-29/+9
| | | | | | | * mediagoblin/tests/test_sql_migrations.py: Import migration.changeset even in python 3. (FOUNDATIONS): Removed. (test_set1_to_set3): Removed foundations checks.
* tests: importorskip migration tests on "migrate" rather than on Python 3Christopher Allan Webber2016-03-291-1/+1
| | | | | | | | | Previously we assumed we wouldn't run migration tests if we're on Python 3, but now that we support sqlalchemy-migrate with Python 3, switch to checking based on "migrate" importability. * mediagoblin/tests/test_sql_migrations.py: Update test skipping to rely on "migrate" module presence rather than Python 3 check.
* Now on MediaGoblin 1.0 development cycle!Christopher Allan Webber2016-03-291-1/+1
| | | | | * configure.ac (AC_INIT): * mediagoblin/_version.py (__version__): Update version to 1.0.dev.
* Committing extracted and compiled translationsChristopher Allan Webber2016-03-295-890/+1038
|
* On MediaGoblin 0.9.0!Christopher Allan Webber2016-03-291-1/+1
| | | | | * configure.ac (AC_INIT): * mediagoblin/_version.py (__version__): Update to 0.9.0.
* migrations: Only don't import "migrate" if it's not availableChristopher Allan Webber2016-03-291-1/+9
| | | | | * mediagoblin/db/migrations.py: Import migrate if available; if not print a warning.
* dbupdate: Correctly handle plugin foundationsChristopher Allan Webber2016-03-261-1/+1
| | | | | | | * mediagoblin/gmg_commands/dbupdate.py (run_foundations): When adding a plugin's foundations, correctly append both the name and the foundations in a tuple to the list. This prevents errors.
* Add comment questioning why run_dbupdate is needed in get_app test utilityChristopher Allan Webber2016-03-261-0/+2
| | | | * mediagoblin/tests/tools.py (get_app): Add comment
* Fix tests post-alembic-migration-changes.Christopher Allan Webber2016-03-261-3/+9
| | | | | * mediagoblin/init/__init__.py (setup_database): Update to run alembic migrations, skip the old legacy migrations.
* Only run archivalook migration if the tables aren't there.Christopher Allan Webber2016-03-261-0/+5
| | | | | | | | Standard for anything existing before the Alembic move-over, but I forgot this one. * mediagoblin/plugins/archivalook/migrations/b10b5f822789_archivalook_plugin_initial_migration.py (upgrade): Add has_table check, skip if such a table already exists.
* Archivalook plugin initial migration.Christopher Allan Webber2016-03-261-0/+32
| | | | | * mediagoblin/plugins/archivalook/migrations/b10b5f822789_archivalook_plugin_initial_migration.py: New file.
* OpenID plugin initial migration.Christopher Allan Webber2016-03-261-0/+54
| | | | | * mediagoblin/plugins/openid/migrations/071abb33d1da_openid_plugin_initial_migration.py: New file.
* Persona plugin initial migration.Christopher Allan Webber2016-03-261-0/+35
| | | | | * mediagoblin/plugins/persona/migrations/c7d4840a5592_persona_plugin_initial_migration.py: New file.
* Blog media type initial migration.Christopher Allan Webber2016-03-261-0/+59
| | | | | * mediagoblin/media_types/blog/migrations/562bc42a8fff_blog_media_type_initial_migration.py: New file.
* PDF media type initial migration.Christopher Allan Webber2016-03-261-0/+46
| | | | | * mediagoblin/media_types/pdf/migrations/faa209f143b5_pdf_media_type_initial_migration.py: New file.
* STL media type initial migration.Christopher Allan Webber2016-03-261-0/+40
| | | | | * mediagoblin/media_types/stl/migrations/16134ed134ad_stl_media_type_initial_migration.py: New file.
* Ascii media type initial migration.Christopher Allan Webber2016-03-261-0/+33
| | | | | * mediagoblin/db/migrations/versions/72bd70f7eefd_ascii_media_type_initial_migration.py: New file.
* Video media type initial migration.Christopher Allan Webber2016-03-261-0/+36
| | | | | * mediagoblin/media_types/video/migrations/38feb829c545_video_media_type_initial_migration.py: New file.
* Audio media type initial migration.Christopher Allan Webber2016-03-261-0/+32
| | | | | * mediagoblin/media_types/audio/migrations/e9212d3a12d3_adding_audio_media_type_initial_.py: New file.
* Image media type initial migration.Christopher Allan Webber2016-03-261-0/+36
| | | | | * mediagoblin/media_types/image/migrations/a98c1a320e88_image_media_type_initial.py: New file.
* Removing erronously installed print statement.Christopher Allan Webber2016-03-261-1/+0
| | | | | * mediagoblin/gmg_commands/alembic_commands.py (FudgedCommandLine.main): Removed call to print.
* Allow for passing in --with-plugins to the alembic gmg subcommand.Christopher Allan Webber2016-03-261-0/+19
| | | | | | | | | This allows plugin writers to easily take advantage off alembic's migration autogeneration support. * mediagoblin/gmg_commands/alembic_commands.py: Adjusted imports. (FudgedCommandLine.main, parser_setup): Add support for importing plugins when --with-plugins is passed in.
* Only run sqlalchemy-migrate migrations if we have to; separate foundationsChristopher Allan Webber2016-03-262-37/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The goal is to get things to the point where Alembic can run on its own for new databases and initialize the whole database on its own. There are risks to not doing so, see #5413 for details. There's a lot more here that could removed or cleaned up once sqlalchemy-migrate is *completely* removed in the future. * mediagoblin/db/migration_tools.py (MigrationManager.foundations): Removed attribute. (MigrationManager.populate_table_foundations): Removed method. (MigrationManager.init_or_migrate): Removed call to deprecated method. (populate_table_foundations): New function, refactored from former MigrationManager method of same name. * mediagoblin/gmg_commands/dbupdate.py: Import populate_table_foundations. (DatabaseData.foundations): Remove attribute. (DatabaseData.make_migration_manager): Adjust instantiation of MigrationManager. (gather_database_data): Move out the work of building up foundations data. (run_foundations): New method, incorporating logic for gathering and running foundations which was previously spread across other functions and methods. (run_alembic_migrations): Remove deprecated comment. (run_dbupdate): Only run sqlalchemy migrations if we have to. Also run run_foundations if we are setting up this database for the first time. (sqam_migrations_to_run): New method.
* Switch initial_revision alembic migration to make tables if they aren't thereChristopher Allan Webber2016-03-261-1/+401
| | | | | | | | | This is a necessary step towards deprecating sqlalchemy-migrate. * mediagoblin/db/migrations/versions/52bf0ccbedc1_initial_revision.py (upgrade): Update for adding tables. Mostly generated via Alembic's autogenerate tools. (downgrade): Added a comment.
* Set target_metadata in alembic's env.py to Base.metadataChristopher Allan Webber2016-03-261-1/+2
| | | | | | | | This allows us to make use of automatically generated migrations, at least for core. * mediagoblin/db/migrations/env.py (target_metadata): Switch to gmg's Base.metadata.
* Update out script.py mako template to support branch_labelsChristopher Allan Webber2016-03-261-1/+3
| | | | | | | This is important (probably) for long-running plugin branches. * mediagoblin/db/migrations/script.py.mako: Updated to upstream Alembic version of this file.
* dbupdate updates to use plugin migrations if availableChristopher Allan Webber2016-03-262-49/+12
| | | | | | | | | This makes use of the recently added "build_alembic_config" tool and removes AlembicMigrationManager. * mediagoblin/db/migration_tools.py (AlembicMigrationManager): Removed. * mediagoblin/gmg_commands/dbupdate.py (run_alembic_migrations): Adjusted to use recently added build_alembic_config tool.
* Add build_alembic_config, use it to add plugin migrations to alembic configChristopher Allan Webber2016-03-262-9/+40
|
* Remove requirement that audio/video dependencies must be installed for testsChristopher Allan Webber2016-03-185-64/+210
| | | | | | | Some tests were added for running audio and video submission tests in test_submission.py. Unfortunately these were not skipped if these dependencies were not installed. This patch attempts to fix that while leaving the tests intact.
* Check all tags for existence before using themBoris Bobrov2016-03-091-8/+15
| | | | Fix bug 5401
* Fix module name for `gmg alembic` commandBoris Bobrov2016-03-082-2/+2
| | | | | | | | gmg_commands.alembic attempted to import from `alembic`. On python2.7 it resulted in import from itself. Rename alembic.py to alembic_commands.py and fix references to gmg_commands.alembic.