Hi all, When I add a dtml method to an instance of a product that subclasses folder, any attempt to render the id or title cuases the Authentication Failed msssage box and delivers a traceback like this:- Module ZPublisher.Publish, line 150, in publish_module Module ZPublisher.Publish, line 114, in publish Module Zope.App.startup, line 182, 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.DTMLMethod, line 126, in __call__ Module DocumentTemplate.DT_String, line 474, in __call__ Module OFS.DTMLMethod, line 119, in __call__ Module DocumentTemplate.DT_String, line 474, in __call__ Unauthorized: You are not allowed to access title_or_id in this context (Also, an error occurred while attempting to render the standard error message.). I have tried adding Implicit and SimpleItem to the inheritence, this does not help (I didn't expect it to as folder inherits Item). Rendering the id from a dtml method of the product causes no pain. Of course a dtml document contained in the product also causes no problems. So why the problem? No references to id or title and the dtml-method renders fine. Thanks in advance, Sean Kemplay. __________________________________________________ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com
Sean K wrote:
So why the problem? No references to id or title and the dtml-method renders fine.
Try http://hathaway.freezope.org/Software/VerboseSecurity and see if it sheds more light on what's going on... cheers, Chris
Hi Chris, Thank you for your help, VerboseSecurity is just what I needed. Best regards, Sean Kemplay --- Chris Withers <chrisw@nipltd.com> wrote:
Sean K wrote:
So why the problem? No references to id or title
and
the dtml-method renders fine.
Try
http://hathaway.freezope.org/Software/VerboseSecurity
and see if it sheds more light on what's going on...
cheers,
Chris
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
__________________________________________________ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com
participants (2)
-
Chris Withers -
Sean K