[Zope] NameError Problem with FileLibrary example.

Jamie Heilman jamie@audible.transient.net
Thu, 31 Jul 2003 22:30:43 -0700


Bun Topping wrote:
> I've just installed Zope 2.7.0-b1, python 2.3 and CMF 1.3.1.

Hmmm.

>       * Module Script (Python), line 6, in LimitExceeded
>         <PythonScript at /Examples/FileLibrary/addFile used for
>         /Examples/FileLibrary/Files>
>         Line 6
> 
> NameError: global name '__name__' is not defined 

Hmmm.  That code was tested with python 2.2, but not 2.3, its possible
defining new classes in Script objects doesn't fly like it did in 2.2.
I get the feeling zope with python 2.3 is still pretty rough around
the edges.

-- 
Jamie Heilman                   http://audible.transient.net/~jamie/
"Most people wouldn't know music if it came up and bit them on the ass."
                                                        -Frank Zappa