[Zope] standard_error_message confusion
Danny William Adair
Fri, 22 Sep 2000 14:58:50 +0200
My standard error_message is ok.
I think my problem with LoginManager and Membership can be cut down to this:
If I take away all permissions from a dtml-document for Anonymous, he will
be correctly prompted for Login using *my* standard_error_message
("LoginRequired" is raised) as soon as he tries to access it. _But_, if I
take away the rights for Anonymous from a _folder_ under which a dtml
document acquires these security settings, he'll get the hard-coded Zope
error_message with the login field, instead of my (customized one). Whassup?
Von: email@example.com [mailto:firstname.lastname@example.org]Im Auftrag von
Gesendet: Dienstag, 19. September 2000 13:03
Betreff: Re: [Zope] standard_error_message confusion
Danny William Adair wrote:
> Hi all!
> I'm using LoginManager to provide for a non-HTTP authentication. A role
> "Member" has access to a folder "Restricted", the
> role "Anonymous" doesn't have any rights at all in this folder. All
> in this folder acquire these security settings.
> So far, so good.
> The login form from the LoginManager product raises "LoginRequired" and
> shows the login screen when necessary. Mysteriously, I don't get to see my
> (customized) standard_error_message, but *the* standard error message when
> try to access the folder unauthenticated. Now if I give Anonymous the
> to "View" in the "Restricted" folder (and therefore view all contained
> objects - which I naturally don't want to do) and explicitly take that
> away for index_html, any unauthenticated client trying to access the
> (->index_html) will see *my* standard_error_message (containing the login
> What is this all about?
Without looking closely at your system, it is hard to say. Perhaps your
standard_error_message is itself causing an error of some kind.
Therefore, you're getting the zope hard-coded error message.
Try commenting out most of your standard_error_message, so that there is
no possible way it could cause an error, then see if you see your
version or the Zope hardcoded version.
Zope maillist - Zope@zope.org
** No cross posts or HTML encoding! **
(Related lists -