aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/views.py
diff options
context:
space:
mode:
authorJoar Wandborg <git@wandborg.com>2011-05-07 03:11:36 +0200
committerJoar Wandborg <git@wandborg.com>2011-05-07 03:11:36 +0200
commit88bcdcd7d28d8e5548aeefa0a69e8af3773870a9 (patch)
tree0b14edd0dc44691068c631ddfc59ff6c890fc69d /mediagoblin/views.py
parent5c42a82c5ad4fa410219084a6f43bdc414369114 (diff)
parent1c424df505b3c9f9cceb84a4fd0ac1867b7ed9b4 (diff)
downloadmediagoblin-88bcdcd7d28d8e5548aeefa0a69e8af3773870a9.tar.lz
mediagoblin-88bcdcd7d28d8e5548aeefa0a69e8af3773870a9.tar.xz
mediagoblin-88bcdcd7d28d8e5548aeefa0a69e8af3773870a9.zip
Merge branch 'master' of http://git.gitorious.org/mediagoblin/mediagoblin
Diffstat (limited to 'mediagoblin/views.py')
-rw-r--r--mediagoblin/views.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/mediagoblin/views.py b/mediagoblin/views.py
index 1081ce29..3728d4aa 100644
--- a/mediagoblin/views.py
+++ b/mediagoblin/views.py
@@ -22,11 +22,15 @@ import wtforms
from mediagoblin import models
def root_view(request):
+ media_entries = request.db.MediaEntry.find(
+ {u'state': u'processed'})
+
template = request.template_env.get_template(
'mediagoblin/root.html')
return Response(
template.render(
- {'request': request}))
+ {'request': request,
+ 'media_entries': media_entries}))
class ImageSubmitForm(wtforms.Form):