[Zope] problem with checkPermission or viewThreadsAtBottom?

Marc Lindahl marc at bowery.com
Thu Mar 4 21:58:44 EST 2004


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




More information about the Zope mailing list