[Zope] how to set anonymous access to authorized content?

Jaroslav Lukesh lukesh at seznam.cz
Tue Jan 6 05:49:09 EST 2009


Hi all,

I need to set-up page with anonymous access with some informations from 
site, where are authorized access only. This page call dtml method 
list_robot from authorized site, from where are called other authorized 
methods and documents. From authorized site list_robot works, of course.

Site structure:
domain.com/authorized_pages.htm
domain.com/public/index_html

I was set-up to allow view etc for anonymous (and for all users) in security 
tab for "public" folder, index_html have defined proxy role "manager" and I 
am still not able to get content from authorized site content. And it still 
could not get DTML document js_lib (it is called as <dtml-var js_lib>) from 
authorized site. If I was comment js_lib calling, then it fails that used 
ZSQL method does not exist...

Error Type: KeyError
Error Value: js_lib
This resource may be trying to reference a nonexistent object or variable 
js_lib.

Traceback (innermost last):
  File /var/zope/lib/python/ZPublisher/Publish.py, line 150, in 
publish_module
  File /var/zope/lib/python/ZPublisher/Publish.py, line 114, in publish
  File /var/zope/lib/python/Zope/__init__.py, line 159, in 
zpublisher_exception_hook
    (Object: public)
  File /var/zope/lib/python/ZPublisher/Publish.py, line 98, in publish
  File /var/zope/lib/python/ZPublisher/mapply.py, line 88, in mapply
    (Object: index_html)
  File /var/zope/lib/python/ZPublisher/Publish.py, line 39, in call_object
    (Object: index_html)
  File /var/zope/lib/python/OFS/DTMLDocument.py, line 127, in __call__
    (Object: index_html)
  File /var/zope/lib/python/DocumentTemplate/DT_String.py, line 473, in 
__call__
    (Object: index_html)
  File /var/zope/lib/python/OFS/DTMLMethod.py, line 120, in __call__
    (Object: list_robot)
  File /var/zope/lib/python/DocumentTemplate/DT_String.py, line 473, in 
__call__
    (Object: list_robot)
KeyError: (see above)

It is Zope 2.5.1.

Would you like to point me, where I was make error, please?

Many thanks,

J. Lukesh 



More information about the Zope mailing list