aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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-292-2/+2
| | | | | * configure.ac (AC_INIT): * mediagoblin/_version.py (__version__): Update version to 1.0.dev.
* devtools: Update maketarball.sh to use #!/bin/sh as shebangChristopher Allan Webber2016-03-291-1/+1
| | | | * devtools/maketarball.sh: Updated shebang.
* Committing extracted and compiled translationsChristopher Allan Webber2016-03-295-890/+1038
|
* devtools: Use pybabel in virtualenv or on path depending on which is present.Christopher Allan Webber2016-03-291-1/+7
| | | | | * devtools/update_translations.sh (PYBABEL): New variable, points to whichever pybabel we should use.
* guix: Add additional useful packages for developmentChristopher Allan Webber2016-03-291-0/+6
| | | | * guix-env.scm: Added openssh, git, and rsync in the development package.
* devtools: Switching "#!/usr/bin/env bash" -> "#!/bin/sh" againChristopher Allan Webber2016-03-291-1/+1
| | | | | | | | This makes things easier on Guix and etc. We don't need Bash specifically, just something Bourne-compatible, which all Posix machines should theoretically provide. * devtools/update_translations.sh: Updated shebang.
* On MediaGoblin 0.9.0!Christopher Allan Webber2016-03-292-2/+2
| | | | | * configure.ac (AC_INIT): * mediagoblin/_version.py (__version__): Update to 0.9.0.
* doc: 0.9.0 release notesChristopher Allan Webber2016-03-291-0/+41
| | | | * doc/source/siteadmin/relnotes.rst: Add release notes for 0.9.0.
* AUTHORS: Adding new 0.9.0 contributors.Christopher Allan Webber2016-03-291-0/+4
| | | | * AUTHORS: Adding new contributors
* 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.
* doc: Update developer migration docs for Alembic as primary migration systemChristopher Allan Webber2016-03-261-22/+22
| | | | | | * docs/source/devel/migrations.rst: Update to reflect sqlalchemy-migrate as being deprecated and Alembic as being the new way of doing migrations.
* Update make_example_database.sh to use #!/bin/sh instead of #!/usr/bin/envChristopher Allan Webber2016-03-261-1/+1
| | | | * devtools/make_example_database.sh: Update shebang.
* doc: Update plugins documentation in light of alembic branching usageChristopher Allan Webber2016-03-261-3/+24
| | | | | | | * docs/source/siteadmin/plugins.rst: Added a reminder to run "./bin/gmg dbupdate" after installing a plugin. Added a new "Deactivating plugins" section. Renamed "Removing plugins" to "Removing plugin packages".
* 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.
* doc: Note that plugin authors must NEVER modify tables they don't controlChristopher Allan Webber2016-03-261-0/+5
| | | | * docs/source/pluginwriter/database.rst: New paragraph.
* Update database docs for plugin authors for new alembic branching worldChristopher Allan Webber2016-03-261-27/+58
| | | | | | | | | | | Things have gotten both easier and more complex in the branching world view. Plugins branch off of main with their own migrations. Generating these has become a bit easier, but the steps for doing this are a bit wordy to explain. * docs/source/pluginwriter/database.rst: Update both the "Creating new Tables" and "Changing the Database Schema Later" sections accordingly.
* 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.
* Ignore .eggs/ directoryChristopher Allan Webber2016-03-261-0/+1
|
* Add build_alembic_config, use it to add plugin migrations to alembic configChristopher Allan Webber2016-03-262-9/+40
|
* guix-env.scm: Comment on python-numpy pulling in texliveChristopher Allan Webber2016-03-241-1/+2
| | | | | | | | textlive-texmf is currently a dependency of texlive in Guix, and is very large. Users may want to know and disable this dependency, if they can bear limiting the media types they are developing with. * guix-env.scm: New comment on returned package.
* 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.
* Merge branch 'master' of git.sv.gnu.org:/srv/git/mediagoblinBoris Bobrov2016-03-121-0/+1
|\
| * Add python-gst to guix-env.scmChristopher Allan Webber2016-03-091-0/+1
| |