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