Eg [Chapter 06 Plone and CMF]?, FreeformLinks. /updateWikiOutline hasn't helped.
Traceback:
* Module ZPublisher.Publish, line 163, in publish_module_standard * Module Products.PlacelessTranslationService.PatchStringIO, line 45, in new_publish * Module ZPublisher.Publish, line 127, in publish * Module Zope.App.startup, line 203, in zpublisher_exception_hook * Module ZPublisher.Publish, line 100, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 40, in call_object * Module Products.ZWiki.ZWikiPage, line 241, in __call__ * Module Products.ZWiki.ZWikiPage, line 254, in render * Module Products.ZWiki.PageTypes, line 273, in render * Module Products.ZWiki.UI, line 210, in addSkinTo * Module Shared.DC.Scripts.Bindings, line 306, in __call__ * Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec * Module Products.PageTemplates.ZopePageTemplate, line 222, in _exec * Module Products.PageTemplates.PageTemplate, line 96, in pt_render <ZopePageTemplate at /zwikib/wikipage used for /zwikib/WikiMail> * Module TAL.TALInterpreter, line 189, in __call__ * Module TAL.TALInterpreter, line 233, in interpret * Module TAL.TALInterpreter, line 629, in do_condition * Module TAL.TALInterpreter, line 233, in interpret * Module TAL.TALInterpreter, line 629, in do_condition * Module TAL.TALInterpreter, line 233, in interpret * Module TAL.TALInterpreter, line 663, in do_useMacro * Module TAL.TALInterpreter, line 233, in interpret * Module TAL.TALInterpreter, line 406, in do_optTag_tal * Module TAL.TALInterpreter, line 388, in no_tag * Module TAL.TALInterpreter, line 233, in interpret * Module TAL.TALInterpreter, line 561, in do_insertStructure_tal * Module Products.PageTemplates.TALES, line 220, in evaluate URL: /zwikib/wikipage_macros Line 216, Column 0 Expression: <PythonExpr here.context(request,enlarge_current=1)> Names: ...etc. * Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__ __traceback_info__: here.context(request,enlarge_current=1) * Module Python expression "here.context(request,enlarge_current=1)", line 1, in <expression> * Module Products.ZWiki.OutlineSupport, line 527, in context * Module Products.ZWiki.OutlineSupport, line 361, in ancestorsNesting * Module Products.ZWiki.Outline, line 139, in ancestors * Module Products.ZWiki.Outline, line 220, in parents KeyError
Without figuring out how this can happen I made these two more robust:
def parents(self,node): """ Return a nesting/list representing node's immediate parents. """ return self.parentmap().get(node,[])[:] def firstParent(self,node): """ Return the first parent of node, if any. """ parents = self.parentmap().get(node,None) if parents: return parents[0] else: return None
which at least allows the page to render. Unfortunately it seems to damage the hierarchy also - see UsersGuide or the contents - where are the subtopics ?
Because of my tricky use of space in UsersGuide page name to tweak subtopic ordering. I knew it would bite me in the ass!
fixed for 0.30 --simon, Thu, 22 Apr 2004 18:24:38 -0700 reply
Status: open => closed