[Zope-dev] Traceback strangeness and default width/height (and those funnyPython Methods)

2001-02-23 Thread Erik Enge

Is it just me, or has the tracebacks provided by Zope when an Exception is
raced gotten "worse"?  In Zope 2.3.1b1 it usually says file: DT_In (or one
of them), and doesn't even mention the file which the Exception was raised
from.

Also, When I set the default width/height with the new ZMI and bring up a
Python Method window, it doesn't follow the default values I've put
in.  Maybe this is related to something else, because using the + and - on
width doesn't work very well either..  Maybe it is this old crappy version
of IE I'm running...

And another thing about those Python Methods.  When an Exception is raised
and it gives me the line number it seems to miss the correct line by
one.  Ie. if I raise an Exception on the first line in a Python Method, it
tells me that it was raised on line 2.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )



Re: [Zope-dev] Traceback

2000-07-19 Thread Dieter Maurer

[EMAIL PROTECTED] writes:
  How hard would it be to add more of the called URL to the traceback?
 
  ... traceback ...
 
  Great, I know that I have not put product_number in as a cookie or a hidden
  value, and it could not be found by acquisition.  It failed in rendering
  index_html.  But there are 5 index_html's it could have failed in.
  
  How hard would it be to change the error message to say:
  
  Traceback (innermost last):
Exception raised while constructing 
http:
It would probably not be hard to add the URL.

Try editing "standard_error_message" and add "dtml-var URL"
at an appropriate place.

You can get it, too, when you are your browser to show
you the page/frame info.


Dieter

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )




[Zope-dev] Traceback

2000-07-18 Thread jpenny

How hard would it be to add more of the called URL to the traceback?

Background:
I have been developing relatively baroque SQL sites for internal use 
and find that when I am making changes to facilitate re-use higher up
in the hierarchy, it can be relatively difficult to find out what 
failed.  For example, I get this traceback:

Traceback (innermost last):
  File /home/jpenny/zope/Zope-2.2.0b4-src/lib/python/ZPublisher/Publish.py, line 222, 
in publish_module
  File /home/jpenny/zope/Zope-2.2.0b4-src/lib/python/ZPublisher/Publish.py, line 187, 
in publish
  File /home/jpenny/zope/Zope-2.2.0b4-src/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
(Object: ElementWithAttributes)
  File /home/jpenny/zope/Zope-2.2.0b4-src/lib/python/ZPublisher/Publish.py, line 171, 
in publish
  File /home/jpenny/zope/Zope-2.2.0b4-src/lib/python/ZPublisher/mapply.py, line 160, 
in mapply
(Object: index_html)
  File /home/jpenny/zope/Zope-2.2.0b4-src/lib/python/ZPublisher/Publish.py, line 112, 
in call_object
(Object: index_html)
  File /home/jpenny/zope/Zope-2.2.0b4-src/lib/python/OFS/DTMLDocument.py, line 170, in 
__call__
(Object: index_html)
  File /home/jpenny/zope/Zope-2.2.0b4-src/lib/python/DocumentTemplate/DT_String.py, 
line 502, in __call__
(Object: index_html)
  File /home/jpenny/zope/Zope-2.2.0b4-src/lib/python/DocumentTemplate/DT_Util.py, line 
337, in eval
(Object: product_number)
(Info: product_number)
  File string, line 0, in ?
NameError: (see above)

Great, I know that I have not put product_number in as a cookie or a hidden
value, and it could not be found by acquisition.  It failed in rendering
index_html.  But there are 5 index_html's it could have failed in.

How hard would it be to change the error message to say:

Traceback (innermost last):
  Exception raised while constructing 
  http:
 .
.
 .

Jim

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )