[Zope] Access document_src

Andreas Tille tillea@rki.de
Wed, 9 Oct 2002 09:01:41 +0200 (CEST)


Hello,

I use a Python Script to set some parameters before calling a Page Template
document.  The call is done in the following way:

    if REQUEST is not None:
        return container['test.zpt'](REQUEST, name=name, title=title)

Unfortunately this does not seem to work for anonymous user because
I will be presented by a passwort autentification question and if
I cancel this I get:

    Zope has encountered an error while publishing this resource.

    Error Type: Unauthorized
    Error Value: You are not allowed to access document_src in this context

Any hints how to make this accessible for anonymous user?

I see two ways here:

  1. Call it the "right way" (but what would it be?)
  2. Adapt permissions correctly (but without opening a hole).

Kind regards

       Andreas.