Hello,
I am building a site with Zope4. I installed ZsqlMethods to search for data in a database. My problem is that my site only works if I am authenticated!
Here is the error message:
AccessControl.unauthorized.Unauthorized: You are not allowed to access 'SQLS_allPosts.sql' in this context
- Expression: "python:context'allPosts.py'"
- Filename: /fam/Posts/posts-light.html
- Location: (line 1: col 35)
- Expression: "context/Posts/posts-light.html"
- Filename: /fam/index.html
- Location: (line 48: col 50)
- Arguments: template: <ImplicitAcquisitionWrapper posts-light.html at 0x7f25ec3eb870>
here: <ImplicitAcquisitionWrapper Posts at 0x7f25ec6bf5a0>
context: <ImplicitAcquisitionWrapper Posts at 0x7f25ec6bf5a0>
container: <ImplicitAcquisitionWrapper Posts at 0x7f25ec6bf5a0>
nothing: <NoneType - at 0xa286b0>
options: {...} (1)
root: <ImplicitAcquisitionWrapper at 0x7f25ec39af50>
request: <WSGIRequest - at 0x7f25ec448750>
modules: <_SecureModuleImporter - at 0x7f25f11f93d0>
traverse_subpath: <list - at 0x7f25ec40fd20>
user: <ImplicitAcquisitionWrapper - at 0x7f25ec3a2f00>
default: <object - at 0x7f25f6415e20>
repeat: {...} (0)
loop: {...} (0)
wrapped_repeat: <SafeMapping - at 0x7f25ec52ef00>
target_language: <NoneType - at 0xa286b0>
translate: <function translate at 0x7f25ec4e6320>
How to fix this problem?
Thanks for your help