branch | 3.26 |
changeset 12331 | 3cddf6a5473a |
parent 12330 | 6e620df7d4c3 |
child 12332 | 45f9d93bba71 |
--- a/cubicweb/web/views/wdoc.py Thu Jun 28 09:43:23 2018 +0200 +++ b/cubicweb/web/views/wdoc.py Thu Jun 28 10:15:33 2018 +0200 @@ -58,7 +58,7 @@ if section.attrib.get('insertafter'): snode = index[section.attrib['insertafter']] node = snode.parent - idx = node.getchildren().index(snode) + 1 + idx = list(node).index(snode) + 1 elif section.attrib.get('insertbefore'): snode = index[section.attrib['insertbefore']] node = snode.parent