[#1451 a zwiki with folder id "revisions" or "archive" will break]
[email protected] (simon) Sun, 25 Oct 2009 10:21:49 -0700
| Newsgroups | gmane.comp.web.zope.zwiki |
|---|---|
| Message-ID | <20091025102144-0700__15863.8763045476$1256491332$gmane$org@zwiki.org> |
Now documented in Utils.py -> isSupportFolder. We should probably try to detect and warn about this. There are a lot of places to think about:
- when creating a wiki in zmi
- when renaming a wiki in zmi
- when pasting in zmi ?
- ditto in plone ui ?
- when rendering a page, if the problem is detectable ?
or better, if this failure mode can be relied on, in here::
Traceback (innermost last):
Module ZPublisher.Publish, line 119, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 42, in call_object
Module Products.ZWiki.ZWikiPage, line 241, in __call__
Module Products.ZWiki.ZWikiPage, line 253, in render
Module Products.ZWiki.plugins.pagetypes.stx, line 98, in render
Module Products.ZWiki.Views, line 435, in addSkinTo
Module Shared.DC.Scripts.Bindings, line 313, in __call__
Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
Module Products.PageTemplates.PageTemplateFile, line 129, in _exec
Module Products.PageTemplates.PageTemplate, line 89, in pt_render
Module zope.pagetemplate.pagetemplate, line 117, in pt_render
Module zope.tal.talinterpreter, line 271, in __call__
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 891, in do_useMacro
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 536, in do_optTag_tal
Module zope.tal.talinterpreter, line 521, in do_optTag
Module zope.tal.talinterpreter, line 516, in no_tag
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 949, in do_defineSlot
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 891, in do_useMacro
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 855, in do_condition
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 536, in do_optTag_tal
Module zope.tal.talinterpreter, line 521, in do_optTag
Module zope.tal.talinterpreter, line 516, in no_tag
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 745, in do_insertStructure_tal
Module Products.PageTemplates.Expressions, line 221, in evaluateStructure
Module zope.tales.tales, line 696, in evaluate
- URL: pageheader
- Line 62, Column 18
- Expression: <PythonExpr here.talsafe(here.linkTitle(prettyprint=1))>
- Names:
{'container': <Folder at /archive>,
'context': <ZWikiPage 'FrontPage' at 0x2ad4230>,
'default': <object object at 0x43528>,
'here': <ZWikiPage 'FrontPage' at 0x2ad4230>,
'loop': {},
'nothing': None,
'options': {'args': (<ZWikiPage 'FrontPage' at 0x2ad4230>,
<HTTPRequest, URL=http://localhost:8180/archive/FrontPage>),
'body': u'<p><strong>Welcome!</strong> </p>\n<p>This is the front page of <a href="http://localhost:8180/archive/ZWiki">ZWiki</a>\'s "basic" wiki template, a s$
'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x2abb418>,
'request': <HTTPRequest, URL=http://localhost:8180/archive/FrontPage>,
'root': <Application at >,
'template': <PageTemplateFile at /archive/wikipage used for /archive/FrontPage>,
'user': <SpecialUser 'Anonymous User'>}
'user': <SpecialUser 'Anonymous User'>}
Module Products.PageTemplates.ZRPythonExpr, line 49, in __call__
- __traceback_info__: here.talsafe(here.linkTitle(prettyprint=1))
Module PythonExpr, line 1, in <expression>
Module Products.ZWiki.ZWikiPage, line 910, in linkTitle
Module Products.ZWiki.ZWikiPage, line 928, in linkTitleFrom
Module Products.ZWiki.History, line 214, in lastlog
Module Products.ZWiki.History, line 206, in forwardRev
Module Products.ZWiki.History, line 85, in revisionCount
Module Products.ZWiki.History, line 62, in revisions
Module Products.ZWiki.History, line 65, in latestRevision
Module OFS.ObjectManager, line 751, in __getitem__
KeyError: 'FrontPage'
--
forwarded from http://zwiki.org/1451AZwikiWithFolderIdRevisionsOrArchiveWillBreak#[email protected]