Silva Issue Tracker Archive: Issue1349

 This tracker has been migrated to Launchpad. Please post new messages at: https://bugs.launchpad.net/silva.
Title can't place headings inside list items in kupu
Priority bug Status deferred
Superseder (list) Nosy List aaltepet, faassen, johnny, jw, thisfred (list)
Assigned To Topics Silva-1.6, Silva-midterm (list)

Created on 2005-07-07.18:55:24 by aaltepet, last changed 2007-01-19.07:45:39 by kitblake.

Messages
msg8348 (view) Author: faassen Date: 2006-02-01.10:38:54
Review isn't going to happen, so deferring this. May be Silva 1.6 or later.
msg8244 (view) Author: faassen Date: 2006-01-24.17:05:36
Needs a review from Guido.
msg8125 (view) Author: faassen Date: 2006-01-18.13:24:26
Deferring this one for at least the beta.
msg7805 (view) Author: thisfred Date: 2005-10-03.17:14:20
please not that I do not think the error is in the code below, but I can't seem
to get beyond it... This will have to be deferred unless I get help or an epiphany.
msg7804 (view) Author: thisfred Date: 2005-10-03.16:55:36
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.
msg7724 (view) Author: johnny Date: 2005-09-08.11:20:16
Moving to 1.4, not enough time to solve this before the 1.3 release.
msg7667 (view) Author: johnny Date: 2005-09-05.17:32:44
I can confirm this, and fear that I won't have time to fix this before Silva
1.3, although I'd rather like to. I've spent half an hour investigating this
problem, and it seems like I'm going to have to pick up pdb to get more answers,
that's when I decided to stop for now (last time I spent pdb'ing through those
transformations took me a whole day, which I currently can not afford to spend).

Will keep it open for now, defer it just before the release (unless a miracle
happens and I find time to fix it in time) and will continue investigation after
1.3 final.
msg7555 (view) Author: aaltepet Date: 2005-07-07.18:55:24
We've just uncovered a bug in silva-1.1.1 and above.  Here's how to  
reproduce: 
 
create a new document.  In kupu, type some text, turn it into a list (ordered  
or unordered, doesn't matter), and change the text's style to 'sub' (actually, any heading will do).  
If you  
try to save, you'll get a javascript alert: 'response status 500'.  The error  
log has this traceback: 
 
Traceback (innermost last): 
  Module ZPublisher.Publish, line 101, in publish 
  Module ZPublisher.mapply, line 88, in mapply 
  Module ZPublisher.Publish, line 39, in call_object 
  Module Products.SilvaDocument.Document, line 258, in PUT 
  Module Products.SilvaDocument.Document, line 169, in editor_storage 
  Module UserList, line 28, in __getitem__ 
IndexError: list index out of range
History
Date User Action Args
2007-01-19 07:45:39kitblakesetstatus: unread -> deferred
2006-09-04 11:51:10faassensetstatus: deferred -> unread
topic: + Silva-1.6, - Kupu, Silva-1.5
assignedto: johnny ->
2006-02-01 10:39:05faassensetstatus: chatting -> deferred
2006-02-01 10:38:55faassensettopic: + Silva-midterm
messages: + msg8348
2006-01-24 17:05:37faassensetstatus: deferred -> chatting
messages: + msg8244
2006-01-18 13:24:26faassensetstatus: chatting -> deferred
messages: + msg8125
2006-01-17 15:49:54faassensetassignedto: thisfred -> johnny
2006-01-11 20:16:48faassensetassignedto: thisfred
2005-11-04 18:53:44thisfredsettopic: + Silva-1.5, - Silva-1.4
2005-10-03 17:14:21thisfredsetmessages: + msg7805
2005-10-03 16:55:37thisfredsetnosy: + jw, faassen, thisfred
messages: + msg7804
2005-09-08 11:20:17johnnysettopic: + Silva-1.4, - Silva-1.2, Silva-1.3
messages: + msg7724
2005-09-05 17:32:44johnnysetstatus: unread -> chatting
nosy: + johnny
messages: + msg7667
2005-07-07 18:55:25aaltepetcreate