Re: [Zope] Error Tracing in Zope 2.6

2007-02-23 Thread David VanKirk

The event_log isn't recording anything about the Zope error I'm
getting on the page I have issues with.  Is there a setting that I'm
missing maybe?

Also, has anyone successfully went from Linux to Windows with their
Zope instance?  I've noticed things like .read() and .write() don't
work in Windows, they throw a Zope error, but they worked fine in
Linux.  I've also had to deal with the .strftime() function bombing on
windows because the field from the database call was null, so it gives
me an error about None not having that attribute.

Are there any other things I might be on the look out for?

On 2/22/07, Jonathan [EMAIL PROTECTED] wrote:


- Original Message -
From: David VanKirk [EMAIL PROTECTED]
To: Zope Mailing List zope@zope.org
Sent: Thursday, February 22, 2007 5:10 PM
Subject: [Zope] Error Tracing in Zope 2.6


 Can anyone give me some pointers on tracing errors in Zope 2.6?

 I'm already using the DTML var error-tb or whatever it is.  And that
 can be helpful at times.  But I was wondering if there's some other
 way to pinpoint which line in the DTML file is throwing the error.

 I'm moving my Zope setup from Linux to Windows and apparently there
 are some syntax that needs to change when migrating over (aside from
 my SQL command, since I'm going from Oracle to MS SQL Server).  Some
 of these files are big, and there's a done of files to go through, so
 going through by hand is just not an option.

 If anyone can give me some pointers to more specifically locate
 erroneous lines, or if you can give me some tips on what syntax to
 look out for during the migration, I'd really appreciate it.

The easiest thing to do is look in the error_log (ZMI, root folder).

That will provide a full traceback for errors. If you can not determine the
cause of the errors yourself, you can post specific questions/tracebacks.


Jonathan





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

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Error Tracing in Zope 2.6

2007-02-23 Thread Jonathan


- Original Message - 
From: David VanKirk [EMAIL PROTECTED]

To: Jonathan [EMAIL PROTECTED]
Cc: Zope Mailing List zope@zope.org
Sent: Friday, February 23, 2007 8:50 AM
Subject: Re: [Zope] Error Tracing in Zope 2.6



The event_log isn't recording anything about the Zope error I'm
getting on the page I have issues with.  Is there a setting that I'm
missing maybe?


In the error_log (ZMI, root folder), there is a field called 'Ignored 
exception types'.  Remove any entries in this field and 'save changes'.


Your dtml errors should now be captured in the error_log.


Jonathan 


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

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Error Tracing in Zope 2.6

2007-02-23 Thread David VanKirk

The error_log isn't helping.  Apparently if your error is being caught
in a try block and uses an standard_error_page to show you the
exception and traceback it doesn't get logged in the error_log.

Is there anyway to maybe increase the traceback output from the
error_tb variable to traceback all the way to the DTML Method file?
I'll I get in traceback info is the traceback through the last few
*.py files, usually ending in the DTML_Try.py file since the page in
practically all enclosed in a try block.  Very rarely does that
traceback prove useful unless the exception occurred in a PythonScript
that was called.

On 2/23/07, Jonathan [EMAIL PROTECTED] wrote:


- Original Message -
From: David VanKirk [EMAIL PROTECTED]
To: Jonathan [EMAIL PROTECTED]
Cc: Zope Mailing List zope@zope.org
Sent: Friday, February 23, 2007 8:50 AM
Subject: Re: [Zope] Error Tracing in Zope 2.6


 The event_log isn't recording anything about the Zope error I'm
 getting on the page I have issues with.  Is there a setting that I'm
 missing maybe?

In the error_log (ZMI, root folder), there is a field called 'Ignored
exception types'.  Remove any entries in this field and 'save changes'.

Your dtml errors should now be captured in the error_log.


Jonathan





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

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Error Tracing in Zope 2.6

2007-02-23 Thread Jonathan


- Original Message - 
From: David VanKirk [EMAIL PROTECTED]

To: Jonathan [EMAIL PROTECTED]
Cc: Zope Mailing List zope@zope.org
Sent: Friday, February 23, 2007 11:06 AM
Subject: Re: [Zope] Error Tracing in Zope 2.6



The error_log isn't helping.  Apparently if your error is being caught
in a try block and uses an standard_error_page to show you the
exception and traceback it doesn't get logged in the error_log.

Is there anyway to maybe increase the traceback output from the
error_tb variable to traceback all the way to the DTML Method file?
I'll I get in traceback info is the traceback through the last few
*.py files, usually ending in the DTML_Try.py file since the page in
practically all enclosed in a try block.  Very rarely does that
traceback prove useful unless the exception occurred in a PythonScript
that was called.


You never mentioned that you were trapping errors!
It is not a good idea to have 'practically all enclosed in a try block' 
(especially if they are unqualified try stmts!)

I would remove the try stmts and see what is generating the errors.


Jonathan

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

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Error Tracing in Zope 2.6

2007-02-23 Thread Dieter Maurer
David VanKirk wrote at 2007-2-22 17:10 -0500:
Can anyone give me some pointers on tracing errors in Zope 2.6?

I'm already using the DTML var error-tb or whatever it is.  And that
can be helpful at times.  But I was wondering if there's some other
way to pinpoint which line in the DTML file is throwing the error.

DTML is a bit stupid. Unlike PageTemplates, it does not provide
line numbers to be used in error messages.



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


[Zope] Error Tracing in Zope 2.6

2007-02-22 Thread David VanKirk

Can anyone give me some pointers on tracing errors in Zope 2.6?

I'm already using the DTML var error-tb or whatever it is.  And that
can be helpful at times.  But I was wondering if there's some other
way to pinpoint which line in the DTML file is throwing the error.

I'm moving my Zope setup from Linux to Windows and apparently there
are some syntax that needs to change when migrating over (aside from
my SQL command, since I'm going from Oracle to MS SQL Server).  Some
of these files are big, and there's a done of files to go through, so
going through by hand is just not an option.

If anyone can give me some pointers to more specifically locate
erroneous lines, or if you can give me some tips on what syntax to
look out for during the migration, I'd really appreciate it.

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

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Error Tracing in Zope 2.6

2007-02-22 Thread Jonathan


- Original Message - 
From: David VanKirk [EMAIL PROTECTED]

To: Zope Mailing List zope@zope.org
Sent: Thursday, February 22, 2007 5:10 PM
Subject: [Zope] Error Tracing in Zope 2.6



Can anyone give me some pointers on tracing errors in Zope 2.6?

I'm already using the DTML var error-tb or whatever it is.  And that
can be helpful at times.  But I was wondering if there's some other
way to pinpoint which line in the DTML file is throwing the error.

I'm moving my Zope setup from Linux to Windows and apparently there
are some syntax that needs to change when migrating over (aside from
my SQL command, since I'm going from Oracle to MS SQL Server).  Some
of these files are big, and there's a done of files to go through, so
going through by hand is just not an option.

If anyone can give me some pointers to more specifically locate
erroneous lines, or if you can give me some tips on what syntax to
look out for during the migration, I'd really appreciate it.


The easiest thing to do is look in the error_log (ZMI, root folder).

That will provide a full traceback for errors. If you can not determine the 
cause of the errors yourself, you can post specific questions/tracebacks.



Jonathan 


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

http://mail.zope.org/mailman/listinfo/zope-dev )