[sisyphus] Zope-2.5.1-alt3 и ZWiki

Egor Cheshkov =?iso-8859-1?q?egor_=CE=C1_iplus=2Eru?=
Вс Ноя 24 01:16:32 MSK 2002


Всем привет!

Проблема с Zope-2.5.1-alt3 и ZWiki-0.12.0. При попытке обратиться к 
ZWiki неавторизованым пользователем Zope горворит TALESError c вот таким 
traceback'ом:

<!--
Traceback (innermost last):
   File /usr/lib/python2.2/site-packages/ZPublisher/Publish.py, line 
150, in publish_module
   File /usr/lib/python2.2/site-packages/ZPublisher/Publish.py, line 
114, in publish
   File /usr/lib/zope/lib/python/Zope/__init__.py, line 159, in 
zpublisher_exception_hook
     (Object: kb)
   File /usr/lib/python2.2/site-packages/ZPublisher/Publish.py, line 98, 
in publish
   File /usr/lib/python2.2/site-packages/ZPublisher/mapply.py, line 88, 
in mapply
     (Object: FrontPage)
   File /usr/lib/python2.2/site-packages/ZPublisher/Publish.py, line 39, 
in call_object
     (Object: FrontPage)
   File /var/lib/zope/iplus.ru/Products/ZWiki/ZWikiPage.py, line 151, in 
__call__
     (Object: FrontPage)
   File /var/lib/zope/iplus.ru/Products/ZWiki/ZWikiPage.py, line 163, in 
_render
     (Object: FrontPage)
   File /var/lib/zope/iplus.ru/Products/ZWiki/ZWikiPage.py, line 429, in 
render_stxprelinkhtml
     (Object: FrontPage)
   File /var/lib/zope/iplus.ru/Products/ZWiki/ZWikiPage.py, line 247, in 
addStandardLayoutTo
     (Object: FrontPage)
   File /usr/lib/zope/lib/python/Shared/DC/Scripts/Bindings.py, line 
252, in __call__
     (Object: wikipage)
   File /usr/lib/zope/lib/python/Shared/DC/Scripts/Bindings.py, line 
283, in _bindAndExec
     (Object: wikipage)
   File 
/usr/lib/zope/lib/python/Products/PageTemplates/PageTemplateFile.py, 
line 95, in _exec
     (Object: wikipage)
   File /usr/lib/zope/lib/python/Products/PageTemplates/PageTemplate.py, 
line 86, in pt_render
     (Object: wikipage)
   File /usr/lib/python2.2/site-packages/TAL/TALInterpreter.py, line 
158, in __call__
   File /usr/lib/python2.2/site-packages/TAL/TALInterpreter.py, line 
191, in interpret
   File /usr/lib/python2.2/site-packages/TAL/TALInterpreter.py, line 
490, in do_condition
   File /usr/lib/zope/lib/python/Products/PageTemplates/TALES.py, line 
262, in evaluateBoolean
   File /usr/lib/zope/lib/python/Products/PageTemplates/TALES.py, line 
247, in evaluate
   File /usr/lib/zope/lib/python/Products/PageTemplates/ZRPythonExpr.py, 
line 49, in __call__
     (Info: user.has_permission('Zwiki: Edit pages',here))
   File Python expression &quot;user.has_permission('Zwiki: Edit 
pages',here)&quot;, line 1, in &lt;expression&gt;
TALESError: AccessControl.unauthorized.Unauthorized on You are not 
allowed to access has_permission in this context in &quot;&lt;PythonExpr 
user.has_permission('Zwiki: Edit pages',here)&gt;&quot;, at line 263, 
column 1

Если обращаться пользователем с ролью Manager все нормально, под 
"чистым" Zope-2.5.1 с python-2.1.3 такого не наблюдается.

-- 
Egor Cheshkov <egor на iplus.ru>





Подробная информация о списке рассылки Sisyphus