[Zope-CMF] You are not allowed to access document_view in this context
Mark Gibson
mark@dimensional.com
Wed, 27 Mar 2002 19:00:58 -0700
CMF 1.2
Zope 2.5.0
I'm using the Blark threaded discussion product. This is probably a
problems specific to this product, but if anyone can point me in the
right direction, I'd appreciate it. :)
Blark uses a Document as the basis for 'Articles'. After it creates the
Document, it overrides the view method by doing this within the Blark class:
setattr(article,'view',self.document_view)
This seems to work fine when calling the default display method like this:
http://127.0.0.1:9080/BlarkSite/ARTICLE_22121559_1016513192/document_view
However, when I access the article like this:
http://127.0.0.1:9080/BlarkSite/ARTICLE_22121559_1016513192
I get a login prompt, and then the folowing error:
Error Type: Unauthorized
Error Value: You are not allowed to access document_view in this context
Traceback (innermost last):
File
/home/local/Zope-2.5.0-linux2-x86/lib/python/ZPublisher/Publish.py, line
150, in publish_module
File /home/local/zope_2_5/lib/python/Products/Localizer/__init__.py,
line 65, in new_publish
File
/home/local/Zope-2.5.0-linux2-x86/lib/python/ZPublisher/Publish.py, line
114, in publish
File /home/local/zope_2_5/lib/python/Zope/__init__.py, line 158, in
zpublisher_exception_hook
(Object: discussions)
File
/home/local/Zope-2.5.0-linux2-x86/lib/python/ZPublisher/Publish.py, line
98, in publish
File
/home/local/Zope-2.5.0-linux2-x86/lib/python/ZPublisher/mapply.py, line
88, in mapply
(Object: ARTICLE_22121559_1016513192)
File
/home/local/Zope-2.5.0-linux2-x86/lib/python/ZPublisher/Publish.py, line
39, in call_object
(Object: ARTICLE_22121559_1016513192)
File
/home/local/zope_2_5/lib/python/Products/CMFCore/PortalContent.py, line
160, in __call__
(Object: ARTICLE_22121559_1016513192)
File /home/local/zope_2_5/lib/python/Products/CMFCore/utils.py, line
110, in _getViewFor
(Object: ARTICLE_22121559_1016513192)
File /home/local/Zope-2.5.0-linux2-x86/lib/python/OFS/Traversable.py,
line 163, in restrictedTraverse
(Object: ARTICLE_22121559_1016513192)
File /home/local/Zope-2.5.0-linux2-x86/lib/python/OFS/Traversable.py,
line 145, in unrestrictedTraverse
(Object: ARTICLE_22121559_1016513192)
Unauthorized: (see above)
The Blark author said that this problem showed up first in the CMF 1.2
release. Anyone have any ideas?
Thanks,
Mark