% if isinstance(content, list): #no specific content: therefore index


{{texplain}}

% 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

% else: # specific content %if 'cheader' in self.request.params:

{{! self.request.params['cheader'] }}

%end %cq = self.query_string %pe = course_labels(cq) %alinks = ['/'+self.request.lang+'/contents?'+x for x in [start_qs(cq),next_qs(cq,-1),cq,next_qs(cq),end_qs(cq)]] %def qsnav(where,sign): %end % 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 not pe and ('bare' in self.request.params): % bhidden='display:none;' % else: % bhidden='' % end

% bottonwidth = 'grid_10' %pe2='' %if pe: % bottonwidth = 'grid_2' %qsnav(0,'1 <<') %qsnav(1,pe[1]+' <') %pe2=' '+pe[2] %end % if with_problems and problem.answered: % end % if with_problems and not problem.answered: %end %if pe: %qsnav(3,'> '+pe[3]) %qsnav(4,'>> '+pe[4]) %end


% if with_problems and not problem.answered:
% end % # ASSIGN % if with_problems: % if self.request.user: % if 'bare' not in self.request.params: % teacher = self.request.student.key.parent().parent().get() % if teacher.userkey == db.idof(self.request.user): # self assignment is possible
% fieldset = False % for ee in db.assignable(teacher,self.request.user): % e = ee.key % kind = e.kind() % if kind =='Class': % if fieldset: % end
% fieldset = True
{{util.translate(kind)}} {{e.string_id()}}
% elif kind == 'Role':
{{e.string_id()}}
% end % end % if fieldset:
% end
{{tdue}}


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