[Zope-CMF] Plone and CMF Event

Douglas Perry doug@safety.com
Mon, 6 May 2002 19:08:41 -0400


I'm having an issue with Plone 0.9.9Almost and CMF Event. Entering an event
works but when I try to view the event from clicking on the date I get this:

TALESError: exceptions.RuntimeError on function attributes not accessible in
restricted mode in '<PythonExpr here.breadcrumbs(here)>', at line 150,
column 2


Full error dump:

Traceback (innermost last):
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 150, in
publish_module
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 114, in
publish
  File /usr/local/zope/lib/python/Zope/__init__.py, line 159, in
zpublisher_exception_hook
    (Object: event_test)
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 98, in publish
  File /usr/local/zope/lib/python/ZPublisher/mapply.py, line 88, in mapply
    (Object: view)
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 39, in
call_object
    (Object: view)
  File /usr/local/zope/lib/python/Products/CMFCore/PortalContent.py, line
173, in view
    (Object: event_test)
  File /usr/local/zope/lib/python/Products/CMFCore/PortalContent.py, line
164, in __call__
    (Object: event_test)
  File /usr/local/zope/lib/python/Shared/DC/Scripts/Bindings.py, line 252,
in __call__
    (Object: event_view)
  File /usr/local/zope/lib/python/Shared/DC/Scripts/Bindings.py, line 283,
in _bindAndExec
    (Object: event_view)
  File
/usr/local/zope/lib/python/Products/PageTemplates/ZopePageTemplate.py, line
210, in _exec
    (Object: event_view)
  File /usr/local/zope/lib/python/Products/CMFCore/FSPageTemplate.py, line
99, in pt_render
    (Object: event_view)
  File /usr/local/zope/lib/python/Products/PageTemplates/PageTemplate.py,
line 86, in pt_render
    (Object: event_view)
    (Info: {'container': <CMFSite instance at 937b460>,
 'here': <Event instance at 93f9690>,
 'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter
instance at 0x869f74c>,
 'nothing': None,
 'options': {'args': ()},
 'request': <h3>form</h3><table></table><h3>cookies</h3><table><tr
valign="top"
align="left"><th>__cp</th><td>'x%DA%D3%60b%60%60%C8d%04%12%D1%20B%83%19H%143
%80%08V%20%91%92%9A%9BoX%CC%05R%92%97%92Z%11%9FQ%92%9B%03%00%87%E8%08%86'</t
d></tr><tr valign="top"
align="left"><th>BLARK_reviewmode</th><td>'off'</td></tr></table><h3>lazy
items</h3><table><tr valign="top"
align="left"><th>SESSION</th><td>&lt;Python Method object at
0x8a57200&gt;</td></tr></table><h3>other</h3><table><tr valign="top"
align="left"><th>AUTHENTICATION_PATH</th><td>''</td></tr><tr valign="top"
align="left"><th>__cp</th><td>'x%DA%D3%60b%60%60%C8d%04%12%D1%20B%83%19H%143
%80%08V%20%91%92%9A%9BoX%CC%05R%92%97%92Z%11%9FQ%92%9B%03%00%87%E8%08%86'</t
d></tr><tr valign="top"
align="left"><th>URL3</th><td>'http://10.0.0.12:8080'</td></tr><tr
valign="top"
align="left"><th>URL0</th><td>'http://10.0.0.12:8080/demo1/event_test/view'<
/td></tr><tr valign="top"
align="left"><th>BASE3</th><td>'http://10.0.0.12:8080/demo1/event_test'</td>
</tr><tr valign="top"
align="left"><th>URL2</th><td>'http://10.0.0.12:8080/demo1'</td></tr><tr
valign="top"
align="left"><th>BASE1</th><td>'http://10.0.0.12:8080'</td></tr><tr
valign="top"
align="left"><th>BASE0</th><td>'http://10.0.0.12:8080'</td></tr><tr
valign="top"
align="left"><th>URL1</th><td>'http://10.0.0.12:8080/demo1/event_test'</td><
/tr><tr valign="top"
align="left"><th>SERVER_URL</th><td>'http://10.0.0.12:8080'</td></tr><tr
valign="top" align="left"><th>PUBLISHED</th><td>&lt;Python Method object at
0x8ab4e20&gt;</td></tr><tr valign="top"
align="left"><th>BLARK_reviewmode</th><td>'off'</td></tr><tr valign="top"
align="left"><th>URL</th><td>'http://10.0.0.12:8080/demo1/event_test/view'</
td></tr><tr valign="top"
align="left"><th>BASE2</th><td>'http://10.0.0.12:8080/demo1'</td></tr><tr
valign="top"
align="left"><th>TraversalRequestNameStack</th><td>[]</td></tr><tr
valign="top" align="left"><th>AUTHENTICATED_USER</th><td>admin</td></tr><tr
valign="top"
align="left"><th>BASE4</th><td>'http://10.0.0.12:8080/demo1/event_test/view'
</td></tr><tr valign="top"
align="left"><th>URL0</th><td>http://10.0.0.12:8080/demo1/event_test/view</t
d></tr><tr valign="top"
align="left"><th>URL1</th><td>http://10.0.0.12:8080/demo1/event_test</td></t
r><tr valign="top"
align="left"><th>URL2</th><td>http://10.0.0.12:8080/demo1</td></tr><tr
valign="top"
align="left"><th>URL3</th><td>http://10.0.0.12:8080</td></tr><tr
valign="top"
align="left"><th>BASE0</th><td>http://10.0.0.12:8080</td></tr><tr
valign="top"
align="left"><th>BASE1</th><td>http://10.0.0.12:8080</td></tr><tr
valign="top"
align="left"><th>BASE2</th><td>http://10.0.0.12:8080/demo1</td></tr><tr
valign="top"
align="left"><th>BASE3</th><td>http://10.0.0.12:8080/demo1/event_test</td></
tr><tr valign="top"
align="left"><th>BASE4</th><td>http://10.0.0.12:8080/demo1/event_test/view</
td></tr></table><h3>environ</h3><table><tr valign="top"
align="left"><th>HTTP_ACCEPT_ENCODING</th><td>'gzip, deflate'</td></tr><tr
valign="top"
align="left"><th>channel.creation_time</th><td>1020726756</td></tr><tr
valign="top"
align="left"><th>SERVER_PROTOCOL</th><td>'HTTP/1.1'</td></tr><tr
valign="top" align="left"><th>SERVER_PORT</th><td>'8080'</td></tr><tr
valign="top"
align="left"><th>PATH_INFO</th><td>'/demo1/event_test/view'</td></tr><tr
valign="top"
align="left"><th>HTTP_HOST</th><td>'10.0.0.12:8080'</td></tr><tr
valign="top" align="left"><th>REQUEST_METHOD</th><td>'GET'</td></tr><tr
valign="top"
align="left"><th>PATH_TRANSLATED</th><td>'/demo1/event_test/view'</td></tr><
tr valign="top"
align="left"><th>HTTP_COOKIE</th><td>'BLARK_reviewmode="off";
__cp="x%DA%D3%60b%60%60%C8d%04%12%D1%20B%83%19H%143%80%08V%20%91%92%9A%9BoX%
CC%05R%92%97%92Z%11%9FQ%92%9B%03%00%87%E8%08%86";
__ac="YWRtaW46Z3N3MTky%0A"'</td></tr><tr valign="top"
align="left"><th>SCRIPT_NAME</th><td>''</td></tr><tr valign="top"
align="left"><th>SERVER_SOFTWARE</th><td>'Zope/(Zope 2.5.1 (source release,
python 2.1, linux2), python 2.1.2, linux2) ZServer/1.1b1'</td></tr><tr
valign="top"
align="left"><th>HTTP_ACCEPT_LANGUAGE</th><td>'en-us'</td></tr><tr
valign="top" align="left"><th>HTTP_ACCEPT</th><td>'image/gif,
image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint,
application/vnd.ms-excel, application/msword, */*'</td></tr><tr valign="top"
align="left"><th>REMOTE_ADDR</th><td>'10.0.0.25'</td></tr><tr valign="top"
align="left"><th>HTTP_REFERER</th><td>'http://10.0.0.12:8080/demo1/search?st
art:date=2002-05-11%2000%3A00%3A00&amp;start_usage=range:max&amp;end:date=20
02-05-10%2000%3A00%3A00&amp;end_usage=range:min'</td></tr><tr valign="top"
align="left"><th>SERVER_NAME</th><td>'uni'</td></tr><tr valign="top"
align="left"><th>GATEWAY_INTERFACE</th><td>'CGI/1.1'</td></tr><tr
valign="top" align="left"><th>HTTP_USER_AGENT</th><td>'Mozilla/4.0
(compatible; MSIE 5.01; Windows NT 5.0)'</td></tr><tr valign="top"
align="left"><th>CONNECTION_TYPE</th><td>'Keep-Alive'</td></tr></table>,
 'root': <Application instance at 93bde10>,
 'template': <FSPageTemplate instance at 8efa5b8>,
 'traverse_subpath': [],
 'user': admin})
  File /usr/local/zope/lib/python/TAL/TALInterpreter.py, line 158, in
__call__
  File /usr/local/zope/lib/python/TAL/TALInterpreter.py, line 191, in
interpret
  File /usr/local/zope/lib/python/TAL/TALInterpreter.py, line 523, in
do_useMacro
  File /usr/local/zope/lib/python/TAL/TALInterpreter.py, line 191, in
interpret
  File /usr/local/zope/lib/python/TAL/TALInterpreter.py, line 523, in
do_useMacro
  File /usr/local/zope/lib/python/TAL/TALInterpreter.py, line 191, in
interpret
  File /usr/local/zope/lib/python/TAL/TALInterpreter.py, line 523, in
do_useMacro
  File /usr/local/zope/lib/python/TAL/TALInterpreter.py, line 191, in
interpret
  File /usr/local/zope/lib/python/TAL/TALInterpreter.py, line 402, in
do_setLocal_tal
  File /usr/local/zope/lib/python/Products/PageTemplates/TALES.py, line 247,
in evaluate
  File /usr/local/zope/lib/python/Products/PageTemplates/ZRPythonExpr.py,
line 49, in __call__
    (Info: here.breadcrumbs(here))
  File Python expression "here.breadcrumbs(here)", line 2, in f
  File /usr/local/zope/lib/python/Shared/DC/Scripts/Bindings.py, line 252,
in __call__
    (Object: breadcrumbs)
  File /usr/local/zope/lib/python/Shared/DC/Scripts/Bindings.py, line 283,
in _bindAndExec
    (Object: breadcrumbs)
  File /usr/local/zope/lib/python/Products/CMFCore/FSPythonScript.py, line
115, in _exec
    (Object: breadcrumbs)
    (Info: ({'script': <FSPythonScript instance at 9122e90>, 'context':
<Event instance at 93f9690>, 'container': <CMFSite instance at 937b460>,
'traverse_subpath': []}, (<Event instance at 93f9690>,), {}, (None,)))
  File Script (Python), line 12, in breadcrumbs
    (Object: event_test)
TALESError: exceptions.RuntimeError on function attributes not accessible in
restricted mode in '<PythonExpr here.breadcrumbs(here)>', at line 150,
column 2