Submitted by : simon at: 2004-02-18T16:50:39+00:00 (13 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

Marc reports:

Bug: If no page "FrontPage" exists in the current wiki, there are error messages related to defaultPage not working properly. See below for a Traceback.:

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 238, in __call__
Module Products.ZWiki.CMF, line 123, in __call__
Module Shared.DC.Scripts.Bindings, line 306, in __call__
Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
Module Products.CMFCore.FSPageTemplate, line 191, in _exec
Module Products.CMFCore.FSPageTemplate, line 124, in pt_render
Module Products.PageTemplates.PageTemplate, line 96, in pt_render
 - <FSPageTemplate at /Humaine/wikipage_view used for /Humaine/wiki/KnowHowMeltingPot>
Module TAL.TALInterpreter, line 189, in __call__
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 408, in do_optTag_tal
Module TAL.TALInterpreter, line 393, in do_optTag
Module TAL.TALInterpreter, line 388, in no_tag
Module TAL.TALInterpreter, line 233, in interpret
Module TAL.TALInterpreter, line 686, in do_defineSlot
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 290, in do_startTag
Module TAL.TALInterpreter, line 356, in attrAction_tal
Module Products.PageTemplates.TALES, line 226, in evaluateText
Module Products.PageTemplates.TALES, line 220, in evaluate
 - URL: wikipage_macros
 - Line 66, Column 0
 - Expression: standard:'here/changesUrl'
 - Names:
    {'container': <PloneSite instance at 4133a680>,
     'context': <ZWikiPage at /Humaine/wiki/KnowHowMeltingPot>,
     'default': <Products.PageTemplates.TALES.Default instance at 0x40a058ec>,
     'here': <ZWikiPage at /Humaine/wiki/KnowHowMeltingPot>,
     'loop': <SafeMapping instance at 4259fa00>,
     'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x409ffdac>,
     'nothing': None,
     'options': {'REQUEST': <HTTPRequest, URL=http://<myserver>/Humaine/wiki/KnowHowMeltingPot>,
                 'RESPONSE': ZServerHTTPResponse(''),
                 'args': (<ZWikiPage at /Humaine/wiki/KnowHowMeltingPot>,)},
     'repeat': <SafeMapping instance at 4259fa00>,
     'request': <HTTPRequest, URL=http://<myserver>/Humaine/wiki/KnowHowMeltingPot>,
     'root': <Application instance at 4133a1a0>,
     'template': <FSPageTemplate at /Humaine/wikipage_view used for /Humaine/wiki/KnowHowMeltingPot>,
     'traverse_subpath': [],
     'user': MarcSchroeder}
Module Products.PageTemplates.Expressions, line 201, in __call__
Module Products.PageTemplates.Expressions, line 196, in _eval
Module Products.PageTemplates.Expressions, line 103, in render
Module Products.ZWiki.Utils, line 286, in changesUrl
Module Products.ZWiki.Utils, line 241, in urlForDtmlPageOrMethod
Module Products.ZWiki.ZWikiPage, line 882, in defaultPage
Module Products.ZCatalog.Lazy, line 41, in __add__
TypeError: Can not concatenate objects. Both must be lazy sequences.

can't reproduce --SimonMichael, Thu, 19 Feb 2004 18:05:27 -0800 reply

Marc - I just deleted the FrontPage at plone.zwiki.org but couldn't make it do this.

You don't have a 'default_page' property on your folder, right ?

If you visit SOMEPAGEURL/setupCatalog, does it make the problem go away ?

Ideas, anyone ?

property change --simon, Fri, 27 Feb 2004 13:51:12 -0800 reply

Title: 'IssueNo0713? defaultPage TypeError? when there is no FrontPage' => 'IssueNo0713? TypeError? "must be lazy sequences" when there is no FrontPage'

only known workaround --Thu, 04 Mar 2004 07:28:51 -0800 reply

I confirm that a newly created Wiki does not have the problem; the one I created with ZWiki 0.25 or 0.26 does. I do not have a default_page property set. Visiting .../setupCatalog does not change anything.

But copying any wiki page and renaming it to FrontPage makes the problem go away.

Hmpf...

Marc.

yes - --simon, Sat, 13 Mar 2004 00:53:09 -0800 reply

pageObjects may be a LazyMap? here, with a btree folder or large plone folder. So that line should be:

or (list(self.pageObjects())+[None])[0]) # pageObjects may be a LazyMap

Will check in to cvs later. Thanks!

property change --simon, Sat, 13 Mar 2004 00:53:31 -0800 reply

Status: open => closed