[Zope] create instance: global Class name not defined

florian.konnertz@web.de florian.konnertz@web.de
Sat, 6 Apr 2002 00:24:03 +0200


Hi to you !
I installed a new product and its first ZClass (the example in the book fr=
om beehive). When I wanted to add my first 'buch' object, I got the follow=
ing strange error:

Let's see, do you have an idea=3F
cu,
Florian


Traceback (innermost last):
  File /usr/local/dc/Zope-2.5.0/lib/python/ZPublisher/Publish.py, line 150=
, in publish=5Fmodule
  File /usr/local/dc/Zope-2.5.0/lib/python/ZPublisher/Publish.py, line 114=
, in publish
  File /usr/local/dc/Zope-2.5.0/lib/python/Zope/=5F=5Finit=5F=5F.py, line 158, in =
zpublisher=5Fexception=5Fhook
    (Object: BuchClass=5Ffactory)
  File /usr/local/dc/Zope-2.5.0/lib/python/ZPublisher/Publish.py, line 98,=
 in publish
  File /usr/local/dc/Zope-2.5.0/lib/python/ZPublisher/mapply.py, line 88, =
in mapply
    (Object: BuchClass=5Fadd)
  File /usr/local/dc/Zope-2.5.0/lib/python/ZPublisher/Publish.py, line 39,=
 in call=5Fobject
    (Object: BuchClass=5Fadd)
  File /usr/local/dc/Zope-2.5.0/lib/python/OFS/DTMLMethod.py, line 127, in=
 =5F=5Fcall=5F=5F
    (Object: BuchClass=5Fadd)
  File /usr/local/dc/Zope-2.5.0/lib/python/DocumentTemplate/DT=5FString.py, =
line 473, in =5F=5Fcall=5F=5F
    (Object: BuchClass=5Fadd)
  File /usr/local/dc/Zope-2.5.0/lib/python/DocumentTemplate/DT=5FWith.py, li=
ne 61, in render
    (Object: BuchClass.createInObjectManager(REQUEST['ArtNr'], REQUEST))
  File /usr/local/dc/Zope-2.5.0/lib/python/DocumentTemplate/DT=5FUtil.py, li=
ne 159, in eval
    (Object: BuchClass.createInObjectManager(REQUEST['ArtNr'], REQUEST))
    (Info: REQUEST)
  File <string>, line 2, in f
NameError: global name 'BuchClass' is not defined

thanks,
Florian

P.S. I'm sorry I forgot the subject in my previous posting.. --  I'm very =
tired...



=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F
Darf es ein bisschen mehr sein=3F Mehr Speicher, mehr Mail, mehr Erlebnis,=20
mehr Leistung, mehr Pr=E4mie unter http://club.web.de/=3Fmc=3D021102