[Zope] Deleting Zaml breaks SQL Method Advanced Tab - Zope 2.2.2

Brad Clements bkc@murkworks.com
Fri, 22 Sep 2000 12:02:34 -0400

I'm not sure how SQL Methods are related to Zaml (XML widgets editor) 
but removing the XML Widgets and Zaml editor from the products 
directory has broken the advanced tab on my SQL Methods.

I had installed XML Widgets and Zaml and the sample.zexp files. 
Played with it, then deleted the product directory contents for these 
items and then deleted objects of that type from ZODB.

Now when I attempt to set the advanced options on an SQL Method, I 
get this traceback:


Sorry, a Zope error occurred.

Traceback (innermost last):
  File E:\ZOPEST~1\lib\python\ZPublisher\Publish.py, line 222, in publish_module
  File E:\ZOPEST~1\lib\python\ZPublisher\Publish.py, line 187, in publish
  File E:\ZOPEST~1\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook
    (Object: SQLPackage)
  File E:\ZOPEST~1\lib\python\ZPublisher\Publish.py, line 171, in publish
  File E:\ZOPEST~1\lib\python\ZPublisher\mapply.py, line 160, in mapply
    (Object: manage_advancedForm)
  File E:\ZOPEST~1\lib\python\ZPublisher\Publish.py, line 112, in call_object
    (Object: manage_advancedForm)
  File E:\ZOPEST~1\lib\python\App\special_dtml.py, line 120, in __call__
    (Object: manage_advancedForm)
    (Info: E:\ZOPEST~1\lib\python\Shared\DC\ZRDB\advanced.dtml)
  File E:\ZOPEST~1\lib\python\DocumentTemplate\DT_String.py, line 528, in __call__
    (Object: manage_advancedForm)
  File E:\ZOPEST~1\lib\python\Shared\DC\ZRDB\DA.py, line 509, in manage_product_zclass_info
    (Object: SQLPackage)
  File E:\ZOPEST~1\lib\python\ZODB\Connection.py, line 447, in setstate
ImportError: No module named ZamlBase


Also when starting Zope up, I get an oid not found error:

2000-09-22T15:47:53 ERROR(200) ZODB Couldn't load state for '\000\000\000\000\00
Traceback (innermost last):
  File E:\ZOPEST~1\lib\python\ZODB\Connection.py, line 447, in setstate
  File E:\ZOPEST~1\lib\python\ZODB\Connection.py, line 213, in _persistent_load
    (Info:       ??)
  File E:\ZOPEST~1\lib\python\ZODB\Connection.py, line 154, in __getitem__
    (Info: ('\000\000\000\000\000\000\036\035', '(cExtensionClass\012ExtensionCl
000\000\036 q\005QcOFS.SimpleItem\012SimpleItem\012q\006tq\007}q\010(U\004iconq\
006renderq (U\010\000\000\000\000\000\000\036$q!(h\034U\003MWpq"tq#tq$QU\011_p_s
Could not load oid       ??, pickled data in traceback info may            conta
in clues

I can't find any Zaml related objects in my ZODB, but something still 
thinks it exists.. How can I be sure all references are deleted? (I haven't 
packed my .fs ever)

I suppose there needs to be a fix in DA.py .. or in  Connection.py, not 

Brad Clements,                bkc@murkworks.com   (315)268-1000
http://www.murkworks.com                          (315)268-9812 Fax
netmeeting: ils://ils.murkworks.com               AOL-IM: BKClements