xml-rpc/soap errors
Anyone got an elegant way of catching xml-rpc/soap errors so that they dont go to standard_error_message and return a whole bunch of html to the client as the error value? I really can only think of a <dtml-if> in standard_error_message, which doesn't count as elegant. Cheers. -- Andy McKay.
Andy McKay wrote:
I really can only think of a <dtml-if> in standard_error_message, which doesn't count as elegant.
make standard_error_message a python script which only renders a template in a given set of circumstances? Chris
On Mon, 27 Aug 2001 15:32:47 -0700, "Andy McKay" <andym@ActiveState.com> wrote:
Anyone got an elegant way of catching xml-rpc/soap errors so that they dont go to standard_error_message and return a whole bunch of html to the client as the error value?
I agree in principal that the output of standard_error_message shouldnt be sent directly back in the xml-rpc response, however it probably is appropriate that standard_error_message is involved somehow so that it can perform error logging. On Tue, 28 Aug 2001 09:11:43 +0100, Chris Withers <chrisw@nipltd.com> wrote:
make standard_error_message a python script which only renders a template in a given set of circumstances?
Suprisingly you cant to this; in the current implementation standard_error_message *must* be a DTMLMethod derived class. (of course, it can be a dtml one-liner redirecting to the real logic in a PythonMethod, or whatever) Toby Dickenson tdickenson@geminidataloggers.com
Toby Dickenson wrote:
Suprisingly you cant to this; in the current implementation standard_error_message *must* be a DTMLMethod derived class. (of course, it can be a dtml one-liner redirecting to the real logic in a PythonMethod, or whatever)
I'm sure I saw a checkin which allowed that... That said, I do find it irritating that you can delete standard_ anything in the root of a ZODB :-S cheers, Chris
[Chris Withers] | That said, I do find it irritating that you can delete standard_ | anything in the root of a ZODB :-S Why?
Erik Enge wrote:
[Chris Withers]
| That said, I do find it irritating that you can delete standard_ | anything in the root of a ZODB :-S
Why?
For example, because you can't delete them and replace them with python scripts. You also can't import them from .zexp's Chris
| That said, I do find it irritating that you can delete standard_ | anything in the root of a ZODB :-S
Why?
For example, because you can't delete them and replace them with python scripts.
You also can't import them from .zexp's
You cant sync them using ZSyncer. Very annoying. -- Andy McKay
[andy@agmweb.ca] [snip frustration] | > You also can't import them from .zexp's | | You cant sync them using ZSyncer. Very annoying. How about starting a little Doing The Standard_ Stuff In For Good Project?
[snip frustration] | > You also can't import them from .zexp's | | You cant sync them using ZSyncer. Very annoying.
How about starting a little Doing The Standard_ Stuff In For Good Project?
Or I could just patch it. Would seem to work, yeah I can now make my root standard_html_header a python script, or call it something different for that matter. --- ~Application.py Wed Aug 29 01:22:55 2001 +++ Application.py Wed Aug 29 01:23:03 2001 @@ -180,10 +180,7 @@ p_=misc_.p_ misc_=misc_.misc_ - _reserved_names=('standard_html_header', - 'standard_html_footer', - 'standard_error_message', - 'Control_Panel') + _reserved_names=('Control_Panel',) # This class-default __allow_groups__ ensures that the # emergency user can still access the system if the top-level
Andy McKay wrote:
Or I could just patch it.
And then you can just stick the patch in the collector ;-) Nice, lightweight process rather than wading through the Fishbowl for such a small change. Mindyou, if you could vote for patches and some of the other funky stuff you can do in Bugzilla, you'd still get all the necessary peer revue... cheers, Chris
And then you can just stick the patch in the collector ;-)
Nice, lightweight process rather than wading through the Fishbowl for such a small change.
I have but, its hard sometimes to get those sorts of little things taken care of. Its out in the zope-dev audience so may get some attention...
Mindyou, if you could vote for patches and some of the other funky stuff you can do in Bugzilla, you'd still get all the necessary peer revue...
Ive just implemented (and altered) Bugzilla and we nuked the voting because nobody used it. Its daft. But Bugzilla is a good bug tracking system, just needs work. -- Andy McKay
On Wednesday 29 August 2001 18:43, Andy wrote:
Mindyou, if you could vote for patches and some of the other funky stuff
you can
do in Bugzilla, you'd still get all the necessary peer revue...
Ive just implemented (and altered) Bugzilla and we nuked the voting because nobody used it. Its daft. But Bugzilla is a good bug tracking system, just needs work.
<obplug> Have you looked at Roundup? :) http://roundup.sourceforge.net/ </obplug> Richard
<obplug> Have you looked at Roundup? :)
http://roundup.sourceforge.net/
</obplug>
We replaced roundup with bugzilla and we replaced Jitterbug with roundup. Although roundup has improved a lot recently, we just needed more... Cheers. -- Andy McKay.
After a bit of research ive found its suprisingly simple to do in dtml (ugh): <dtml-if "REQUEST.get('CONTENT_TYPE', '') == 'text/xml'"> xml-rpc / soap etc <dtml-else> html </dtml-if> Cheers. -- Andy McKay. ----- Original Message ----- From: "Andy" <andy@agmweb.ca> To: "Chris Withers" <chrisw@nipltd.com> Cc: <zope-dev@zope.org> Sent: Tuesday, August 28, 2001 7:36 AM Subject: Re: [Zope-dev] xml-rpc/soap errors
make standard_error_message a python script which only renders a template in a given set of circumstances?
Hmm still the same solution, but probably the only one I have. -- Andy McKay
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
participants (6)
-
Andy -
Andy McKay -
Chris Withers -
Erik Enge -
Richard Jones -
Toby Dickenson