From: tilly-Q Date: Tue, 13 May 2014 19:34:06 +0000 (-0400) Subject: Removed unused imports and removed development only migrations fromc X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c5667c73006cf0c8c7ddae547b30d3692bf3b370;p=mediagoblin.git Removed unused imports and removed development only migrations fromc archivalook plugin --- diff --git a/mediagoblin/plugins/archivalook/__init__.py b/mediagoblin/plugins/archivalook/__init__.py index 3bce880c..3f6d9c66 100644 --- a/mediagoblin/plugins/archivalook/__init__.py +++ b/mediagoblin/plugins/archivalook/__init__.py @@ -21,9 +21,7 @@ from mediagoblin.tools.pluginapi import (register_template_path, register_routes, register_template_hooks) from mediagoblin.plugins.archivalook.views import (get_root_view, - add_featured_media_to_media_home, - promote_featured_media, - demote_featured_media) + add_featured_media_to_media_home) from mediagoblin.tools.staticdirect import PluginStatic diff --git a/mediagoblin/plugins/archivalook/migrations.py b/mediagoblin/plugins/archivalook/migrations.py deleted file mode 100644 index 6760f773..00000000 --- a/mediagoblin/plugins/archivalook/migrations.py +++ /dev/null @@ -1,14 +0,0 @@ -from mediagoblin.db.migration_tools import RegisterMigration, inspect_table -from sqlalchemy import MetaData, Table, Column, Integer -MIGRATIONS = {} - -@RegisterMigration(1, MIGRATIONS) -def add_order_column(db): - metadata = MetaData(bind=db.bind) - - featured_media = inspect_table(metadata, "archivalook__featured_media") - col = Column("order", Integer, default=0) - - col.create(featured_media) - - db.commit() diff --git a/mediagoblin/plugins/archivalook/views.py b/mediagoblin/plugins/archivalook/views.py index 86a234bd..72424cfc 100644 --- a/mediagoblin/plugins/archivalook/views.py +++ b/mediagoblin/plugins/archivalook/views.py @@ -22,7 +22,6 @@ from mediagoblin.tools.response import render_to_response, redirect from mediagoblin.tools.pagination import Pagination from mediagoblin.plugins.archivalook.tools import ( - get_media_entry_from_uploader_slug, split_featured_media_list, create_featured_media_textbox, automatically_add_new_feature,