Silva Issue Tracker Archive: Message7804

 This tracker has been migrated to Launchpad. Please post new messages at: https://bugs.launchpad.net/silva.
Author thisfred
Recipients aaltepet, faassen, johnny, jw, thisfred
Date 2005-10-03.16:55:36
Content
something very weird happens here:

(SilvaDocument/transform/base.py line 188 and up)

    def convert(self, context):
        try: 
            context = Context(**context)
        except TypeError: 
            pass

        l = Frag()
        context.resultstack.append(l)
        post = self[:]
        while post:
            node = post.pop(0)
            l.append(node.convert(context))
        return context.resultstack.pop() 


exception based recursion-fu, very 1337 and all, but almost impossible to debug:
printing repr(context.resultstack) actually throws a different error than the
list index out of range one... (something to do with encoding.) The resulting
silvanode seems to contain nothing but the '<heading>...</heading>' which is in
the list item.
History
Date User Action Args
2005-10-03 16:55:37thisfredsetmessageid: <1128354937.06.0.539055121883.issue1349@infrae.com>
2005-10-03 16:55:37thisfredsetrecipients: + thisfred, jw, johnny, aaltepet, faassen
2005-10-03 16:55:37thisfredlinkissue1349 messages
2005-10-03 16:55:37thisfredcreate