[Zope-DB] No module named ZDBase
Dieter Maurer
dieter at handshake.de
Fri Sep 19 13:41:40 EDT 2003
D. Rick Anderson wrote at 2003-9-18 13:06 -0700:
> Thanks for the reply. Here's the traceback:
>
> Traceback (innermost last):
> ...
> Module Shared.DC.ZRDB.DA, line 483, in manage_product_zclass_info
> ...
We must make changes near line 483 of "Shared/DC/ZRDB/DA.py".
In my Zope 2.6.2 code, this looks like
>>> for d in self.aq_acquire('_getProductRegistryData')('zclasses'):
z=d['meta_class']
which is surprising as it should not cause this error (with this
traceback).
Almost surely, we use different Zope versions and your line 483
looks like:
>>> if hasattr(z._zclass_,'_p_deactivate'):
# Eek, persistent
continue
If so, change this to:
try:
if hasattr(z._zclass_,'_p_deactivate'):
# Eek, persistent
continue
except ImportError:
from zLOG import LOG, ERROR
LOG('Z SQL Method',
ERROR,
'manage_product_zclass_info raised exception',
error= sys.exc_info()
)
continue
If not, come back with your code of "manage_product_zclass_info"
and clearly mark line 483.
Once, you fixed the problem, please file a Bug+Solution report
to <http://collector.zope.org/Zope>.
Dieter
More information about the Zope-DB
mailing list