In folder 'test' I have created an 'acl_users' folder with userid of 'testuser'. There's the sample index.html that get's created along with the folder. 'testuser' can see this fine. I then proceed to create a ZSQL method, connecting to my Postgres7.4 database with ZPsycopg. The sql method works fine as superuser. However, when 'testuser' attempts to use the sql method, I get: Site Error An error was encountered while publishing this resource. KeyError Sorry, a site error occurred. Traceback (innermost last): Module ZPublisher.Publish, line 150, in publish_module Module ZPublisher.Publish, line 114, in publish Module Zope.App.startup, line 202, in zpublisher_exception_hook Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module OFS.DTMLDocument, line 126, in __call__ Module DocumentTemplate.DT_String, line 474, in __call__ KeyError: standard_html_header (Also, an error occurred while attempting to render the standard error message.) ---------------------------------------------------------------------------- ---- Troubleshooting Suggestions The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. I've searched the groups, but can't seem to find any leads. Any insight appreciated.
William Herring wrote at 2004-5-15 15:30 -0400:
... I then proceed to create a ZSQL method, connecting to my Postgres7.4 database with ZPsycopg. The sql method works fine as superuser. However, when 'testuser' attempts to use the sql method, I get: ... Module OFS.DTMLDocument, line 126, in __call__ Module DocumentTemplate.DT_String, line 474, in __call__ KeyError: standard_html_header
Usually, one would expect that you did not give your "testuser" the "Call database methods" permission. However, your traceback seems to indicate a different problem. Is your "standard_html_header" protected? If its 'View' permission is not granted to "Anonymous", then locally defined users cannot access it (this applies to all objects with 'View' replaced by the "object permission" (usually "Access contents information"). -- Dieter
participants (2)
-
Dieter Maurer -
William Herring