[Zope] Re: No module named GenericUserFolder

Dieter Maurer dieter at handshake.de
Thu Aug 14 21:04:18 EDT 2003


Andreas Tille wrote at 2003-8-14 10:56 +0200:
 > ... problems with "Advanced" tab of Z SQL Methods ...
 > ...
 > Exception Type  ImportError
 > Exception Value No module named GenericUserFolder
 > 
 > Traceback (innermost last):
 > ...
 >     * Module App.special_dtml, line 174, in _exec
 >     * Module Shared.DC.ZRDB.DA, line 483, in manage_product_zclass_info
 >     * Module ZODB.Connection, line 534, in setstate
 > 
 > ImportError: No module named GenericUserFolder
 > 
 > >  > > Catch exceptions other then "ConflictError", log them and continue.
 > >  > How to catch them in a plain ZSQL method???
 > >
 > > It comes from Python code. The traceback tells you where.
 > Well, I did a
 > 
 >      grep -R GenericUserFolder /usr/lib/zope/*
 > 
 > which showed no result.

"Shared/DC/ZRDB/DA.py" (this contains the Z SQL Method implementation)
line 483 is the place where you should place a "try: ... except: ..."
around.

Sure, you will *not* find a "GenericUserFolder" there.
Zope tries to load an element from the ZODB (that is the "setstate" method
in your traceback) which references "GenericUserFolder".
You no longer have this product installed. Therefore, you get
the ImportError.


Dieter



More information about the Zope mailing list