Re: [Zope] Need help tracing my application errors.

2006-09-07 Thread Jose Carlos Balderas Alberico
Thank you everyone for your help.David, right now I can't give you any code of the application, since I'm at home, and I have nothing here. Tomorrow at work I'll give you more details about the error.Andreas, thank you for telling me about the Python logging module. I had never debugged a Zope appl

Re: [Zope] Need help tracing my application errors.

2006-09-07 Thread David H
Jose Carlos Balderas Alberico wrote: Greetings. I have a problem with an application we have hosted in Zope, and I thought you could give me a hand. Basically, my question is: what's the easiest way to trace errors raised by a python script that's part of the application? This is the exac

Re: [Zope] Need help tracing my application errors.

2006-09-07 Thread Paul Winkler
Also in case you really want to get into the python debugger from a script, try this: Install zdb, http://www.simplistix.co.uk/software/zope/zdb Add the following line to the script: from zdb import set_trace; set_trace() Stop zope. Restart zope in the foreground. Either of these commands will d

Re: [Zope] Need help tracing my application errors.

2006-09-07 Thread Maciej Wisniowski
You can also write an external method that performs logging through any kind of logger you might have available in Python and call this external method from anywhere in Zope since ExternalMethods are first-class Zope objects and can be acquired through standard acquisition. The simple and e

Re: [Zope] Need help tracing my application errors.

2006-09-07 Thread Andreas Jung
--On 7. September 2006 21:05:31 +0200 Jose Carlos Balderas Alberico <[EMAIL PROTECTED]> wrote: I'm out of ideas here. What I basically want is some way of printing stuff somewhere, maybe a file, or the screen itself, to know where the application is in every moment. That way, locating the e

[Zope] Need help tracing my application errors.

2006-09-07 Thread Jose Carlos Balderas Alberico
Greetings.   I have a problem with an application we have hosted in Zope, and I thought you could give me a hand. Basically, my question is: what's the easiest way to trace errors raised by a python script that's part of the application?   This is the exact situation: I have to modify such applica