[#1413] Additional Debug Info
[email protected] (Warren H. Holt)
| Newsgroups | gmane.comp.web.zope.zwiki |
|---|---|
| Message-ID | <20080606110917-0700__37499.2460049272$1212775896$gmane$org@zwiki.org> |
<br>
<b>*******</b>
This is the source of a page that worked properly - like after an upgradeAll
<pre>
<!-- page name (and parents) -->
<td class="pagenameand" align="left" width="79%">
<small><ul class="aqtree3clickable">
<li><a href="http://10.70.16.41:8080/whhwk/WarrensWorkZWikiSite" name="Warren%27s%20Work%20ZWiki%20Site">Warren's Work ZWiki Site</a>
<ul>
<li><big><big><big><big><strong><a href="http://10.70.16.41:8080/whhwk/FunnyStuff/backlinks" title="which pages link to this one ?" name="Funny Stuff">Funny Stuff</a></strong></big></big></big></big></li>
</ul>
</li>
</ul>
</small>
</pre>
<b>*******</b>
This is the source of a page that was not working properly - caused by a rename
<pre>
<!-- page name (and parents) -->
<td class="pagenameand" align="left" width="79%">
<small><ul class="aqtree3clickable">
<li><big><big><big><big><strong><a href="http://10.70.16.41:8080/whhwk_a/FunnyStuff/backlinks" title="which pages link to this one ?" name="Funny Stuff">Funny Stuff</a></strong></big></big></big></big> ...
</li>
</ul>
</small>
</pre>
<b>*******</b>
What I noticed... <br>
The function 'context' in !OutlineSupport.py is responsible for the above <br>
I noticed the second source snippit was ending with ' ...' (space and three dots)<br>
The code responsible for this is in 'renderNesting'. <br>
Here is a snippet from 'renderNesting'...
<pre>
for n in nesting:
if type(n) == ListType:
if not (n[0]==here and suppress_current): #XXX temp
got.append('%s <li>%s' % (indent,renderContentsLink(n[0])))
if len(n) > 1:
if not (n[0]==here and suppress_current): #XXX temp
got.append('<ul>')
for i in n[1:]:
if type(i) == ListType:
got = self.renderNesting(
[i],
here=here,
enlarge_current=enlarge_current,
suppress_hyperlink=suppress_hyperlink,
suppress_current=suppress_current,
did=did,
got=got,
indent=indent+' ')
else:
got.append('%s <li>%s</li>' % (indent,renderContentsLink(i)))
if not (n[0]==here and suppress_current): #XXX temp
got.append("</ul>")
else:
got[-1] += ' ...' # a parent whose children were omitted
if not (n[0]==here and suppress_current):
got.append('%s </li>' % indent)
else:
got.append('%s <li>%s</li>' % (indent,renderContentsLink(n)))
</pre>
<big><b>So...</b></big><br>
The type passes the !ListType test but has a length equal to 1 <br>
This suggests there is a single character put into the list by a rename (or other action) <br>
<br>
--
forwarded from http://zwiki.org/1413ZwikiOrgContentsHaveDisappearedAgain#[email protected]