[Zope] Newbie wants to learn from her mistakes

danielle.d-avout danielle.d-avout@wanadoo.fr
Mon, 11 Nov 2002 20:39:56 +0100


The probem was solved by an update of cmf (thanks to george donnelly )
The clues you gave me to read the traceback would be useful to trace my own
mistakes, I hope I will not use so many times the undo button which is
efficient but have no "educationnal" purpose
Thanks a lot!
----- Original Message -----
From: "Dieter Maurer" <dieter@handshake.de>
To: <dancam@netcourrier.com>
Cc: "zope" <zope@zope.org>
Sent: Monday, November 11, 2002 8:08 PM
Subject: Re: [Zope] Newbie wants to learn from her mistakes


> 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
>