if c.user:
c.your_score = c.art.user_score(c.user)
return render("/art/show.mako")
-
+
# TODO: login required
def rate(self, id):
score = int(score)
else:
score = Rating.reverse_options.get(score)
-
+
c.art.rate(score, c.user)
elixir.session.commit()
-
+
redirect(url('show_art', id=c.art.id))