problem with checkPermission or viewThreadsAtBottom?
Is there something going on with checkPermission or viewThreadsAtBottom that changed from either zope 2.6.2 to 2.7.0 or from plone from 2.0RC5 to 2.0RC6? Someone sent me this error traceback. The product works under zope 2.6.2, cmf 1.4.2, plone 2.0rc5. When I try to add a new CMFAudio object to 'My Folder', it returns the following error: Traceback (innermost last): Module ZPublisher.Publish, line 100, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 40, in call_object Module Products.CMFCore.FSDTMLMethod, line 141, in __call__ Module DocumentTemplate.DT_String, line 474, in __call__ Module Shared.DC.Scripts.Bindings, line 320, in __render_with_namespace__ 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 /test/viewThreadsAtBottom used for /test/Members/admin/Audio.2004-03-04.3710375980> Module TAL.TALInterpreter, line 189, in __call__ Module TAL.TALInterpreter, line 233, in interpret Module TAL.TALInterpreter, line 642, in do_defineMacro Module TAL.TALInterpreter, line 233, in interpret Module TAL.TALInterpreter, line 459, in do_setLocal_tal Module Products.PageTemplates.TALES, line 220, in evaluate - Line 6, Column 0 - Expression: <PythonExpr checkPermission('Reply to item', here)> - Names: {'container': <PloneSite instance at 9986830>, 'context': <CMFAudio at /test/Members/admin/Audio.2004-03-04.3710375980>, 'default': <Products.PageTemplates.TALES.Default instance at 0x8a2c9cc>, 'here': <CMFAudio at /test/Members/admin/Audio.2004-03-04.3710375980>, 'loop': <SafeMapping instance at acb70f0>, 'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x8a25e8c>, 'nothing': None, 'options': {'args': ()}, 'repeat': <SafeMapping instance at acb70f0>, 'request': <HTTPRequest, URL=http://216.93.188.205:8080/test/Members/admin/Audio.2004-03- 04.3710375980/audioView>, 'root': <Application instance at 99493b0>, 'template': <FSPageTemplate at /test/viewThreadsAtBottom used for /test/Members/admin/Audio.2004-03-04.3710375980>, 'traverse_subpath': [], 'user': admin} Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__ - __traceback_info__: checkPermission('Reply to item', here) Module Python expression "checkPermission('Reply to item', here)", line 1, in <expression> NameError: name 'checkPermission' is not defined
Marc Lindahl wrote at 2004-3-4 21:58 -0500:
Is there something going on with checkPermission or viewThreadsAtBottom that changed from either zope 2.6.2 to 2.7.0 or from plone from 2.0RC5 to 2.0RC6? ... - Expression: <PythonExpr checkPermission('Reply to item', here)> ... Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__ - __traceback_info__: checkPermission('Reply to item', here) Module Python expression "checkPermission('Reply to item', here)", line 1, in <expression> NameError: name 'checkPermission' is not defined
Looks like a template bug... -- Dieter
On Thu, 4 Mar 2004 21:58:44 -0500, Marc Lindahl <marc@bowery.com> wrote:
Is there something going on with checkPermission or viewThreadsAtBottom that changed from either zope 2.6.2 to 2.7.0 or from plone from 2.0RC5 to 2.0RC6?
I believe some old files not used by the Plone (from the CMF) were removed. Maybe your product is depending on those? Check the plone.cvs newsgroup on Gmane for exact details. -- __________________________________________________________________ Alexander Limi · Interaction Architect · Plone Solutions Development · Training · Support · http://www.plonesolutions.com __________________________________________________________________ Plone Co-Founder · http://plone.org · Connecting Content
On Friday, March 5, 2004, at 04:54 PM, Alexander Limi wrote:
On Thu, 4 Mar 2004 21:58:44 -0500, Marc Lindahl <marc@bowery.com> wrote:
Is there something going on with checkPermission or viewThreadsAtBottom that changed from either zope 2.6.2 to 2.7.0 or from plone from 2.0RC5 to 2.0RC6?
I believe some old files not used by the Plone (from the CMF) were removed. Maybe your product is depending on those?
Only one, which I now included in the release - content_byline.pt Also found out the user is running CMF 1.4.3RC1. This product works with zope 2.6.2, cmf1.4.2, plone 2.0RC5, so it's a recent change in one of the three packages...
Check the plone.cvs newsgroup on Gmane for exact details.
Uh, yeah.... about 165 matches for checkPermission - doesn't anyone remember what they did?!?
On Fri, 5 Mar 2004 17:37:05 -0500, Marc Lindahl <marc@bowery.com> wrote:
On Friday, March 5, 2004, at 04:54 PM, Alexander Limi wrote:
On Thu, 4 Mar 2004 21:58:44 -0500, Marc Lindahl <marc@bowery.com> wrote:
Is there something going on with checkPermission or viewThreadsAtBottom that changed from either zope 2.6.2 to 2.7.0 or from plone from 2.0RC5 to 2.0RC6?
I believe some old files not used by the Plone (from the CMF) were removed. Maybe your product is depending on those?
Only one, which I now included in the release - content_byline.pt
No, there was setup_talkback_tree etc, which we are not using anymore.
Also found out the user is running CMF 1.4.3RC1.
Plone is untested with 1.4.3rc1 at this point, afaik. What's the rationale behind the extreme cross-posting of this mail? :) -- __________________________________________________________________ Alexander Limi · Interaction Architect · Plone Solutions Development · Training · Support · http://www.plonesolutions.com __________________________________________________________________ Plone Co-Founder · http://plone.org · Connecting Content
On Saturday, March 6, 2004, at 10:43 AM, Alexander Limi wrote:
Only one, which I now included in the release - content_byline.pt
No, there was setup_talkback_tree etc, which we are not using anymore.
Is there a succinct list somewhere?
Also found out the user is running CMF 1.4.3RC1.
Plone is untested with 1.4.3rc1 at this point, afaik.
Good to know!
What's the rationale behind the extreme cross-posting of this mail? :)
I figured the problem was definitely with either zope, cmf, or plone. The solution was not obvious to me after searching through the source code of all of the above (one of my usual steps before posting anything). I hoped that the developer responsible for the change would notice the email, and didn't want to count on that person monitoring every list out there.
participants (3)
-
Alexander Limi -
Dieter Maurer -
Marc Lindahl