[Zope-dev] zope 2.12.0b1 bugs - "try it" tab broken on scripts

Andreas Jung lists at zopyx.com
Wed May 6 13:55:02 EDT 2009


On 06.05.09 19:47, Tres Seaver wrote:
> Chris Withers wrote:
> > Jürgen Herrmann wrote:
> >> 2."Script Python" instances don't execute anymore. not the ones
> already in
> >>    the db from the zope 2.10 install i used before nor newly
> created ones.
> >>    traceback:
>
> > Yes they do ;-)
>
> >>     * Module ZPublisher.Publish, line 208, in publish_module_standard
> >>     * Module ZPublisher.Publish, line 151, in publish
> >>     * Module Zope2.App.startup, line 249, in __call__
> >>     * Module ZPublisher.Publish, line 120, in publish
> >>     * Module ZPublisher.mapply, line 77, in mapply
> >>     * Module ZPublisher.Publish, line 43, in call_object
> >>     * Module Shared.DC.Scripts.Bindings, line 324, in __call__
> >>     * Module Shared.DC.Scripts.Bindings, line 361, in _bindAndExec
> >>     * Module App.special_dtml, line 185, in _exec
> >>     * Module DocumentTemplate.DT_In, line 634, in renderwob
> >>     * Module DocumentTemplate.DT_Raise, line 68, in render
> >>    RuntimeError: http://new-manage.xlhost.local/bliss/cms
>
> > The "Try it" tab, however, is broken... My guess is that form that
> > renders the tab is trying to iterate over something in dtml and getting
> > something unexpected.
>
> I fixed the issue Jürgen reported to LP:  the problem was in the code
> which said "if no arguments, raise a Redirect to the script's direct
> URL."  The <dtml-raise> implementation was not allowing exception types
> defined in zExceptions;  it only allowed built-in exceptions.
>

Thanks for fixing.

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 316 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20090506/d8b83a86/attachment.vcf 


More information about the Zope-Dev mailing list