saksham1115 [Sat, 16 Jul 2016 09:44:21 +0000 (09:44 +0000)]
Removed dependence on absolute path for editing
saksham1115 [Sat, 16 Jul 2016 00:27:46 +0000 (00:27 +0000)]
Deleted old templates files
saksham1115 [Sat, 16 Jul 2016 00:19:53 +0000 (00:19 +0000)]
Removed almost all of the code from core
saksham1115 [Sat, 16 Jul 2016 00:07:58 +0000 (00:07 +0000)]
Fixed media.html by using plugin hook
saksham1115 [Fri, 15 Jul 2016 23:58:33 +0000 (23:58 +0000)]
Creating plugins views.py
saksham1115 [Fri, 15 Jul 2016 23:54:05 +0000 (23:54 +0000)]
Creating plugin tools.py
saksham1115 [Fri, 15 Jul 2016 23:53:17 +0000 (23:53 +0000)]
Creating plugin templates
saksham1115 [Fri, 15 Jul 2016 23:46:44 +0000 (23:46 +0000)]
Creating models.py
saksham1115 [Fri, 15 Jul 2016 23:46:06 +0000 (23:46 +0000)]
Creating plugin forms.py
saksham1115 [Fri, 15 Jul 2016 23:45:11 +0000 (23:45 +0000)]
Making changes to plugins __init__.py
saksham1115 [Fri, 15 Jul 2016 23:44:28 +0000 (23:44 +0000)]
Converting to subtitle plugin
saksham1115 [Fri, 15 Jul 2016 17:52:00 +0000 (17:52 +0000)]
Deleted some files
saksham1115 [Wed, 13 Jul 2016 15:09:49 +0000 (15:09 +0000)]
Only video uploader can edit their subtitles
saksham1115 [Wed, 13 Jul 2016 13:48:52 +0000 (13:48 +0000)]
Only video owner can upload the subtitle for the video
saksham1115 [Wed, 13 Jul 2016 13:36:14 +0000 (13:36 +0000)]
Modified get_path function in tools/subtitles.py
saksham1115 [Mon, 11 Jul 2016 18:49:39 +0000 (18:49 +0000)]
Removed option for adding subtitles for image etc
saksham1115 [Mon, 11 Jul 2016 06:46:12 +0000 (06:46 +0000)]
Saing subtitle after edit
saksham1115 [Fri, 8 Jul 2016 19:47:35 +0000 (19:47 +0000)]
Removed ast and fixed comments
saksham1115 [Fri, 8 Jul 2016 10:55:56 +0000 (10:55 +0000)]
Adding the migration file
saksham1115 [Thu, 30 Jun 2016 08:45:15 +0000 (08:45 +0000)]
Adding css to textarea
saksham1115 [Wed, 29 Jun 2016 11:18:34 +0000 (11:18 +0000)]
Opening ths subtitle using absolute path and open function
saksham1115 [Tue, 28 Jun 2016 06:58:22 +0000 (06:58 +0000)]
Converting the path to subtitle into a tuple
saksham1115 [Sun, 26 Jun 2016 12:32:27 +0000 (12:32 +0000)]
Removing commented code
saksham1115 [Sun, 26 Jun 2016 12:15:47 +0000 (12:15 +0000)]
Cleaning up
saksham1115 [Mon, 20 Jun 2016 05:47:43 +0000 (05:47 +0000)]
Customizing Subs using Wtforms
saksham1115 [Tue, 14 Jun 2016 15:27:11 +0000 (15:27 +0000)]
Working for firefox
saksham1115 [Mon, 13 Jun 2016 10:27:23 +0000 (10:27 +0000)]
Loading subtitle files [Not working]
saksham1115 [Mon, 13 Jun 2016 06:47:32 +0000 (06:47 +0000)]
Path decoded and sent to html page
saksham1115 [Wed, 8 Jun 2016 18:58:14 +0000 (18:58 +0000)]
Made decorators views for Customize Interface
saksham1115 [Wed, 8 Jun 2016 16:50:03 +0000 (16:50 +0000)]
Customize Interface in progress
saksham1115 [Tue, 7 Jun 2016 17:15:06 +0000 (17:15 +0000)]
Starting Customize Interface
saksham1115 [Fri, 3 Jun 2016 12:19:47 +0000 (12:19 +0000)]
Minor Change
saksham1115 [Fri, 3 Jun 2016 11:55:46 +0000 (11:55 +0000)]
Subtitle built over attachments : working
saksham1115 [Sun, 29 May 2016 17:35:24 +0000 (17:35 +0000)]
Subtitle interface using attachments
saksham1115 [Wed, 25 May 2016 22:26:43 +0000 (22:26 +0000)]
Lightbox effect for images
saksham1115 [Wed, 25 May 2016 22:19:06 +0000 (22:19 +0000)]
Revert "Import messages in blog views"
This reverts commit
41302ad2b622b340caeb13339338ab3a5d0f7e6b.
Andrew Browning [Sun, 3 Apr 2016 05:10:22 +0000 (01:10 -0400)]
Import messages in blog views
Andrew Browning [Sat, 2 Apr 2016 01:14:40 +0000 (21:14 -0400)]
Fix #5451 - add_message inconsistencies
Reformat add_message function calls for consistency and PEP8 line
continuations.
Berker Peksag [Sat, 2 Apr 2016 17:48:04 +0000 (20:48 +0300)]
Replace raw_input with six.moves.input
Fixes #5441
宋文武 [Sat, 2 Apr 2016 03:45:25 +0000 (11:45 +0800)]
Fix the blog_delete page for admins.
* mediagoblin/media_types/blog/views.py: Import WARNING from mediagoblin.messages.
Christopher Allan Webber [Tue, 29 Mar 2016 21:41:57 +0000 (14:41 -0700)]
tests: Fix migration tests; foundations are now installed separately
* mediagoblin/tests/test_sql_migrations.py: Import migration.changeset
even in python 3.
(FOUNDATIONS): Removed.
(test_set1_to_set3): Removed foundations checks.
Christopher Allan Webber [Tue, 29 Mar 2016 21:24:59 +0000 (14:24 -0700)]
tests: importorskip migration tests on "migrate" rather than on Python 3
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.
Christopher Allan Webber [Tue, 29 Mar 2016 21:26:03 +0000 (14:26 -0700)]
Now on MediaGoblin 1.0 development cycle!
* configure.ac (AC_INIT):
* mediagoblin/_version.py (__version__): Update version to 1.0.dev.
Christopher Allan Webber [Tue, 29 Mar 2016 19:06:44 +0000 (12:06 -0700)]
devtools: Update maketarball.sh to use #!/bin/sh as shebang
* devtools/maketarball.sh: Updated shebang.
Christopher Allan Webber [Tue, 29 Mar 2016 19:04:37 +0000 (19:04 +0000)]
Committing extracted and compiled translations
Christopher Allan Webber [Tue, 29 Mar 2016 19:00:28 +0000 (12:00 -0700)]
devtools: Use pybabel in virtualenv or on path depending on which is present.
* devtools/update_translations.sh (PYBABEL): New variable, points to
whichever pybabel we should use.
Christopher Allan Webber [Tue, 29 Mar 2016 18:59:31 +0000 (11:59 -0700)]
guix: Add additional useful packages for development
* guix-env.scm: Added openssh, git, and rsync in the development package.
Christopher Allan Webber [Tue, 29 Mar 2016 18:47:02 +0000 (11:47 -0700)]
devtools: Switching "#!/usr/bin/env bash" -> "#!/bin/sh" again
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.
Christopher Allan Webber [Tue, 29 Mar 2016 18:42:20 +0000 (11:42 -0700)]
On MediaGoblin 0.9.0!
* configure.ac (AC_INIT):
* mediagoblin/_version.py (__version__): Update to 0.9.0.
Christopher Allan Webber [Tue, 29 Mar 2016 18:30:26 +0000 (11:30 -0700)]
doc: 0.9.0 release notes
* doc/source/siteadmin/relnotes.rst: Add release notes for 0.9.0.
Christopher Allan Webber [Tue, 29 Mar 2016 17:11:11 +0000 (10:11 -0700)]
AUTHORS: Adding new 0.9.0 contributors.
* AUTHORS: Adding new contributors
Christopher Allan Webber [Tue, 29 Mar 2016 16:44:34 +0000 (09:44 -0700)]
migrations: Only don't import "migrate" if it's not available
* mediagoblin/db/migrations.py: Import migrate if available; if not
print a warning.
Christopher Allan Webber [Sat, 26 Mar 2016 18:37:52 +0000 (11:37 -0700)]
doc: Update developer migration docs for Alembic as primary migration system
* docs/source/devel/migrations.rst: Update to reflect sqlalchemy-migrate
as being deprecated and Alembic as being the new way of doing
migrations.
Christopher Allan Webber [Fri, 25 Mar 2016 23:21:58 +0000 (16:21 -0700)]
Update make_example_database.sh to use #!/bin/sh instead of #!/usr/bin/env
* devtools/make_example_database.sh: Update shebang.
Christopher Allan Webber [Fri, 25 Mar 2016 22:47:19 +0000 (15:47 -0700)]
doc: Update plugins documentation in light of alembic branching usage
* 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".
Christopher Allan Webber [Fri, 25 Mar 2016 22:26:07 +0000 (15:26 -0700)]
dbupdate: Correctly handle plugin foundations
* 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.
Christopher Allan Webber [Fri, 25 Mar 2016 22:07:36 +0000 (15:07 -0700)]
doc: Note that plugin authors must NEVER modify tables they don't control
* docs/source/pluginwriter/database.rst: New paragraph.
Christopher Allan Webber [Fri, 25 Mar 2016 20:38:58 +0000 (13:38 -0700)]
Update database docs for plugin authors for new alembic branching world
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.
Christopher Allan Webber [Fri, 25 Mar 2016 00:13:34 +0000 (17:13 -0700)]
Add comment questioning why run_dbupdate is needed in get_app test utility
* mediagoblin/tests/tools.py (get_app): Add comment
Christopher Allan Webber [Fri, 25 Mar 2016 00:12:16 +0000 (17:12 -0700)]
Fix tests post-alembic-migration-changes.
* mediagoblin/init/__init__.py (setup_database): Update to run alembic
migrations, skip the old legacy migrations.
Christopher Allan Webber [Sat, 12 Mar 2016 23:46:02 +0000 (15:46 -0800)]
Only run archivalook migration if the tables aren't there.
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.
Christopher Allan Webber [Sat, 12 Mar 2016 23:39:41 +0000 (15:39 -0800)]
Archivalook plugin initial migration.
* mediagoblin/plugins/archivalook/migrations/b10b5f822789_archivalook_plugin_initial_migration.py:
New file.
Christopher Allan Webber [Sat, 12 Mar 2016 23:36:41 +0000 (15:36 -0800)]
OpenID plugin initial migration.
* mediagoblin/plugins/openid/migrations/071abb33d1da_openid_plugin_initial_migration.py:
New file.
Christopher Allan Webber [Sat, 12 Mar 2016 23:35:38 +0000 (15:35 -0800)]
Persona plugin initial migration.
* mediagoblin/plugins/persona/migrations/c7d4840a5592_persona_plugin_initial_migration.py:
New file.
Christopher Allan Webber [Sat, 12 Mar 2016 23:22:52 +0000 (15:22 -0800)]
Blog media type initial migration.
* mediagoblin/media_types/blog/migrations/562bc42a8fff_blog_media_type_initial_migration.py:
New file.
Christopher Allan Webber [Sat, 12 Mar 2016 23:14:24 +0000 (15:14 -0800)]
PDF media type initial migration.
* mediagoblin/media_types/pdf/migrations/faa209f143b5_pdf_media_type_initial_migration.py:
New file.
Christopher Allan Webber [Sat, 12 Mar 2016 23:04:22 +0000 (15:04 -0800)]
STL media type initial migration.
* mediagoblin/media_types/stl/migrations/16134ed134ad_stl_media_type_initial_migration.py:
New file.
Christopher Allan Webber [Sat, 12 Mar 2016 22:53:20 +0000 (14:53 -0800)]
Ascii media type initial migration.
* mediagoblin/db/migrations/versions/72bd70f7eefd_ascii_media_type_initial_migration.py:
New file.
Christopher Allan Webber [Sat, 12 Mar 2016 22:52:09 +0000 (14:52 -0800)]
Video media type initial migration.
* mediagoblin/media_types/video/migrations/38feb829c545_video_media_type_initial_migration.py:
New file.
Christopher Allan Webber [Sat, 12 Mar 2016 22:51:20 +0000 (14:51 -0800)]
Audio media type initial migration.
* mediagoblin/media_types/audio/migrations/e9212d3a12d3_adding_audio_media_type_initial_.py:
New file.
Christopher Allan Webber [Sat, 12 Mar 2016 22:36:23 +0000 (14:36 -0800)]
Image media type initial migration.
* mediagoblin/media_types/image/migrations/a98c1a320e88_image_media_type_initial.py:
New file.
Christopher Allan Webber [Sat, 12 Mar 2016 22:38:43 +0000 (14:38 -0800)]
Removing erronously installed print statement.
* mediagoblin/gmg_commands/alembic_commands.py (FudgedCommandLine.main):
Removed call to print.
Christopher Allan Webber [Sat, 12 Mar 2016 19:30:08 +0000 (11:30 -0800)]
Allow for passing in --with-plugins to the alembic gmg subcommand.
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.
Christopher Allan Webber [Sat, 12 Mar 2016 17:45:28 +0000 (09:45 -0800)]
Only run sqlalchemy-migrate migrations if we have to; separate foundations
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.
Christopher Allan Webber [Sat, 12 Mar 2016 17:32:56 +0000 (09:32 -0800)]
Switch initial_revision alembic migration to make tables if they aren't there
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.
Christopher Allan Webber [Fri, 11 Mar 2016 19:54:12 +0000 (11:54 -0800)]
Set target_metadata in alembic's env.py to Base.metadata
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.
Christopher Allan Webber [Wed, 9 Mar 2016 23:16:17 +0000 (15:16 -0800)]
Update out script.py mako template to support branch_labels
This is important (probably) for long-running plugin branches.
* mediagoblin/db/migrations/script.py.mako: Updated to upstream
Alembic version of this file.
Christopher Allan Webber [Wed, 9 Mar 2016 21:31:39 +0000 (13:31 -0800)]
dbupdate updates to use plugin migrations if available
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.
Christopher Allan Webber [Wed, 9 Mar 2016 20:20:36 +0000 (12:20 -0800)]
Ignore .eggs/ directory
Christopher Allan Webber [Sun, 6 Mar 2016 01:37:58 +0000 (17:37 -0800)]
Add build_alembic_config, use it to add plugin migrations to alembic config
Christopher Allan Webber [Thu, 24 Mar 2016 21:23:49 +0000 (14:23 -0700)]
guix-env.scm: Comment on python-numpy pulling in texlive
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.
Christopher Allan Webber [Tue, 23 Feb 2016 23:14:29 +0000 (15:14 -0800)]
Remove requirement that audio/video dependencies must be installed for tests
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.
Boris Bobrov [Fri, 11 Mar 2016 21:34:15 +0000 (00:34 +0300)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/mediagoblin
Christopher Allan Webber [Wed, 9 Mar 2016 20:05:31 +0000 (12:05 -0800)]
Add python-gst to guix-env.scm
Boris Bobrov [Wed, 9 Mar 2016 09:28:14 +0000 (12:28 +0300)]
Check all tags for existence before using them
Fix bug 5401
Boris Bobrov [Tue, 8 Mar 2016 14:12:49 +0000 (17:12 +0300)]
Fix module name for `gmg alembic` command
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.
Boris Bobrov [Tue, 8 Mar 2016 14:23:15 +0000 (17:23 +0300)]
Check tags for existence before using them
Closes bug 5401
Andrew Browning [Mon, 7 Mar 2016 00:47:17 +0000 (19:47 -0500)]
Fix #5440 - Typo in blog views
Christopher Allan Webber [Sun, 6 Mar 2016 00:28:30 +0000 (16:28 -0800)]
Commentary on where this hack on detecting no subcommand to Alembic comes from
Andrew Browning [Sat, 5 Mar 2016 16:58:23 +0000 (11:58 -0500)]
Fix comment ID links on blog media page
Change the comment ID behaviour and source of
user_pages/blog_media.html to match user_pages/media.html as of #5376.
Andrew Browning [Wed, 2 Mar 2016 18:37:36 +0000 (13:37 -0500)]
Fix comment ID links on media comment report page
Change the comment ID behaviour and source of user_pages/report.html
to match user_pages/media.html as of #5376.
Christopher Allan Webber [Thu, 3 Mar 2016 01:03:04 +0000 (17:03 -0800)]
Add "gmg raw_alembic" command.
This allows you to dispatch to the "alembic" command line tool properly,
but properly respecting MediaGoblin's own configuration.
Christopher Allan Webber [Thu, 3 Mar 2016 00:08:12 +0000 (16:08 -0800)]
typo fix: Set sqlalchemy.url, not qlalchemy.url
Christopher Allan Webber [Wed, 2 Mar 2016 19:18:25 +0000 (11:18 -0800)]
Remove old hack to support pre-0.7.5 Alembic versions
Thanks to Jessica Tallon for pointing out this TODO and its associated
hack could be removed.
Christopher Allan Webber [Wed, 2 Mar 2016 19:13:42 +0000 (11:13 -0800)]
Remove version caps on sqlalchemy and alembic.
Code seems to pass fine after the cap is removed. Whatever dependency
issues we were running into before don't seem to be an issue now.
Andrew Browning [Wed, 2 Mar 2016 17:43:53 +0000 (12:43 -0500)]
Fix #5432 - Comment report link doens't work
This builds on work done for #5376 and associates the correct comment
ID with comment report links.
Andrew Browning [Wed, 2 Mar 2016 17:29:33 +0000 (12:29 -0500)]
Fix #5435 - Bad comment links cause server error
This patch addresses an issue where a server error is caused by
entering a non-existent comment ID in a media URL.
Jessica Tallon [Tue, 1 Mar 2016 11:58:38 +0000 (11:58 +0000)]
Fix #5376 - Ensure links have correct ID
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.
Andrew Browning [Tue, 1 Mar 2016 06:00:14 +0000 (01:00 -0500)]
Fix #5433 - Typo in decorators
Andrew Browning [Tue, 1 Mar 2016 05:27:50 +0000 (00:27 -0500)]
Fix #5431 - Typo in models
Fix a typo in models.py.