Removed unused imports and removed development only migrations fromc
authortilly-Q <nattilypigeonfowl@gmail.com>
Tue, 13 May 2014 19:34:06 +0000 (15:34 -0400)
committertilly-Q <nattilypigeonfowl@gmail.com>
Tue, 13 May 2014 19:34:35 +0000 (15:34 -0400)
archivalook plugin

mediagoblin/plugins/archivalook/__init__.py
mediagoblin/plugins/archivalook/migrations.py [deleted file]
mediagoblin/plugins/archivalook/views.py

index 3bce880cc8c4b9ff804ea6a010940ac9ba846b8f..3f6d9c6657fb2ad374c1e75ac713c09989ae4812 100644 (file)
@@ -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 (file)
index 6760f77..0000000
+++ /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()
index 86a234bda333af5a8b338a26aab3f9fdc8a49279..72424cfc04efd50edfe84c05ae4cd92a2419e6a7 100644 (file)
@@ -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,