[Zope] Newbie wants to learn from her mistakes
Dieter Maurer
dieter@handshake.de
Mon, 11 Nov 2002 20:08:23 +0100
dancam@netcourrier.com writes:
> Is a tutorial or something alike to learn decyphering error messages...
> ...
> NameError
This is the error type.
You are faced with a "NameError". You access a name which is not bound
(does not have a value).
> Traceback (innermost last):
This is a traceback. It tells you the invocation history.
Each line (usually) describes one invocation (with modul, line number
and function).
The newest invocations are at the bottom.
Therefore, you are usually most interested in the last few lines.
> a.. Module ZPublisher.Publish, line 150, in publish_module
> ...
The following is a TALES "invocation". It tells you the object
and the bindings for the TALES expression.
> ah.. Module Products.PageTemplates.TALES, line 217, in evaluate
> URL: /philosophie-africaine/navigation_tree_slot
> Line 50, Column 20
> Expression: standard:'here/navigationCurrent'
> ...
> __traceback_info__: ({}, (), {}, (None,))
This is were the error is recognized:
Line 1 of Python Script "navigationCurrent".
It wants to access "context" but this is not bound.
Check the "Bindings" tab. It "context" is bound, you
might have hit a know problem that bindings for Python scripts
are occasionally wrong.
Search the mailing list archives, in this case, and report
back, if necessary.
> aq.. Module Script (Python), line 1, in navigationCurrent
> NameError: global name 'context' is not defined (Also, an error occurred
> while attempting to render the standard error message.)
Dieter