% if isinstance(content, list): #no specific content: therefore index
% for knd, lnks in content:

{{knd}}
% for linktext,lnklvl,leaf,depth in lnks: % if not leaf: ({{depth}}){{linktext}}: % else: % lnk,lvl = lnklvl ({{depth}}){{linktext}} % try: % authorid = lnk.split('.')[0] ({{authorid}}) % except: pass %end {{lvl}} % end % end % end

{{texplain}}

% else: # specific content wanted % if with_problems and not problem.answered:
% end % if with_problems and problem.answered and summary[0].counted > 2:

{{tsummary}} {{util.summary(*summary)}}

% end {{! content }} % if with_problems and problem.answered:

{{tagain}}

% end % 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
% fieldset = False % for ee in db.assignable(teacher,request.user): % e = ee.key % kind = e.kind() % if kind =='Class': % if fieldset: % end
% fieldset = True
{{util.translate(kind)}} {{e.string_id()}}
% elif kind == 'Student':
{{e.string_id()}}
% end % end % if fieldset:
% end
{{tdue}}

% end % end % end % include('chcko/main')