ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Egor Cheshkov <egor@iplus.ru>
To: sisyphus@altlinux.ru
Subject: [sisyphus] Zope-2.5.1-alt3 и ZWiki
Date: Sun, 24 Nov 2002 01:16:32 +0300
Message-ID: <3DDFFE40.5000709@iplus.ru> (raw)

Всем привет!

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




             reply	other threads:[~2002-11-23 22:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-23 22:16 Egor Cheshkov [this message]
2002-11-24 12:10 ` Andrey Orlov
2002-11-24 23:49   ` Egor Cheshkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3DDFFE40.5000709@iplus.ru \
    --to=egor@iplus.ru \
    --cc=sisyphus@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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