% if isinstance(content, list): #no specific content: therefore index
% else: # specific content wanted % if with_problems and not problem.answered: % end % if not problem.answered and request.user: % teacher = request.student.key.parent().parent().get() % if teacher.userkey == db.idof(request.user): #self assignment is possible % end % end % end % include('chcko/main')