ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] Zope-2.5.1-alt3 и ZWiki
@ 2002-11-23 22:16 Egor Cheshkov
  2002-11-24 12:10 ` Andrey Orlov
  0 siblings, 1 reply; 3+ messages in thread
From: Egor Cheshkov @ 2002-11-23 22:16 UTC (permalink / raw)
  To: sisyphus

Всем привет!

Проблема с 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>




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-11-24 23:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-23 22:16 [sisyphus] Zope-2.5.1-alt3 и ZWiki Egor Cheshkov
2002-11-24 12:10 ` Andrey Orlov
2002-11-24 23:49   ` Egor Cheshkov

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git