aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Extend Paginator tests to satisfy #55.Ben Sturmfels2016-09-161-7/+33
| | | |
* | | | Add Python 3 support in pagination.Ben Sturmfels2016-09-162-4/+34
| |/ / |/| | | | | | | | This issue was visible when attempting to view the home page of a MediaGoblin site with more than a single page worth of items, under Python 3.
* | | Revert "fixed bug #728"Boris Bobrov2016-08-161-3/+3
| | | | | | | | | | | | | | | | | | This reverts commit dbb86ffbbf25651330266435752a6a0422cfb6e5. It caused bug 5469
* | | Do not try to get private attributes for commentsBoris Bobrov2016-08-081-1/+8
|/ / | | | | | | Most probably, they are sqlalchemy's!
* | Adding compatibility stuff for themesBoris Bobrov2016-07-311-11/+32
| | | | | | | | | | | | | | During our migration to federation some interfaces were changed. We should not have done that so fast. Provide a compatibility layer so that old themes work
* | Fixing themesBoris Bobrov2016-07-311-5/+3
| |
* | fixed bug #728Boris Bobrov2016-07-251-3/+3
| |
* | Merge branch 'fix-unhelpful-smtp-error-5081'Boris Bobrov2016-07-252-4/+57
|\ \
| * | Include original error in debug logJonathan Sandoval2016-04-081-4/+4
| | |
| * | squash! Custom exception in mail.Jonathan Sandoval2016-04-081-0/+4
| | |
| * | Custom exception in mail.Jonathan Sandoval2016-04-081-4/+28
| | |
| * | Mail tests with no mail server configured.Jonathan Sandoval2016-04-081-0/+25
| | |
* | | Fix #928 - cleanup to avoid duplicated get_upload_file_limitsLoic Dachary2016-07-256-19/+4
| | | | | | | | | | | | Signed-off-by: Loic Dachary <loic@dachary.org>
* | | Use GLib instead of GObjectBoris Bobrov2016-07-251-4/+4
| | | | | | | | | | | | | | | | | | Thanks mi! Fixes bug 5399
* | | Merge branch 'login-validator-5414'Boris Bobrov2016-07-253-8/+60
|\ \ \
| * | | No length check for login formJonathan Sandoval2016-04-072-7/+13
| | | |
| * | | Tests for short and long usernames.Jonathan Sandoval2016-04-071-9/+11
| | | |
| * | | Test with short and long usernameJonathan Sandoval2016-04-071-1/+45
| |/ /
* | | 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.