Submitted by : simon at: 2006-08-13T15:28:52+00:00 (14 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

I get this error when runs plone 2.5/svn, and not when it's running 2.1.:

 Module ZPublisher.Publish, line 115, in publish
 Module ZPublisher.mapply, line 88, in mapply
 Module ZPublisher.Publish, line 41, in call_object
 Module Products.ZWiki.ZWikiPage, line 251, in __call__
 Module Products.ZWiki.ZWikiPage, line 264, in render
 Module Products.ZWiki.pagetypes.rst, line 60, in render
 Module Products.ZWiki.Views, line 698, in addSkinTo
 Module Shared.DC.Scripts.Bindings, line 311, in __call__
 Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
 Module Products.CMFCore.FSPageTemplate, line 195, in _exec
 Module Products.CacheSetup.patch_cmf, line 18, in FSPT_pt_render
 Module Products.CacheSetup.patch_utils, line 9, in call_pattern
 Module Products.CMFCore.FSPageTemplate, line 134, in pt_render
 Module Products.CacheSetup.patch_cmf, line 56, in PT_pt_render
 Module Products.CacheSetup.patch_utils, line 9, in call_pattern
 Module Products.PageTemplates.PageTemplate, line 104, in pt_render
  - <FSPageTemplate at / used for />
 Module TAL.TALInterpreter, line 238, in __call__
 Module TAL.TALInterpreter, line 281, in interpret
 Module TAL.TALInterpreter, line 749, in do_useMacro
 Module TAL.TALInterpreter, line 281, in interpret
 Module TAL.TALInterpreter, line 457, in do_optTag_tal
 Module TAL.TALInterpreter, line 442, in do_optTag
 Module TAL.TALInterpreter, line 437, in no_tag
 Module TAL.TALInterpreter, line 281, in interpret
 Module TAL.TALInterpreter, line 749, in do_useMacro
 Module TAL.TALInterpreter, line 281, in interpret
 Module TAL.TALInterpreter, line 507, in do_setLocal_tal
 Module Products.PageTemplates.TALES, line 221, in evaluate
  - URL: file:CMFPlone/skins/plone_templates/
  - Line 3, Column 0
  - Expression: standard:'plone_view/globalize'
  - Names:
     {'container': <PloneSite at />,
      'context': <ZWikiPage 'FrontPage' at 0x42bb90cc>,
      'default': <Products.PageTemplates.TALES.Default instance at 0x40d31b4c>,
      'here': <ZWikiPage 'FrontPage' at 0x42bb90cc>,
      'loop': <Products.PageTemplates.TALES.SafeMapping object at 0x4409232c>,
      'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x40d5c76c>,
      'nothing': None,
      'options': {'args': (<ZWikiPage 'FrontPage' at 0x42bb90cc>,
                           <HTTPRequest, URL=http ://>),
                  'body': '<p>Welcome to, a test/sandbox/demo site for Zwiki\'s Plone support. This is a Plone 2.1 site with sidebars disabled, latest Zwiki installed and a zwiki in the root folder.</p>\n<div class="section" id="tips">\n<h2><a name="tips">Tips:</a></h2>\n<ul class="simple">\n<li>see <a class="reference" href="http ://">http ://</a> and <a class="reference" href="http ://">http ://</a> for all docs, downloads, and support</li>\n<li>try both the plonish and standard zwiki skins, using the - and + access keys (Alt-minus, Alt-plus in firefox)</li>\n<li>there are three ways to create pages: the traditional wiki way of clicking ?, the zwiki way of using the page management form at the bottom, and the plone way of clicking &quot;add wiki page&quot;. If you use the latter, set the page name to something more meaningful.</li>\n<li>mouse over things to get helpful tooltips</li>\n<li>rate pages by clicking the stars (or the space to the left). Set a username in <a class="reference" href="http ://">options</a> first so that your votes will be remembered.</li>\n<li>click &quot;wiki contents&quot; to see all pages currently in the wiki</li>\n<li>click &quot;issue tracker&quot; to see the wiki\'s built-in issue tracker, explained at <a class="reference" href="http ://">http ://</a></li>\n<li>editing of this <a href="http ://">FrontPage</a> has been restricted; try editing other pages</li>\n<li>to make any edits, you\'ll need to set a username in the <a class="reference" href="FrontPage/useroptions">wiki options</a> first (anti-spam feature)</li>\n<li>deleting of pages and upload of files and images has been restricted, try <a class="reference" href="http ://">http ://</a> instead</li>\n<li>set your browser\'s preferred language to see this UI in other languages (<a class="reference" href="http ://"></a>)</li>\n</ul>\n<p>\n<a name="subtopics"><br /></a>\n<p>\n<table class="subtopicspanel">\n  <tr>\n    <td>\n      <b>subtopics:</b>\n      <ul style="list-style:none; margin-left:0;" class="aqtree3clickable">\n  <li style="list-style:none" class="aqtree3clickable"><a href="http ://" name="APage">APage</a>\n<ul>\n   <li style="list-style:none" class="aqtree3clickable"><a href="http ://" name="yaselale%20lalo">yaselale lalo</a>\n<ul>\n   <li style="list-style:none" class="aqtree3clickable"><a href="http ://" name="fritech">fritech</a></li>\n</ul>\n   </li>\n</ul>\n  </li>\n  <li style="list-style:none" class="aqtree3clickable"><a href="http ://" name="test2">test2</a>\n<ul>\n  <li style="list-style:none" class="aqtree3clickable"><a href="http ://" name="test3">test3</a></li>\n  <li style="list-style:none" class="aqtree3clickable"><a href="http ://" name="cuatro">cuatro</a></li>\n</ul>\n  </li>\n <li style="list-style:none" class="aqtree3clickable"><a href="http ://" name="i%20hate%20the%20new%20zwiki%20view%20looks%20terrible">i hate the new zwiki view looks terrible</a></li>\n  <li style="list-style:none" class="aqtree3clickable"><a href="http ://" name="DemoPage">DemoPage</a>\n<ul>\n  <li style="list-style:none" class="aqtree3clickable"><a href="http ://" name="DemoPageTwo">DemoPageTwo</a></li>\n  <li style="list-style:none" class="aqtree3clickable"><a href="http ://" name="%D0%9F%D1%80%D0%B8%D0%BC%D0%B5%D1%80%20%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D1%8B">\xd0\x9f\xd1\x80\xd0\xb8\xd0\xbc\xd0\xb5\xd1\x80 \xd1\x81\xd1\x82\xd1\x80\xd0\xb0\xd0\xbd\xd0\xb8\xd1\x86\xd1\x8b</a></li>\n</ul>\n  </li>\n <li style="list-style:none" class="aqtree3clickable"><a href="http ://" name="testing">testing</a></li>\n  <li style="list-style:none" class="aqtree3clickable"><a href="" name="Helpful%20Text">Helpful Text</a>\n<ul>\n  <li style="list-style:none" class="aqtree3clickable"><a href="http ://" name="CamelCased">CamelCased</a></li>\n  <li style="list-style:none" class="aqtree3clickable"><a href="http ://" name="free%20form%20links">free form links</a></li>\n</ul>\n  </li>\n <li style="list-style:none" class="aqtree3clickable"><a href="http ://" name="testagain">testagain</a></li>\n <li style="list-style:none" class="aqtree3clickable"><a href="http ://" name="TTKK">TTKK</a></li>\n <li style="list-style:none" class="aqtree3clickable"><a href="http ://" name="This%20and%20That">This and That</a></li>\n <li style="list-style:none" class="aqtree3clickable"><a href="http ://" name="MetaData%20tab%20broken">MetaData tab broken</a></li>\n</ul>\n    </td>\n  </tr>\n</table>\n</p>\n<p class="commentheading"><strong>test</strong> --tomcat, Tue, 30 May 2006 15:21:24 -0700 <a class="reference" href="http ://;">reply</a></p>\n<p class="commentbody">\xc4\x9b\xc5\xa1\xc4\x8d\xc5\x99\xc5\xbe\xc3\xbd\xc3\xa1\xc3\xad\xc3\xa9</p>\n<p class="commentheading"><strong>test</strong> --tomcat, Tue, 30 May 2006 15:21:52 -0700 <a class="reference" href="http ://;">reply</a></p>\n<p class="commentbody">reply to \xc3\xa9\xc3\xad\xc3\xa1\xc3\xbd\xc5\xbe\xc5\x99\xc4\x8d\xc5\xa1\xc4\x9b</p>\n<p class="commentheading"><strong>test</strong> --aaade, Tue, 06 Jun 2006 03:06:28 -0700 <a class="reference" href="http ://;">reply</a></p>\n<p class="commentbody">\xe3\x81\x82\xe3\x81\x84\xe3\x81\x86</p>\n<p class="commentheading"><strong>Test That</strong> --ttesterton, Mon, 10 Jul 2006 14:52:12 -0700 <a class="reference" href="http ://;">reply</a></p>\n<p class="commentbody">This is another test</p>\n</div>\n'},
      'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0x4409232c>,
      'request': <HTTPRequest, URL=http ://>,
      'root': <Application at >,
      'template': <FSPageTemplate at / used for />,
      'traverse_subpath': [],
      'user': <User 'simon'>}
 Module Products.PageTemplates.Expressions, line 185, in __call__
 Module Products.PageTemplates.Expressions, line 180, in _eval
 Module Products.PageTemplates.Expressions, line 85, in render
 Module Products.CMFPlone.browser.plone, line 66, in globalize
 Module Products.CMFPlone.browser.plone, line 118, in _initializeData
 Module Products.CMFPlone.ActionsTool, line 46, in listFilteredActionsFor
 Module Products.CMFPlone.ActionsTool, line 34, in _getActions
 Module Products.CMFCore.ActionProviderBase, line 107, in listActionInfos
 Module Products.CMFCore.ActionInformation, line 87, in __getitem__
 Module Products.CMFCore.ActionInformation, line 116, in _checkCondition
 Module Products.CMFCore.ActionInformation, line 236, in testCondition
 Module Products.CMFCore.Expression, line 44, in __call__
 Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
  - __traceback_info__: portal.portal_membership.checkPermission("Delete objects", object.aq_inner.getParentNode()) and portal.portal_membership.checkPermission("Copy or Move", object) and object is not portal and not (object.isDefaultPageInFolder() and object.getParentNode() is portal)
 Module Python expression "portal.portal_membership.checkPermission("Delete objects", object.aq_inner.getParentNode()) and portal.portal_membership.checkPermission("Copy or Move", object) and object is not portal and not (object.isDefaultPageInFolder() and object.getParentNode() is portal)", line 1, in <expression>
AttributeError: isDefaultPageInFolder customised? --nd51, Mon, 14 Aug 2006 01:45:23 -0700 reply

It says the error comes from, so, did you for some reason customise global_defines in the 2.1 version, and now need to re-apply those customisations to the 2.5 version?

fixed for 0.56 --simon, Sat, 02 Sep 2006 11:32:10 -0700 reply

Name: '#1283 viewing pages gives an error in some plone 2.5 sites ?' => '#1283 AttributeError?: isDefaultPageInFolder when viewing pages in plone 2.5.x' Status: open => closed

I've added this method, which 2.5 or possibly 2.5.1-svn calls to decide whether to show the cut/copy/paste/rename actions. This means these actions won't appear on the front page of a wiki.