From c5667c73006cf0c8c7ddae547b30d3692bf3b370 Mon Sep 17 00:00:00 2001 From: tilly-Q Date: Tue, 13 May 2014 15:34:06 -0400 Subject: [PATCH] Removed unused imports and removed development only migrations fromc archivalook plugin --- mediagoblin/plugins/archivalook/__init__.py | 4 +--- mediagoblin/plugins/archivalook/migrations.py | 14 -------------- mediagoblin/plugins/archivalook/views.py | 1 - 3 files changed, 1 insertion(+), 18 deletions(-) delete mode 100644 mediagoblin/plugins/archivalook/migrations.py 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, -- 2.25.1