gsnedders / outliner

(unmaintained) HTML outliner
MIT License
14 stars 2 forks source link

<type 'exceptions.TypeError'>: argument to reversed() must be a sequence #6

Open gsnedders opened 10 years ago

gsnedders commented 10 years ago

I found a little bug in your html5 outliner: http://gsnedders.html5.org/outliner/process.py?url=http%3A%2F%2Fpiwiki.org

gsnedders commented 10 years ago
 /home/gsnedders/gsnedders.html5.org/outliner/toc.py in buildToc(ElementTree=<lxml.etree._ElementTree object>, **kwargs={})
   38 
   39     # Get a list of all the top level sections, and their depth (0)
   40     sections = [(section, 0) for section in reversed(outline)]
   41 
   42     # Loop over all sections in a DFS
sections undefined, section undefined, builtin reversed = <type 'reversed'>, outline = None

<type 'exceptions.TypeError'>: argument to reversed() must be a sequence
      args = ('argument to reversed() must be a sequence',)
      message = 'argument to reversed() must be a sequence' 
gsnedders commented 10 years ago

Quite a few emails about this over several years. (I've been shit at maintaining this, I know.) See also https://stackoverflow.com/questions/3560813/what-is-a-good-html5-outliner.