| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | | |
|
| |/ /
|/| |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | |
| | |
| | | |
This reverts commit dbb86ffbbf25651330266435752a6a0422cfb6e5.
It caused bug 5469
|
|/ /
| |
| |
| | |
Most probably, they are sqlalchemy's!
|
| |
| |
| |
| |
| |
| |
| | |
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
|
| | |
|
| | |
|
|\ \ |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
Signed-off-by: Loic Dachary <loic@dachary.org>
|
| | |
| | |
| | |
| | |
| | |
| | | |
Thanks mi!
Fixes bug 5399
|
|\ \ \ |
|
| | | | |
|
| | | | |
|
| |/ / |
|
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | | |
|
| | | |
|
|/ / |
|
| | |
|
| |
| |
| |
| |
| | |
Reformat add_message function calls for consistency and PEP8 line
continuations.
|
| |
| |
| |
| | |
Fixes #5441
|
| |
| |
| |
| | |
* mediagoblin/media_types/blog/views.py: Import WARNING from mediagoblin.messages.
|
| |
| |
| |
| |
| |
| |
| | |
* mediagoblin/tests/test_sql_migrations.py: Import migration.changeset
even in python 3.
(FOUNDATIONS): Removed.
(test_set1_to_set3): Removed foundations checks.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| | |
* configure.ac (AC_INIT):
* mediagoblin/_version.py (__version__): Update version to 1.0.dev.
|
| | |
|
| |
| |
| |
| |
| | |
* configure.ac (AC_INIT):
* mediagoblin/_version.py (__version__): Update to 0.9.0.
|
| |
| |
| |
| |
| | |
* mediagoblin/db/migrations.py: Import migrate if available; if not
print a warning.
|
| |
| |
| |
| |
| |
| |
| | |
* 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.
|
| |
| |
| |
| | |
* mediagoblin/tests/tools.py (get_app): Add comment
|
| |
| |
| |
| |
| | |
* mediagoblin/init/__init__.py (setup_database): Update to run alembic
migrations, skip the old legacy migrations.
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| | |
* mediagoblin/plugins/archivalook/migrations/b10b5f822789_archivalook_plugin_initial_migration.py:
New file.
|
| |
| |
| |
| |
| | |
* mediagoblin/plugins/openid/migrations/071abb33d1da_openid_plugin_initial_migration.py:
New file.
|
| |
| |
| |
| |
| | |
* mediagoblin/plugins/persona/migrations/c7d4840a5592_persona_plugin_initial_migration.py:
New file.
|
| |
| |
| |
| |
| | |
* mediagoblin/media_types/blog/migrations/562bc42a8fff_blog_media_type_initial_migration.py:
New file.
|
| |
| |
| |
| |
| | |
* mediagoblin/media_types/pdf/migrations/faa209f143b5_pdf_media_type_initial_migration.py:
New file.
|
| |
| |
| |
| |
| | |
* mediagoblin/media_types/stl/migrations/16134ed134ad_stl_media_type_initial_migration.py:
New file.
|
| |
| |
| |
| |
| | |
* mediagoblin/db/migrations/versions/72bd70f7eefd_ascii_media_type_initial_migration.py:
New file.
|
| |
| |
| |
| |
| | |
* mediagoblin/media_types/video/migrations/38feb829c545_video_media_type_initial_migration.py:
New file.
|
| |
| |
| |
| |
| | |
* mediagoblin/media_types/audio/migrations/e9212d3a12d3_adding_audio_media_type_initial_.py:
New file.
|
| |
| |
| |
| |
| | |
* mediagoblin/media_types/image/migrations/a98c1a320e88_image_media_type_initial.py:
New file.
|
| |
| |
| |
| |
| | |
* mediagoblin/gmg_commands/alembic_commands.py (FudgedCommandLine.main):
Removed call to print.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|