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

I get this error when plone.demo.zwiki.org 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 /plone.demo.zwiki.org/wikipage used for /plone.demo.zwiki.org/FrontPage>
 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/global_defines.pt
  - Line 3, Column 0
  - Expression: standard:'plone_view/globalize'
  - Names:
     {'container': <PloneSite at /plone.demo.zwiki.org>,
      '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 ://plone.demo.zwiki.org/FrontPage>),
                  'body': '<p>Welcome to plone.demo.zwiki.org, 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 ://zwiki.org">http ://zwiki.org</a> and <a class="reference" href="http ://zwiki.org/PloneAndCMF">http ://zwiki.org/PloneAndCMF</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 ://plone.demo.zwiki.org/FrontPage/useroptions">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 ://zwiki.org/ZwikiTracker">http ://zwiki.org/ZwikiTracker</a></li>\n<li>editing of this <a href="http ://plone.demo.zwiki.org/FrontPage">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 ://zwiki.org/SandBox">http ://zwiki.org/SandBox</a> instead</li>\n<li>set your browser\'s preferred language to see this UI in other languages (<a class="reference" href="http ://launchpad.net/products/zwiki/+series/0.x/+translations">http://launchpad.net/products/zwiki/+series/0.x/+translations</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 ://plone.demo.zwiki.org/APage" name="APage">APage</a>\n<ul>\n   <li style="list-style:none" class="aqtree3clickable"><a href="http ://plone.demo.zwiki.org/YaselaleLalo" name="yaselale%20lalo">yaselale lalo</a>\n<ul>\n   <li style="list-style:none" class="aqtree3clickable"><a href="http ://plone.demo.zwiki.org/Fritech" name="fritech">fritech</a></li>\n</ul>\n   </li>\n</ul>\n  </li>\n  <li style="list-style:none" class="aqtree3clickable"><a href="http ://plone.demo.zwiki.org/Test2" name="test2">test2</a>\n<ul>\n  <li style="list-style:none" class="aqtree3clickable"><a href="http ://plone.demo.zwiki.org/Test3" name="test3">test3</a></li>\n  <li style="list-style:none" class="aqtree3clickable"><a href="http ://plone.demo.zwiki.org/Cuatro" name="cuatro">cuatro</a></li>\n</ul>\n  </li>\n <li style="list-style:none" class="aqtree3clickable"><a href="http ://plone.demo.zwiki.org/IHateTheNewZwikiViewLooksTerrible" 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 ://plone.demo.zwiki.org/DemoPage" name="DemoPage">DemoPage</a>\n<ul>\n  <li style="list-style:none" class="aqtree3clickable"><a href="http ://plone.demo.zwiki.org/DemoPageTwo" name="DemoPageTwo">DemoPageTwo</a></li>\n  <li style="list-style:none" class="aqtree3clickable"><a href="http ://plone.demo.zwiki.org/X_d0_9f_d1_80_d0_b8_d0_bc_d0_b5_d1_80_d1_81_d1_82_d1_80_d0_b0_d0_bd_d0_b8_d1_86_d1_8b" 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 ://plone.demo.zwiki.org/Testing" name="testing">testing</a></li>\n  <li style="list-style:none" class="aqtree3clickable"><a href="http://plone.demo.zwiki.org/HelpfulText" name="Helpful%20Text">Helpful Text</a>\n<ul>\n  <li style="list-style:none" class="aqtree3clickable"><a href="http ://plone.demo.zwiki.org/CamelCased" name="CamelCased">CamelCased</a></li>\n  <li style="list-style:none" class="aqtree3clickable"><a href="http ://plone.demo.zwiki.org/FreeFormLinks" name="free%20form%20links">free form links</a></li>\n</ul>\n  </li>\n <li style="list-style:none" class="aqtree3clickable"><a href="http ://plone.demo.zwiki.org/Testagain" name="testagain">testagain</a></li>\n <li style="list-style:none" class="aqtree3clickable"><a href="http ://plone.demo.zwiki.org/TTKK" name="TTKK">TTKK</a></li>\n <li style="list-style:none" class="aqtree3clickable"><a href="http ://plone.demo.zwiki.org/ThisAndThat" name="This%20and%20That">This and That</a></li>\n <li style="list-style:none" class="aqtree3clickable"><a href="http ://plone.demo.zwiki.org/MetaDataTabBroken" 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 ://plone.demo.zwiki.org/FrontPage?subject=test&amp;in_reply_to=%3C20060530152124-0700%40plone.demo.zwiki.org%3E#bottom">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 ://plone.demo.zwiki.org/FrontPage?subject=test&amp;in_reply_to=%3C20060530152152-0700%40plone.demo.zwiki.org%3E#bottom">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 ://plone.demo.zwiki.org/FrontPage?subject=test&amp;in_reply_to=%3C20060606030628-0700%40plone.demo.zwiki.org%3E#bottom">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 ://plone.demo.zwiki.org/FrontPage?subject=Test%20That&amp;in_reply_to=%3C20060710145212-0700%40plone.demo.zwiki.org%3E#bottom">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 ://plone.demo.zwiki.org/FrontPage>,
      'root': <Application at >,
      'template': <FSPageTemplate at /plone.demo.zwiki.org/wikipage used for /plone.demo.zwiki.org/FrontPage>,
      '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

global_defines.pt customised? --nd51, Mon, 14 Aug 2006 01:45:23 -0700 reply

It says the error comes from global_defines.pt, 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.