503
506
# If post, delete the exercise, or display a message explaining that
504
507
# the exercise cannot be deleted
513
515
# If get, display a delete confirmation page
516
517
if self.context.worksheet_exercises.count() is not 0:
520
520
# Variables for the template
521
521
ctx['exercise'] = self.context
524
523
class ExerciseAddView(XHTMLView):
525
524
"""View for creating a new exercise."""