[Zope] Permissions, files and folders

Dieter Maurer dieter at handshake.de
Tue Apr 11 16:21:13 EDT 2006


Erik Billing wrote at 2006-4-10 20:38 +0200:
> ...
>This works fine, except that it's a bit clumsy and has one big error; I
>catch just any exception that arises from the
>files.append(fileIterator.next())-call,
>and swallow it.

In fact, you should *NEVER* do this.

>I've tried catching only the Unauthorized-exception, but an
>anonymus user does not have access to the Unauthorized-exception, so I can't
>specify is in my except-declaration without getting a new authorization
>error.

The "README" in "Products/PythonScripts" (unmong others) tells
you how to allow the import of usually protected ressources.

-- 
Dieter


More information about the Zope mailing list