[Zope] Data.fs gone crazy
Sebastien Bigaret
Sebastien.Bigaret@inqual.com
10 Aug 2001 13:01:11 +0200
Tom,
That problem bit me a few times already... I do not have an explanation for
that, except that for some reason, the Data.fs can get corrupted when you
uninstall a Product (no kidding ;) --anyway, according to my own experience it
seems to only happen with python-based products, not with ZClass.
I usually solve the problem by following these steps:
1. export everything you'll need to 'rebuild' the Data.fs
2. stop zope
3. move the Data.fs elsewhere (I really mean 'move it', not delete: it's sooo
easy to forget to export some important stuff...)
4. restart zope --it build a brand new Data.fs
5. import all previously exported stuff
...and that's it. Anyway, I am also interested in learning a quicker way to
circumvent this problem --and whether it is a bug or not...
Hope this helps,
Big.
----
"Tom Cameron" <tom@mooball.com> wrote:
> When I am editing an ZSQL Method and I click on the 'Advanced' tab I get
> this response:
>
> Error Type: ImportError
> Error Value: No module named POPMailBase
>
> Traceback (innermost last):
> File D:\Zope\23229D~1.3\lib\python\ZPublisher\Publish.py, line 223, in
> publish_module
> File D:\Zope\23229D~1.3\lib\python\ZPublisher\Publish.py, line 187, in
> publish
> File D:\Zope\23229D~1.3\lib\python\Zope\__init__.py, line 221, in
> zpublisher_exception_hook
> (Object: insertintolists)
> File D:\Zope\23229D~1.3\lib\python\ZPublisher\Publish.py, line 171, in
> publish
> File D:\Zope\23229D~1.3\lib\python\ZPublisher\mapply.py, line 160, in
> mapply
> (Object: manage_advancedForm)
> File D:\Zope\23229D~1.3\lib\python\ZPublisher\Publish.py, line 112, in
> call_object
> (Object: manage_advancedForm)
> File D:\Zope\23229D~1.3\lib\python\Shared\DC\Scripts\Bindings.py, line
> 324, in __call__
> (Object: manage_advancedForm)
> File D:\Zope\23229D~1.3\lib\python\Shared\DC\Scripts\Bindings.py, line
> 354, in _bindAndExec
> (Object: manage_advancedForm)
> File D:\Zope\23229D~1.3\lib\python\App\special_dtml.py, line 236, in _exec
> (Object: manage_advancedForm)
> File D:\Zope\23229D~1.3\lib\python\Shared\DC\ZRDB\DA.py, line 544, in
> manage_product_zclass_info
> (Object: insertintolists)
> File D:\Zope\23229D~1.3\lib\python\ZODB\Connection.py, line 533, in
> setstate
> ImportError: (see above)
>
> POPMailBase is a completely different Product that I removed a few days ago.
> How could the two be related and how do I fix this mess?
>
> My Database connection keeps dying now and I cant seem to get it to work
> anymore.
>
> This is a Windows 2000 machine zope 2.3.2
>
> Tom