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

2009-05-06 Thread Andreas Jung
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  implementation was not allowing exception types
> defined in zExceptions;  it only allowed built-in exceptions.
>

Thanks for fixing.

Andreas
begin:vcard
fn:Andreas Jung
n:Jung;Andreas
org:ZOPYX Ltd. & Co. KG
adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany
email;internet:i...@zopyx.com
title:CEO
tel;work:+49-7071-793376
tel;fax:+49-7071-7936840
tel;home:+49-7071-793257
x-mozilla-html:FALSE
url:www.zopyx.com
version:2.1
end:vcard

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


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

2009-05-06 Thread Tres Seaver
-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  implementation was not allowing exception types
defined in zExceptions;  it only allowed built-in exceptions.


Tres.
- --
===
Tres Seaver  +1 540-429-0999  tsea...@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-

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


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

2009-05-06 Thread Chris Withers
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.

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] zope 2.12.0b1 bugs

2009-05-06 Thread Michael Haubenwallner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jürgen Herrmann wrote:
> i found two bugs in the current zope 2.12 beta:
> 
> 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:
> * 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
> 
>no clues on this one.
> 

No idea whats going on there too, i get the same traceback when clicking
the 'Test' button in ZMI (.../ZScriptHTML_tryForm).
But if you click the objects 'Interfaces' button in ZMI
(.../manage_interfaces) the script is rendered ok.
Also looking at the object in the browser works for me.

Regards
Michael

- --
http://blog.d2m.at
http://planetzope.org

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFKAVSbl0uAvQJUKVYRAiSsAKCZWOdYwL+LqjzbG9QWF5u8Ru9YQQCgo2cE
uabB8JNRMIHeRYlUdsE9qdU=
=EpE0
-END PGP SIGNATURE-

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] zope 2.12.0b1 bugs

2009-05-06 Thread Tom Gross
https://bugs.launchpad.net/zope2

-Tom
Jürgen Herrmann wrote:
> i found two bugs in the current zope 2.12 beta:
> 
> 1. standard_error_message is not used, this is due to code in
>ZPublisher/HTTPResponse.py, method _error_html(self,title,body)
>comment: XXX could this try to use standard_error_message somehow?
> 
>so could it? i'm willing to give it a try and fix this.
>can i acquire standard_error_message from a HTTPResponse instance?
> 
> 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:
> * 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
> 
>no clues on this one.
> 
> where can i report these two bugs? ...or maybe a fix for 1.
> 
> best regards,
> jürgen herrmann
> --
>>> XLhost.de - eXperts in Linux hosting ® <<
> 
> XLhost.de GmbH
> Jürgen Herrmann, Geschäftsführer
> Boelckestrasse 21, 93051 Regensburg, Germany
> 
> Geschäftsführer: Volker Geith, Jürgen Herrmann
> Registriert unter: HRB9918
> Umsatzsteuer-Identifikationsnummer: DE245931218
> 
> Fon:  +49 (0)700 XLHOSTDE [0700 95467833]
> Fax:  +49 (0)700 XLHOSTDE [0700 95467833]
> 
> WEB:  http://www.XLhost.de
> IRC:  #xlh...@irc.quakenet.org
> 
> ___
> Zope-Dev maillist  -  Zope-Dev@zope.org
> http://mail.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope )
> 

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] zope 2.12.0b1 bugs

2009-05-06 Thread Andreas Jung
On 06.05.09 10:55, Jürgen Herrmann wrote:
>
> where can i report these two bugs? ...or maybe a fix for 1.


https://bugs.launchpad.net/zope2/

Andreas
begin:vcard
fn:Andreas Jung
n:Jung;Andreas
org:ZOPYX Ltd. & Co. KG
adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany
email;internet:i...@zopyx.com
title:CEO
tel;work:+49-7071-793376
tel;fax:+49-7071-7936840
tel;home:+49-7071-793257
x-mozilla-html:FALSE
url:www.zopyx.com
version:2.1
end:vcard

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )