> using LocalFS 0.95 war fine until trying to upgrade to Zope 2.2.2. Both
 > freshly installed, the following snippet raises the error: "Unauthorized",
 > "You are not authorized to access read.":
 > <dtml-var standard_html_header>
 > <dtml-var "frei['analog.html'].read()">
 > <dtml-var standard_html_footer>
In earlier Zope versions, a method without a permission meant
"can be used freely". Now, it means "cannot be used via DTML/URL".

Thus, you must provide a permission for "read".
Unfortunately, "read" is not a method of "LocalFS" but from
the Zope objects wrapped around the files.
You, probably, will not want to change the respective Zope

The quickest solution for you would be an external method
that gets the file, performs the "read" and returns the result.

Alternatively, you may subclass the Zope object classes,
provide a permission for "read" and use them in


Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to