You are not logged in Log in Join
You are here: Home » Members » Marc's Zope Page » bowerymarc's issue collector » NameError: name 'checkPermission' when trying to add CMFAudio object » collector_issue_contents

Log in
Name

Password

 
 
Issue 13 of bowerymarc's issue collector [zope-bowerymarc]
Title: NameError: name 'checkPermission' when trying to add CMFAudio object
Status: Pending Security related: No
Description: When I try to add a new CMFAudio object in a Plone 2.0.1 site, it results in the following error: Traceback (innermost last): Module ZPublisher.Pub...
From: nateaune on: Apr 27, 04 16:25
nateaune Last update: Apr 27, 04 16:25
Topic/class: Product/bug Importance: *unassigned*
Version info: Plone 2.0.1 Zope 2.7.0 Python 2.3.3 CMFAudio 0.6 Audio 0.5
Issue 13 Transcript
1 entry
= Request - Entry #1 by nateaune on Apr 27, 2004 4:25 pm

When I try to add a new CMFAudio object in a Plone 2.0.1 site, it results in 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 /Plone/viewThreadsAtBottom used for /Plone/audio.2004-04-27.1799510479>
  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 3674350>,
       'context': <CMFAudio at /Plone/audio.2004-04-27.1799510479>,
       'default': <Products.PageTemplates.TALES.Default instance at 0x23ff738>,
       'here': <CMFAudio at /Plone/audio.2004-04-27.1799510479>,
       'loop': <SafeMapping instance at 382a0f0>,
       'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x23efe40>,
       'nothing': None,
       'options': {'args': ()},
       'repeat': <SafeMapping instance at 382a0f0>,
       'request': <HTTPRequest, URL=http://127.0.0.1:8083/Plone/audio.2004-04-27.1799510479/audioView>,
       'root': <Application instance at 306a6e0>,
       'template': <FSPageTemplate at /Plone/viewThreadsAtBottom used for /Plone/audio.2004-04-27.1799510479>,
       '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