diff options
author | Joar Wandborg <git@wandborg.com> | 2011-10-05 22:58:42 +0200 |
---|---|---|
committer | Joar Wandborg <git@wandborg.com> | 2011-10-05 22:58:42 +0200 |
commit | 26729e0277f883d489157160ab6f0f3fd9d35b47 (patch) | |
tree | ed9867278305be5bf11cf7218dc7f79409bff5ac /mediagoblin/views.py | |
parent | 62be795e9141f951a92d5c44a974db9875df197d (diff) | |
download | mediagoblin-26729e0277f883d489157160ab6f0f3fd9d35b47.tar.lz mediagoblin-26729e0277f883d489157160ab6f0f3fd9d35b47.tar.xz mediagoblin-26729e0277f883d489157160ab6f0f3fd9d35b47.zip |
Multimedia refractoring, and added video thumbnail support
Diffstat (limited to 'mediagoblin/views.py')
-rw-r--r-- | mediagoblin/views.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mediagoblin/views.py b/mediagoblin/views.py index 96687f96..c2e3e80a 100644 --- a/mediagoblin/views.py +++ b/mediagoblin/views.py @@ -14,10 +14,14 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +import sys + from mediagoblin import mg_globals from mediagoblin.util import render_to_response, Pagination from mediagoblin.db.util import DESCENDING from mediagoblin.decorators import uses_pagination +from mediagoblin import media_types + @uses_pagination def root_view(request, page): @@ -26,12 +30,12 @@ def root_view(request, page): pagination = Pagination(page, cursor) media_entries = pagination() - return render_to_response( request, 'mediagoblin/root.html', {'media_entries': media_entries, 'allow_registration': mg_globals.app_config["allow_registration"], - 'pagination': pagination}) + 'pagination': pagination, + 'sys': sys}) def simple_template_render(request): |