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
+++ /dev/null
-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()
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,