Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1)

Unified Diff: charmworld/views/featured.py

Issue 65550043: Promulgate bundles owned by ~charmers.
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« charmworld/jobs/tests/test_lp.py ('K') | « charmworld/tests/test_models.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: charmworld/views/featured.py
=== modified file 'charmworld/views/featured.py'
--- charmworld/views/featured.py 2013-09-04 16:51:14 +0000
+++ charmworld/views/featured.py 2014-02-18 15:59:26 +0000
@@ -8,8 +8,10 @@
from pyramid.httpexceptions import HTTPFound
from pyramid.view import view_config
-from charmworld.forms.featured import CharmFeaturedness
-from charmworld.models import FeaturedSource
+from charmworld.forms.featured import get_schema
+from charmworld.models import (
+ FeaturedSource,
+)
from charmworld.views.helpers import (
find_charm,
find_bundle,
@@ -19,7 +21,7 @@
def featured_edit(request, item, kind, url):
"""Back end for featuring an "item" which can be a charm or bundle."""
- form = Form(CharmFeaturedness(), buttons=('submit',))
+ form = Form(get_schema(kind), buttons=('submit',))
form.css_class = 'form-horizontal well'
featured_source = FeaturedSource.from_db(request.db)
« charmworld/jobs/tests/test_lp.py ('K') | « charmworld/tests/test_models.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b