Submitted by : 127.0.0.1 at: 2004-09-21T20:37:03+00:00 (13 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

I wish to set default page of Plone (v2.0.4 with Zope 2.7.2) as news. So I add one item on properties tab of plone directory under ZMI:

 - Under ZMI

 - Select Properties tab

 - Add new item with 

   - Name field: default_page 

   - Value field: news 

   - Type field: lines  

That's really set default page as news but cause ZWiki fail with below error:

  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.ZWiki.ZWikiPage, line 237, in __call__
    Module Products.ZWiki.ZWikiPage, line 245, in render
    Module Products.ZWiki.pagetypes.stx, line 95, in render
    Module Products.ZWiki.UI, line 209, in addSkinTo
    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 /linux/wikipage used for /linux/Documentation/FrontPage>
    Module TAL.TALInterpreter, line 189, in __call__
    Module TAL.TALInterpreter, line 233, in interpret
    Module TAL.TALInterpreter, line 670, 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 670, in do_useMacro
    Module TAL.TALInterpreter, line 233, in interpret
    Module TAL.TALInterpreter, line 463, in do_setGlobal_tal
    Module Products.PageTemplates.TALES, line 221, in evaluate
     - Line 3, Column 0
     - Expression: <PythonExpr portal.portal_actions.listFilteredActionsFor(here)>
     - Names:
        {'container': <PloneSite instance at b6258080>,
         'context': <ZWikiPage at /linux/Documentation/FrontPage>,
         'default': <Products.PageTemplates.TALES.Default instance at 0xb6d36fec>,
         'here': <ZWikiPage at /linux/Documentation/FrontPage>,
         'loop': <SafeMapping instance at b5df3fe0>,
         'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0xb6d3d2ec>,
         'nothing': None,
         'options': {'args': (<ZWikiPage at /linux/Documentation/FrontPage>,
                              <HTTPRequest, URL=http://192.168.1.220:9080/linux/Documentation/FrontPage>),
                     'body': '\n<ul>\n<li><a href="Environment">眸b7\xa8蜸ad\xaf眸92\xb0?a2\x83蜸a8\xad?ae\x9a</a></li>\n<li><a href="MyNoteBooks">My Note Book</a></li>\n<li><a href="FAQ">FAQ</a></li>\n\n</ul>\n<p></p>\n'},
         'repeat': <SafeMapping instance at b5df3fe0>,
         'request': <HTTPRequest, URL=http://192.168.1.220:9080/linux/Documentation/FrontPage>,
         'root': <Application instance at b62af350>,
         'template': <FSPageTemplate at /linux/wikipage used for /linux/Documentation/FrontPage>,
         'traverse_subpath': [],
         'user': admin}
    Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
     - __traceback_info__: portal.portal_actions.listFilteredActionsFor(here)
    Module Python expression "portal.portal_actions.listFilteredActionsFor(here)", line 1, in <expression>
    Module Products.CMFPlone.ActionsTool, line 68, in listFilteredActionsFor
    Module Products.CMFCore.ActionsTool, line 253, in _listActions
    Module Products.CMFCore.ActionInformation, line 106, in getAction
     - __traceback_info__: ('recentchanges', 'Wiki changes', 'python:object.changesUrl()')
    Module Products.CMFCore.Expression, line 44, in __call__
    Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
     - __traceback_info__: object.changesUrl()
    Module Python expression "object.changesUrl()", line 1, in <expression>
    Module Products.ZWiki.Utils, line 338, in changesUrl
    Module Products.ZWiki.Utils, line 293, in urlForDtmlPageOrMethod
    Module Products.ZWiki.ZWikiPage, line 967, in defaultPage
    Module Products.ZWiki.ZWikiPage, line 1039, in pageWithName
    Module Products.ZWiki.ZWikiPage, line 756, in canonicalIdFrom
    Module sre, line 143, in sub
  TypeError: expected string or buffer


comments:

property change --simon, Mon, 25 Oct 2004 23:14:44 -0700 reply
Name: #914 TypeError: expected string or buffer => #914 TypeError: expected string or buffer when setting plone default page

... --simon, Sun, 31 Oct 2004 16:43:15 -0800 reply
Are you sure it's related ? Can you view any wiki page in that folder ?

still open ? --simon, Sun, 28 Nov 2004 02:11:18 -0800 reply
More information needed here.. is it still unresolved, can you view other wiki pages in the folder, can you post a demo url or come on #zwiki ?

I see it, fixed for 0.38 --simon, Sat, 29 Jan 2005 16:28:06 -0800 reply
Status: open => closed