aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Fix #5462 - attempt to change email without loginAndrew Browning2016-07-191-0/+1
| | | | | | | | | | | | | | | | | | Require an active login when accessing the form to change an email address associated with an account. This prevents a server crash when a user is assumed to be part of the request.
* | | Prevent erroring out in some cases of checking video metadataChristopher Allan Webber2016-07-141-1/+1
| | |
* | | use is_rtl variable to detect rtl localesLeah Velleman2016-06-201-1/+1
| | |
* | | fixed 'older' and 'newer' arrows for rtl localesLeah Velleman2016-06-201-4/+11
|/ /
* | 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.
* | Check tags for existence before using themBoris Bobrov2016-03-081-0/+5
| | | | | | | | Closes bug 5401
* | Fix #5440 - Typo in blog viewsAndrew Browning2016-03-061-1/+1
| |
* | Commentary on where this hack on detecting no subcommand to Alembic comes fromChristopher Allan Webber2016-03-051-0/+2
| |
* | Fix comment ID links on blog media pageAndrew Browning2016-03-051-4/+5
| | | | | | | | | | Change the comment ID behaviour and source of user_pages/blog_media.html to match user_pages/media.html as of #5376.
* | Fix comment ID links on media comment report pageAndrew Browning2016-03-052-19/+13
| | | | | | | | | | Change the comment ID behaviour and source of user_pages/report.html to match user_pages/media.html as of #5376.
* | Add "gmg raw_alembic" command.Christopher Allan Webber2016-03-032-0/+60
| | | | | | | | | | This allows you to dispatch to the "alembic" command line tool properly, but properly respecting MediaGoblin's own configuration.
* | typo fix: Set sqlalchemy.url, not qlalchemy.urlChristopher Allan Webber2016-03-021-1/+1
| |
* | Remove old hack to support pre-0.7.5 Alembic versionsChristopher Allan Webber2016-03-021-3/+0
| | | | | | | | | | Thanks to Jessica Tallon for pointing out this TODO and its associated hack could be removed.
* | Fix #5432 - Comment report link doens't workAndrew Browning2016-03-021-1/+1
| | | | | | | | | | This builds on work done for #5376 and associates the correct comment ID with comment report links.
* | Fix #5435 - Bad comment links cause server errorAndrew Browning2016-03-021-0/+5
| | | | | | | | | | This patch addresses an issue where a server error is caused by entering a non-existent comment ID in a media URL.
* | Fix #5376 - Ensure links have correct IDJessica Tallon2016-03-017-24/+25
| | | | | | | | | | | | | | This ensures that links to comments have the correct ID (the ID of the Comment object) as well as fixing deletion on reports and fixing a few other little things. I hope this fixes the #5376 issue, though cannot reproduce so unable to confirm.