539
539
class ExercisesView(XHTMLView):
540
540
"""View for seeing the list of all exercises"""
543
543
template = 'templates/exercises.html'
544
546
#XXX: This should be done somewhere else
545
547
def authorize(self, req):
546
548
for offering in req.store.find(Offering):
547
549
if 'edit' in offering.get_permissions(req.user):
551
553
def populate(self, req, ctx):
552
554
self.plugin_styles[Plugin] = ['exercise_admin.css']