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

Tres Seaver tseaver at palladion.com
Wed May 6 13:47:34 EDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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.


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFKAc02+gerLs4ltQ4RAiOhAKDOadCSf1frpq7uObsDEpek/3KyYQCdFhI2
WuMsw/52jmgDqHio9g4krw8=
=KNZJ
-----END PGP SIGNATURE-----



More information about the Zope-Dev mailing list